[Python-modules-team] Bug#640303: pdfminer: please provide a python3 version

Julian Gilbey jdg at debian.org
Sun Sep 11 21:07:57 UTC 2011


On Sun, Sep 11, 2011 at 05:51:46PM +0200, Daniele Tricoli wrote:
> Hello Julian,
> 
> On Sunday 04 September 2011 10:34:41 you wrote:
> > I have successfully run 2to3 over the source code, and there does not
> > seem to be any obvious reason why this would not be possible.  The
> > majority of changes are to do with imports, the print function, the
> > xrange function and other standard python2 -> python3 changes.  There
> > are a few occurrences of "xxx_todo_changeme" arising from functions
> > using implicit tuple unpacking, but these are essentially harmless,
> > and the changeme is a request for a prettier name rather than anything
> > showstopping.
> 
> Did you try, after the conversion, the test suite? Right now the Debian 
> package for pdfminer is only for python 2.x because upstream declares that 
> python 3 is not supported.

Oh dear, you are indeed right.  I have spent a few hours trying to
create a python 3 version, and have not yet fully succeeded.  As my
time this week will be limited, let me attach my current progress.

I have also had to create a file
/usr/share/perl5/Debian/Debhelper/Buildsystem/python3_distutils.pm
which I have also attached; hopefully this will end up in debhelper at
some point.

The orig.tar.gz which is attached has had 2to3 run over the majority
of it.

   Julian
-------------- next part --------------
Format: 3.0 (quilt)
Source: pdfminer3
Binary: python3-pdfminer, pdfminer3-data
Architecture: all
Version: 20110515+dfsg-1.1
Maintainer: Debian Python Modules Team <python-modules-team at lists.alioth.debian.org>
Uploaders: Daniele Tricoli <eriol at mornie.org>
Homepage: http://www.unixuser.org/~euske/python/pdfminer/
Standards-Version: 3.9.2
Vcs-Browser: http://svn.debian.org/viewsvn/python-modules/packages/pdfminer/trunk/
Vcs-Svn: svn://svn.debian.org/python-modules/packages/pdfminer/trunk/
Build-Depends: debhelper (>= 7.0.50~), docbook-xml, docbook-xsl, elinks-lite | elinks, libxml2-utils, python3-all (>= 2.6.6-3~), python-nose, xsltproc
Checksums-Sha1: 
 525d81a5ba3f43009aa1e0d6dc45c96694c6ec02 2043626 pdfminer3_20110515+dfsg.orig.tar.gz
 fda1a00a796f6d4488e616aef21a260e49f0962d 12113 pdfminer3_20110515+dfsg-1.1.debian.tar.gz
Checksums-Sha256: 
 224057170e8a927a63813add1b91d9aa49aa399711d35243330e43d42b6145ea 2043626 pdfminer3_20110515+dfsg.orig.tar.gz
 7293ca0136c5244abd12a533d7d9a892a227bcda5a0bda3f696ec8002c32144d 12113 pdfminer3_20110515+dfsg-1.1.debian.tar.gz
Files: 
 0fa7931de70f2fd04310a83f3977b8f3 2043626 pdfminer3_20110515+dfsg.orig.tar.gz
 b3e4c44402106a91d68bc818c7940250 12113 pdfminer3_20110515+dfsg-1.1.debian.tar.gz
-------------- next part --------------
A non-text attachment was scrubbed...
Name: pdfminer3_20110515+dfsg-1.1.debian.tar.gz
Type: application/octet-stream
Size: 12113 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/python-modules-team/attachments/20110911/5e9b801a/attachment-0002.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: pdfminer3_20110515+dfsg.orig.tar.gz
Type: application/octet-stream
Size: 2043626 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/python-modules-team/attachments/20110911/5e9b801a/attachment-0003.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: python3_distutils.pm
Type: text/x-perl
Size: 5148 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/python-modules-team/attachments/20110911/5e9b801a/attachment-0001.pm>


More information about the Python-modules-team mailing list