6491
Comment:
|
← Revision 190 as of 2019-07-25 14:47:56 ⇥
0
Long obsolete; Launchpad now requires Python 2.7
|
Deletions are marked like this. | Additions are marked like this. |
Line 1: | Line 1: |
= Moving to newer Python versions = The ultimate goal is to migrate Launchpad to Python 2.6. Rather than go straight to Python 2.6, we are focusing on Python 2.5 first as a stepping stone. People involved in this effort: maxb, gary, salgado, barry https://bugs.launchpad.net/launchpad-foundations/+bugs?field.tag=python-upgrade == Interesting branches == * https://code.launchpad.net/~maxb/launchpad/python2.5 tracks `lp:launchpad/stable` (or occasionally `devel`), on a manual basis, and acts as a one-stop-shop for something that people can check out and build using Python 2.5 * https://code.launchpad.net/~gary/launchpad/py25 is gary's branch tracking the upgrade. * ''add yours here'' == Launchpad code itself == Remaining changes in `python2.5` branch: * Changed `PYTHON_VERSION` in Makefiles * Changed shebang in `cronscripts/*`, `scripts/*`, == Known issues == * The pytz source package has a [[https://launchpad.net/bugs/438634|mysterious problem]]. The work around is to [[http://pypi.python.org/packages/2.5/p/pytz/pytz-2009l-py2.5.egg#md5=b41c8cacb5f4a8a64db05afbdf3ef9ef|download the 2.5 egg]] and put that in your `download-cache/dist` directory. == Launchpad source dependencies (sourcecode bzr trees) == The `Makefile`s of pygettextpo & pygpgme make direct reference to Python 2.4, you'll need to amend them appropriately. == Test Status for lp:~maxb/launchpad/python2.5@9026 based on lp:launchpad/stable@9539 == * ''canonical.testing.layers.!BaseLayer tests: Ran 256 tests with 0 failures and 0 errors'' * ''canonical.testing.layers.!LibrarianLayer tests: Ran 8 tests with 0 failures and 0 errors'' * ''canonical.testing.layers.!DatabaseLayer tests: Ran 43 tests with 0 failures and 0 errors'' * ''canonical.testing.layers.!LaunchpadLayer tests: Ran 23 tests with 0 failures and 0 errors'' * ''canonical.testing.layers.!ZopelessLayer tests: Ran 19 tests with 0 failures and 0 errors'' * ''canonical.testing.layers.!LaunchpadScriptLayer tests: Ran 72 tests with 0 failures and 0 errors'' * canonical.testing.layers.!LaunchpadZopelessLayer tests: Ran 3192 tests with '''2 failures''' and 0 errors 1. lib/lp/bugs/doc/checkwatches-cli-switches.txt: Looks to be formatting differences in help message 1. lib/lp/bugs/doc/externalbugtracker-mantis-csv.txt: Sort order problem. * ''canonical.launchpad.ftests.test_system_documentation.!ProcessMailLayer tests: Ran 269 tests with 0 failures and 0 errors'' * ''canonical.testing.layers.!FunctionalLayer tests: Ran 164 tests with 0 failures and 0 errors'' * canonical.testing.layers.!LaunchpadFunctionalLayer tests: Ran 8001 tests with '''11 failures''' and 0 errors 1. lib/canonical/launchpad/ftests/../doc/pagetest-helpers.txt: CDATA section introduced 1. lib/canonical/launchpad/ftests/../doc/tales.txt: Exception message concerning no len() changed in Py2.5. 1. lib/canonical/launchpad/ftests/../doc/unicode_csv.txt: Py2.5 behaviour change in comparison of unicode / nonunicode 1. lib/canonical/launchpad/scripts/ftests/librarianformatter.txt: Spurious characters. 1. lib/lp/bugs/tests/externalbugtracker-xmlrpc-transport.txt: urllib2 seems to be behaving differently concerning installed handlers 1. lib/lp/registry/browser/tests/person-views.txt: bytestring vs unicode issue 1. lp.soyuz.scripts.tests.test_copypackage.!ReUploadFileTestCase.test_re_upload_file_does_not_leak_file_descriptors - `1 != 0` 1. lib/lp/translations/tests/../doc/poexport-language-pack.txt: Hints at tarfile.getnames() behaviour change as seen in unit tests too 1. lib/lp/translations/tests/../doc/poexport-request-productseries.txt: Ditto. 1. lib/lp/translations/tests/../doc/poexport-request.txt: Ditto. 1. lib/lp/translations/tests/../doc/potemplate.txt: Ditto. * ''canonical.testing.layers.!AppServerLayer tests: Ran 72 tests with 0 failures and 0 errors'' * canonical.testing.layers.!DatabaseFunctionalLayer tests: Ran 3677 tests with '''1 failures''' and 0 errors 1. lib/lp/registry/doc/teammembership.txt: Looks like benign formatting issue. * canonical.testing.layers.!PageTestLayer tests: Ran 5965 tests with '''7 failures''' and 0 errors 1. lib/canonical/launchpad/pagetests/feeds/xx-links.txt: No longer replaces " with &quot;. 1. lib/lp/answers/stories/question-add.txt: Escaping issues as above, but with < and > too. 1. lib/lp/answers/stories/question-obfuscation.txt: Ditto. 1. lib/lp/bugs/stories/feeds/xx-bug-atom.txt: Looks like benign formatting issue 1. lib/lp/bugs/stories/feeds/xx-bug-html.txt: Looks like benign formatting issue. 1. lib/lp/bugs/stories/distribution/xx-distribution-upstream-bug-report.txt: Formatting issue. 1. lib/lp/registry/tests/../stories/foaf/xx-person-working-on.txt: bytestring vs unicode issue * ''canonical.testing.layers.!TwistedLayer tests: Ran 219 tests with 0 failures and 0 errors'' * ''canonical.testing.layers.!TwistedLaunchpadZopelessLayer tests: Ran 23 tests with 0 failures and 0 errors'' * ''canonical.testing.layers.!TwistedAppServerLayer tests: Ran 5 tests with 0 failures and 0 errors'' * ''canonical.testing.layers.!ZopelessAppServerLayer tests: Ran 73 tests with 0 failures and 0 errors'' * ''canonical.testing.layers.!ZopelessDatabaseLayer tests: Ran 192 tests with 0 failures and 0 errors'' * ''lp.codehosting.tests.test_acceptance.SSHServerLayer tests: Ran 46 tests with 0 failures and 0 errors'' * zope.testing.testrunner.layer.!UnitTests tests: Ran 1378 tests with '''8 failures''' and 0 errors 1. librarianformatter_noca.txt: Py2.5 differences in traceback formatting 1. test_helpers.make_test_tarball_2: odd discrepancy 1. test_raising_with_unprintable_exception (canonical.launchpad.webapp.tests.test_errorlog.!TestErrorReportingUtility): looks benign 1. test_!EscapedQuotesPropertyFileTest (lp.translations.utilities.tests.test_xpi_properties_format.!PropertyFileFormatTestCase) 1. test_!InvalidPropertyFileUnicodeEscape (lp.translations.utilities.tests.test_xpi_properties_format.!PropertyFileFormatTestCase) 1. test_!MultilinePropertyFileTest (lp.translations.utilities.tests.test_xpi_properties_format.!PropertyFileFormatTestCase) 1. test_!TrailingBackslashPropertyFileTest (lp.translations.utilities.tests.test_xpi_properties_format.!PropertyFileFormatTestCase) 1. test_!UnicodeEscapedPropertyFileTest (lp.translations.utilities.tests.test_xpi_properties_format.!PropertyFileFormatTestCase) |