Skip to main content

A buildout recipe to create debian packages

Project description

Debianize uses fpm (https://github.com/jordansissel/fpm) to create debian packages from python source directories. The only thing it really adds, is that debianize will also create packages for all depencencies that your source package has (install_requires). Debianize will only create a debian package from a python package. So you need a setup.py.

Usage:

[buildout]
parts =
    debianize

[debianize]
maintainer = somebody@example.com
follow_dependencies =
    someobscurepackage
    morestuff
    ivegotnodebianpackageyet

If you define follow_dependencies debianize will only create packages for things that match any of the regex patterns in that option. If omit follow_dependencies, it will build debian packages for anything defined as a dependency with install_requires. You can not use spaces in any of the patterns! This is useful if some of the dependencies are allready available as debian packages and others are not.

The above defined follow_dependencies will be matched like this:

$NAME =~ someobscurepackage|morestuff|ivegotnodebianpackageyet

So it will simply put a | symbol in between the patterns.

Upstart

If you’ve got a folder named upstart next to your setup.py, this folder will be packaged as well, with the same version number as your package, but adding a .d postfix to your package name.

Last but not least

This recipe does not install fpm for you. instead use http://pypi.python.org/pypi/rubygemsrecipe/0.1.5:

[rubygems]
recipe = rubygemsrecipe
gems = fpm

Don’t use spaces in the maintainer if you are using this recipe because it passes arguments with $* which causes errors.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pm.recipe.debianize-0.4.tar.gz (3.7 kB view details)

Uploaded Source

File details

Details for the file pm.recipe.debianize-0.4.tar.gz.

File metadata

File hashes

Hashes for pm.recipe.debianize-0.4.tar.gz
Algorithm Hash digest
SHA256 1f4e9182e5bcb31504c4c8610d8955d7391dc262a5343155d8d62ef959bbfb04
MD5 80b0ffc03cad039b65886abe42d5bf1f
BLAKE2b-256 0981a94ee1cfafc00f10ea3804f0aaf91dd6267867dc18c381838e78b9da331e

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page