``pkg_resources`` wrapper to compare versions using PEP 440 rules from the command line.
Project description
A CLI wrapper around pkg_resources to compare versions using PEP 440 rules (i.e., not SemVer rules).
This is especially important for comparing alpha versions when releasing to PyPI.
Usage
$ pip install pep440-version-compare-cli
$ pep440cmp 1.0.0 lt 2.0.0
True
$ echo $?
0
$ pep440cmp 1.0.0rc4 lt 1.0.0a5 > /dev/null
$ echo $?
1
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Close
Hashes for pep440-version-compare-cli-1.0.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4099d7f73370db8172b6720624aee7c41136b2a2b7225436f50a59907984f41a |
|
MD5 | f4fe20abb50451b76bfbf78c4d91bede |
|
BLAKE2b-256 | 34d65569ea2e0fc7ece0130320ee109593ee61bcff4ea6f5846eaa039332a542 |
Close
Hashes for pep440_version_compare_cli-1.0.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 077668c1b1281d9483a6bf88d12138c1eb3978e359fb81ef2503e71b9d104195 |
|
MD5 | 27dc62c966755b794569f97767a65cc4 |
|
BLAKE2b-256 | 8604bcf51b195d3938300009d9f7b492ca8b03f4421214f6db1a453487311e52 |