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.3.3 (2011-08-10)
Generate separate dependencies when both extra and version requirements are specified (https://bugs.launchpad.net/bugs/628560)
py_to_bin_default: do not prepend python- if python package name already starts with it.
Update automatically updated list from current unstable.
setuptools comes from distribute source package.
1.3.2 (2010-06-22)
Conform to Zope repository policy.
Update automatically updated list from current unstable.
Ignore python3 packages for now in auto-generated list.
1.3.1 (2010-01-14)
Add override for python-gettext.
Add override for Chameleon (python-chameleon).
Update automatically updated list from current unstable.
1.3.0 (2009-09-04)
Add a scripts/generate script which generates a python package -> debian binary mapping suitable for adding to van/pydeb/py_to_bin.txt.
Append the output of the generate script to van/pydeb/py_to_bin.txt.
Expose _default functions for package conversions so that generate can check it’s results and weed out extra packages that match the default conversions.
Make python-pkg-resources the default translation for setuptools: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=543551
Add the concept of options to the list of dependencies.
Create a “reduced” option that causes warnings to be printed when a reduced dependncy is used.
Implement a –override-bdep option which can be used to override python to binary package dependencies.
1.2.1 (2009-06-15)
Add mapping for ZConfig and RestrictedPython.
Change default Debian binary to python package name conversion. The original package name will be used if there is no python-prefix. This works with packages such as buildbot which do not include the python-. The previous version errored in this case, so we’re backwards compatible :)
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.
Metadata
Release files for van.pydeb 1.3.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| van.pydeb-1.3.3.tar.gz | 53.0 kB | Without provenance | Details for van.pydeb-1.3.3.tar.gz |
Release files / van.pydeb-1.3.3.tar.gz
| Download URL | van.pydeb-1.3.3.tar.gz |
|---|---|
| Size | 53.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
302ae8c1558af3781595c30bb3624ed13dece27bae16006d3623fe67acbfdd63
|
|
BLAKE2b-256 checksum How to use checksums |
d5891ccf5b8715169c374b9344ed540d99a065a071fa3a1f67f3697bdb283755
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for van.pydeb 1.3.3
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.