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.

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


Download files

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

Source Distribution

pep440-version-compare-cli-1.0.10.tar.gz (2.8 MB view hashes)

Uploaded source

Built Distribution

Supported by

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