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.3.tar.gz
(2.8 kB
view details)
Built Distribution
File details
Details for the file pep440deb-1.3.tar.gz
.
File metadata
- Download URL: pep440deb-1.3.tar.gz
- Upload date:
- Size: 2.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | cfeafaf076d6cf90e3347f9f8274a7ce6c9b7f5b27a9fbf8b46584f237bc8c72 |
|
MD5 | f7fda7a039ae9f9095c25f04c42f7507 |
|
BLAKE2b-256 | 57e5a7df58c21b647730ae19088511b89d57768f4dbfdc01ff832f93914a3dc3 |
File details
Details for the file pep440deb-1.3-py2.py3-none-any.whl
.
File metadata
- Download URL: pep440deb-1.3-py2.py3-none-any.whl
- Upload date:
- Size: 3.3 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | b22792e873197bffc8e7f7ff7096918be8eb0389cf7a22ea82970312d4a58a71 |
|
MD5 | 86b0237760f7526e03213c051084b81d |
|
BLAKE2b-256 | 328fa136c602224e07cdd67021b1bb3c5c690fa9824f555cb902eb5b820a08fb |