Skip to main content

Make egg metadata information available for Debian packaging

Project description

Tools for introspecting Python package metadata and translating the resulting information into Debian metadata. This information is translated:

  • Setuptools version numbers to Debian format that sorts correctly

  • Setuptools package names to Debian binary and source package names

  • Setuptools dependencies to Debian dependencies

This package provides a van-pydeb binary which provides a way to access the information from shell scripts. A python based API is also available for python programs to use.

Usage

To extract the dependency info of this package, one can run the following command after setting up buildout:

$ ./bin/van-pydeb depends --egg-info van.pydeb.egg-info
python-setuptools, python-van

This information can then used in a debian/rules file as follows:

(echo -n 'setuptools:Depends=' && van-pydeb depends --egg-info debian/$(PACKAGE)/usr/lib/python$*/site-packages/$(EGG_NAME).egg-info) >> debian/$(PACKAGE).substvars

There ary many different methods of using this command, such as getting the dependencies (including the extra dependencies) of the package:

van-pydeb depends --egg-info debian/$(PACKAGE)/usr/lip/python$*/$(EGG_NAME).egg-info

Or, the dependencies of an extra:

van-pydeb depends --egg-info debian/$(PACKAGE)/usr/lip/python$*/$(EGG_NAME).egg-info --extra $(EXTRA)

The dependencies of 2 extras:

van-pydeb depends --egg-info debian/$(PACKAGE)/usr/lip/python$*/$(EGG_NAME).egg-info --extra $(EXTRA) --extra $(EXTRA2)

The dependencies of a package excluding the dependencies of extras:

van-pydeb depends --egg-info debian/$(PACKAGE)/usr/lip/python$*/$(EGG_NAME).egg-info --exclude-extra $(EXTRA1) --exclude-extra $(EXTRA2)

Development

The code for van.pydeb is housed in subversion at http://svn.zope.org/van.pydeb/.

Changes

1.2.0 (2009-05-29)

  • Improve README.txt. Thanks to Fabio Tranchitella for a better looking way of calling van-pydeb in the rules file.

  • Expose version and package name conversion functions via the command line interface. e.g. This command will print out the debian binary package name:

    $ van-pydeb py_to_bin foo

1.1.0 (2009-05-26)

  • Obligatory “How could I have done that” release smoothing out documentation bugs and making the command line options more complete.

1.0.0 (2009-05-26)

  • Initial Release.

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

van.pydeb-1.2.0.tar.gz (41.1 kB view details)

Uploaded Source

File details

Details for the file van.pydeb-1.2.0.tar.gz.

File metadata

  • Download URL: van.pydeb-1.2.0.tar.gz
  • Upload date:
  • Size: 41.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for van.pydeb-1.2.0.tar.gz
Algorithm Hash digest
SHA256 fa30c1934816578986f529f96e4841a7caf07a4c1b768b9592b90f0e7f260465
MD5 e170f01cc51555986694f69091781ff7
BLAKE2b-256 7d1e1cbe0c4ca6f6b5fcec050663383a733478200c7dd9703e57042bbea46a3b

See more details on using hashes here.

Supported by

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