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.1.tar.gz (32.8 kB view details)

Uploaded Source

Built Distribution

File details

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

File metadata

  • Download URL: pep440-version-compare-cli-1.0.1.tar.gz
  • Upload date:
  • Size: 32.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.1.3 requests-toolbelt/0.9.1 tqdm/4.44.0 CPython/3.8.2

File hashes

Hashes for pep440-version-compare-cli-1.0.1.tar.gz
Algorithm Hash digest
SHA256 aa2daa6ce534167ce3f4e87c88038c6321e162bf9a463285b09fc611eee80376
MD5 bebd122c567fe382dd463e6ba70f147b
BLAKE2b-256 5614583a22c4c688a714bae8cbeaa557d02ade71b2d67aece85c958fb6f46977

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for pep440_version_compare_cli-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 839b905b5caad7f25f406a8405b401e3f6f660d1a552b1a1f958d0064b7dabd7
MD5 029c4641f691e70dcaa607a6cc7e2937
BLAKE2b-256 628e094f808866e44f485f143fd84f464e86f3d08033be19ef4361591c18482c

See more details on using hashes here.

Supported by

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