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 details)

Uploaded Source

Built Distribution

File details

Details for the file pep440-version-compare-cli-1.0.10.tar.gz.

File metadata

  • Download URL: pep440-version-compare-cli-1.0.10.tar.gz
  • Upload date:
  • Size: 2.8 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.23.0 setuptools/47.3.1 requests-toolbelt/0.9.1 tqdm/4.44.0 CPython/3.8.3

File hashes

Hashes for pep440-version-compare-cli-1.0.10.tar.gz
Algorithm Hash digest
SHA256 594bb5d015f85106fd5c8403d4531190a6f52e77110205c2bf298116231bae07
MD5 15de31a1d12269064c7f34e12126850d
BLAKE2b-256 7490331eb5acf4a67c317c7827f6891a47d22a16a0a8098983ba513c743cad54

See more details on using hashes here.

File details

Details for the file pep440_version_compare_cli-1.0.10-py3-none-any.whl.

File metadata

  • Download URL: pep440_version_compare_cli-1.0.10-py3-none-any.whl
  • Upload date:
  • Size: 9.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.23.0 setuptools/47.3.1 requests-toolbelt/0.9.1 tqdm/4.44.0 CPython/3.8.3

File hashes

Hashes for pep440_version_compare_cli-1.0.10-py3-none-any.whl
Algorithm Hash digest
SHA256 96610c19158fe797c81d98c140a6c665d428468c4e3c6ad7723bc202ac770e11
MD5 254972f873477ef3872ee89a02c3901e
BLAKE2b-256 b5c3458310a09ebbaf10d861ac7abf0156a374bebde67b54f6104339a9bae6e8

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page