Skip to main content

``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


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

Uploaded Source

Built Distribution

File details

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

File metadata

  • Download URL: pep440-version-compare-cli-1.0.0.tar.gz
  • Upload date:
  • Size: 30.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/45.1.0 requests-toolbelt/0.9.1 tqdm/4.40.1 CPython/3.7.5

File hashes

Hashes for pep440-version-compare-cli-1.0.0.tar.gz
Algorithm Hash digest
SHA256 4099d7f73370db8172b6720624aee7c41136b2a2b7225436f50a59907984f41a
MD5 f4fe20abb50451b76bfbf78c4d91bede
BLAKE2b-256 34d65569ea2e0fc7ece0130320ee109593ee61bcff4ea6f5846eaa039332a542

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pep440_version_compare_cli-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 9.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/45.1.0 requests-toolbelt/0.9.1 tqdm/4.40.1 CPython/3.7.5

File hashes

Hashes for pep440_version_compare_cli-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 077668c1b1281d9483a6bf88d12138c1eb3978e359fb81ef2503e71b9d104195
MD5 27dc62c966755b794569f97767a65cc4
BLAKE2b-256 8604bcf51b195d3938300009d9f7b492ca8b03f4421214f6db1a453487311e52

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