Bug#625509: python-debian: please port to Py3k
Colin Watson
cjwatson at ubuntu.com
Sun Jan 22 14:37:55 UTC 2012
On Wed, Jan 18, 2012 at 10:54:28AM +0000, Colin Watson wrote:
> On Wed, May 04, 2011 at 03:10:29AM +0200, Tshepang Lekhonkhobe wrote:
> > Can you either make this package capable of running for Python 2 and 3,
> > or make separate packages for it, as python-apt does.
>
> I'm working on this here:
>
> http://anonscm.debian.org/gitweb/?p=users/cjwatson/python-debian.git;a=shortlog;h=refs/heads/python3
>
> I will probably end up depending on the six module, which I uploaded to
> unstable yesterday. It's tiny, so I shouldn't expect this to cause much
> of a problem.
>
> http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=656288 in python3-apt
> is getting in the way a bit, but I suppose worst case I can just skip
> those tests when running under Python 3 for now.
I believe this port is now complete, in the git branch above. It passes
all tests provided that a version of python3-apt with the most recent
patch in #656288 is available.
I would very much appreciate review of this branch. In case it eases
review, I've attached the 31-patch series (!) to this mail. I've tried
to arrange it roughly in ascending order of complexity.
Cheers,
--
Colin Watson [cjwatson at ubuntu.com]
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Fix-test-warnings-with-python2.7-3.patch
Type: text/x-diff
Size: 6394 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/pkg-python-debian-maint/attachments/20120122/3c9440a2/attachment-0031.patch>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0002-Avoid-various-old-syntactic-forms-which-are-no-longe.patch
Type: text/x-diff
Size: 10350 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/pkg-python-debian-maint/attachments/20120122/3c9440a2/attachment-0032.patch>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0003-Use-Python-3-style-print-function.patch
Type: text/x-diff
Size: 7662 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/pkg-python-debian-maint/attachments/20120122/3c9440a2/attachment-0033.patch>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0004-Use-a-list-comprehension-instead-of-map-which-return.patch
Type: text/x-diff
Size: 802 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/pkg-python-debian-maint/attachments/20120122/3c9440a2/attachment-0034.patch>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0005-Use-iterkeys-iteritems-when-an-iterator-is-all-we-ne.patch
Type: text/x-diff
Size: 2297 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/pkg-python-debian-maint/attachments/20120122/3c9440a2/attachment-0035.patch>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0006-Use-absolute-imports.patch
Type: text/x-diff
Size: 4586 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/pkg-python-debian-maint/attachments/20120122/3c9440a2/attachment-0036.patch>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0007-Use-Python-3-style-print-function-in-examples.patch
Type: text/x-diff
Size: 23275 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/pkg-python-debian-maint/attachments/20120122/3c9440a2/attachment-0037.patch>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0008-Use-key-in-dict-rather-than-obsolete-dict.has_key-ke.patch
Type: text/x-diff
Size: 2157 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/pkg-python-debian-maint/attachments/20120122/3c9440a2/attachment-0038.patch>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0009-Use-open-rather-than-file-file-does-not-exist-in-Pyt.patch
Type: text/x-diff
Size: 11496 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/pkg-python-debian-maint/attachments/20120122/3c9440a2/attachment-0039.patch>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0010-Use-sep.join-list-rather-than-string.join-list-sep.patch
Type: text/x-diff
Size: 2710 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/pkg-python-debian-maint/attachments/20120122/3c9440a2/attachment-0040.patch>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0011-Implement-rich-comparison-methods-the-only-kind-avai.patch
Type: text/x-diff
Size: 5130 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/pkg-python-debian-maint/attachments/20120122/3c9440a2/attachment-0041.patch>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0012-Use-assertTrue-and-assertEquals-rather-than-deprecat.patch
Type: text/x-diff
Size: 6320 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/pkg-python-debian-maint/attachments/20120122/3c9440a2/attachment-0042.patch>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0013-Try-to-import-pickle-if-importing-cPickle-fails.-Pyt.patch
Type: text/x-diff
Size: 1337 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/pkg-python-debian-maint/attachments/20120122/3c9440a2/attachment-0043.patch>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0014-Use-io.StringIO-if-StringIO.StringIO-is-absent-as-in.patch
Type: text/x-diff
Size: 2165 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/pkg-python-debian-maint/attachments/20120122/3c9440a2/attachment-0044.patch>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0015-Use-collections.Mapping-collections.MutableMapping-i.patch
Type: text/x-diff
Size: 3924 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/pkg-python-debian-maint/attachments/20120122/3c9440a2/attachment-0045.patch>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0016-Use-list-comprehensions-instead-of-map-where-a-list-.patch
Type: text/x-diff
Size: 3142 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/pkg-python-debian-maint/attachments/20120122/3c9440a2/attachment-0046.patch>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0017-If-StandardError-does-not-exist-as-in-Python-3-inher.patch
Type: text/x-diff
Size: 1579 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/pkg-python-debian-maint/attachments/20120122/3c9440a2/attachment-0047.patch>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0018-Use-six-to-paper-over-dict-iteration-differences-bet.patch
Type: text/x-diff
Size: 10563 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/pkg-python-debian-maint/attachments/20120122/3c9440a2/attachment-0048.patch>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0019-Use-six-to-paper-over-int-long-differences-between-P.patch
Type: text/x-diff
Size: 1700 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/pkg-python-debian-maint/attachments/20120122/3c9440a2/attachment-0049.patch>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0020-Cope-with-the-absence-of-a-file-class-in-Python-3.patch
Type: text/x-diff
Size: 1468 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/pkg-python-debian-maint/attachments/20120122/3c9440a2/attachment-0050.patch>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0021-Python-3-renamed-raw_input-to-input.patch
Type: text/x-diff
Size: 762 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/pkg-python-debian-maint/attachments/20120122/3c9440a2/attachment-0051.patch>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0022-Be-much-more-careful-about-closing-files-in-a-timely.patch
Type: text/x-diff
Size: 9781 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/pkg-python-debian-maint/attachments/20120122/3c9440a2/attachment-0052.patch>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0023-Use-six-to-paper-over-iterator.next-vs.-next-iterato.patch
Type: text/x-diff
Size: 4532 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/pkg-python-debian-maint/attachments/20120122/3c9440a2/attachment-0053.patch>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0024-Use-string.ascii_letters-rather-than-the-deprecated-.patch
Type: text/x-diff
Size: 867 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/pkg-python-debian-maint/attachments/20120122/3c9440a2/attachment-0054.patch>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0025-In-Python-3-encode-Unicode-strings-before-passing-th.patch
Type: text/x-diff
Size: 872 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/pkg-python-debian-maint/attachments/20120122/3c9440a2/attachment-0055.patch>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0026-Fix-up-debian.changelog-for-string-handling-changes-.patch
Type: text/x-diff
Size: 6166 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/pkg-python-debian-maint/attachments/20120122/3c9440a2/attachment-0056.patch>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0027-Only-define-DebPart.has_key-method-for-Python-2.patch
Type: text/x-diff
Size: 1018 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/pkg-python-debian-maint/attachments/20120122/3c9440a2/attachment-0057.patch>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0028-Fix-up-debian.arfile-and-debian.debfile-for-string-h.patch
Type: text/x-diff
Size: 13557 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/pkg-python-debian-maint/attachments/20120122/3c9440a2/attachment-0058.patch>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0029-Fix-up-most-of-debian.deb822-for-string-handling-cha.patch
Type: text/x-diff
Size: 9063 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/pkg-python-debian-maint/attachments/20120122/3c9440a2/attachment-0059.patch>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0030-Fix-up-the-rest-of-debian.deb822-for-Python-3-string.patch
Type: text/x-diff
Size: 15485 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/pkg-python-debian-maint/attachments/20120122/3c9440a2/attachment-0060.patch>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0031-Add-a-python3-debian-package.patch
Type: text/x-diff
Size: 3338 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/pkg-python-debian-maint/attachments/20120122/3c9440a2/attachment-0061.patch>
More information about the pkg-python-debian-maint
mailing list