python packaging tutorial notes

| No Comments | No TrackBacks
This morning some Debian people ran a tutorial on python packaging in Debian. I thought I'd write some notes for myself.

Apparently there is a tool for automated license checking, 'licensecheck -r unpacked-tarball'. That sounds really cool, even if it doesn't always work.  There were a bunch of policy things mentioned, such as official packages have to support all current python versions in the archive, what to name packages, where to do documentation.

There is a debian/clean file, which presumably lists files to be deleted when you do './debian/rules clean'. I wonder when that started working? Piotr used 'debi' to install the built package, passing debi the name of the generated changes file. Piotr said when there is a new upstream version not to use py2dsc again. Rather to call 'uupdate path/to/new-tarball' from the directory with the old version. He mentioned 'debdiff oldversion.dsc newversion.dsc', to see what has changed. Also 'filterdiff -x '*/doc/* -x */po/*' to filter out doc and translation changes.

There was an earlier tutorial on packaging basics, at http://wiki.debian.org/IntroDebianPackaging

find_python_dependancies.py can attempt to work out the dependencies of a python app or module, if upstream didn't include a requires.txt. (Which apparently in the python world lists dependancies, and dh_python2 tries to auto convert those into Debian dependancies).

dh_python2 is introduced for squeeze. In Wheezy Piotr hopes to drop python-central and python-support. For python3 packaging there is only dh_python3.

Later on there will probably be a link from http://wiki.debian.org/DebianWomen/TrainingSessions to a transcript.

Piotr mentioned to get help on python packaging you should try #debian-python channel, or debian-python@lists.debian.org.

Piotr walked through packaging a python module, and a python application. He used 'py2dsc' to do the initial convert from upstream tarball to debian package. He also mentioned you could run 'python setup.py --command-packages=stdeb.command debianize' from within an unpacked tarball.

No TrackBacks

TrackBack URL: http://geoff-blog.cromp.id.au/cgi-bin/movabletype/mt-tb.cgi/93

Leave a comment

About this Entry

This page contains a single entry by Geoff Crompton published on December 3, 2010 7:15 AM.

Mo Geoff, Mo! was the previous entry in this blog.

Lisa'11 is the next entry in this blog.

Find recent content on the main index or look in the archives to find all content.

Categories

Pages

Powered by Movable Type 4.23-en