Debian packaging talk, Pysheff sept 2012
Upcoming SlideShare
Loading in...5
×
 

Debian packaging talk, Pysheff sept 2012

on

  • 338 views

 

Statistics

Views

Total Views
338
Views on SlideShare
338
Embed Views
0

Actions

Likes
0
Downloads
2
Comments
0

0 Embeds 0

No embeds

Accessibility

Categories

Upload Details

Uploaded via as OpenOffice

Usage Rights

© All Rights Reserved

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Processing…
Post Comment
Edit your comment

Debian packaging talk, Pysheff sept 2012 Debian packaging talk, Pysheff sept 2012 Presentation Transcript

  • Debian packaging for Python applications and libraries Sheffield Python Group 25 September 2012 Thomas Kluyver
  • Overview● Making a package – The debian/ directory – Source packages – Binary packages● PPAs & recipe builds● Submitting to Debian or Ubuntu● The future
  • debian/● control – metadata for your source package and binary package(s)● rules – makefile describing how to build your package● changelog – records each version of the package, defines version number● patches/ – changes applied to the source before building it.● copyright – license info for every file● watch – where to check for newer versions
  • Source package● taxonome_0.12.orig.tar.gz● taxonome_0.12-1ppa2.debian.tar.gz● taxonome_0.12-1ppa2.dsc● taxonome_0.12-1ppa2_source.changes
  • Binary packagestaxonome_0.12-1ppa1_all.deb● This is what you install● Different ways to build: – Local build – pbuilder (creates a separate installation) – Build servers (for all published packages)
  • Demos
  • PPAs● Personal Package Archives● Build and publish your own packages● Users add PPA to install packages: – sudo apt-add-repository ppa:takluyver/taxonome● Recipe builds: build from VCS every day – Testing, dogfooding
  • Submitting packages● ITP: intent to package● RFS: request for sponsorship● lintian: automated nitpicking – --pedantic – lintian4py● DFSG: Debian Free Software Guidelines – be very clear about copyright● Ubuntu MyApps system – Applications only, should be simpler – Some teething trouble with reviewing
  • The FutureCan we use distutils metadata to make Debianpackages automatically?● Stdeb (not exactly future) – https://github.com/astraw/stdeb● pkgme – https://launchpad.net/pkgme● PyPI to Debian repository convertor – https://gitorious.org/pypi2deb
  • More information● Lots of info on the web, but alternative tools make it confusing.● A clear starting point is the Ubuntu packaging guide:http://developer.ubuntu.com/packaging/html/python-packaging.html● Debian Python Modules Team (DPMT) and Python Apps Packaging Team (PAPT) can help, but aren’t always newcomer-friendly.