Skip to main content

``pkg_resources`` wrapper to compare versions using PEP 440 rules from the command line.

Project description

Build Status Coverage Status Documentation Status GitHub Release Status PyPI Release Status License Status

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.


$ pip install pep440-version-compare-cli

$ pep440cmp 1.0.0 lt 2.0.0
$ echo $?

$ pep440cmp 1.0.0rc4 lt 1.0.0a5 > /dev/null
$ echo $?

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for pep440-version-compare-cli, version 1.0.10
Filename, size File type Python version Upload date Hashes
Filename, size pep440_version_compare_cli-1.0.10-py3-none-any.whl (9.4 kB) File type Wheel Python version py3 Upload date Hashes View
Filename, size pep440-version-compare-cli-1.0.10.tar.gz (2.8 MB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page