Skip to main content
Join the official Python Developers Survey 2018 and win valuable prizes: Start the survey!

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.

Filename, size & hash SHA256 hash help File type Python version Upload date
pep440deb-1.3-py2.py3-none-any.whl (3.3 kB) Copy SHA256 hash SHA256 Wheel 3.5 Jun 26, 2018
pep440deb-1.3.tar.gz (2.8 kB) Copy SHA256 hash SHA256 Source None Jun 26, 2018

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page