Skip to main content

Translate PEP440 version to Debian policy

Project description

Debian and Python has two distincts conventions for version scheme. Each have a different way to tell a pre-release tag, etc. pep440deb is a little helper for managing translation of Python package version to Debian version policy.

$ pep440deb 1.0a1
1.0~a1
$ pep440deb --echo --pypi pip
9.0.1 9.0.1
$ echo 1.0.dev0 | pep440deb --file -
1.0~dev0

You can use it from Python:

>>> from pep440deb import debianize
>>> debianize('1.0a1')
'1.0~a1'

Installation

Install it from PyPI:

pip install pep440deb

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

pep440deb-1.2.tar.gz (2.8 kB view details)

Uploaded Source

Built Distribution

pep440deb-1.2-py2.py3-none-any.whl (3.3 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file pep440deb-1.2.tar.gz.

File metadata

  • Download URL: pep440deb-1.2.tar.gz
  • Upload date:
  • Size: 2.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for pep440deb-1.2.tar.gz
Algorithm Hash digest
SHA256 d82c59883ae2828e3fa8b86434bb5c235fc1e0bffc1322281e804be85302fc9c
MD5 afef7ad815196d1d4431d9e554e0f298
BLAKE2b-256 fd82219683ebf3dfe4b04934a955be16a433bd0eda3ff68cef0486c7884355d8

See more details on using hashes here.

Provenance

File details

Details for the file pep440deb-1.2-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for pep440deb-1.2-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 1c0edf323b82aad602ef801e22a0412fd22c1579ac1c4fa073e1c84c4ad19688
MD5 42446bf52855b9f2876e733eb11b0ec4
BLAKE2b-256 a552477455dc57e42fbf906aff5479e8b69c844a2b11ae01438c10eb7114fea0

See more details on using hashes here.

Provenance

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