Metadata-Version: 2.1
Name: pep440-version-compare-cli
Version: 1.0.10
Summary: ``pkg_resources`` wrapper to compare versions using PEP 440 rules from the command line.
Home-page: https://github.com/hotoffthehamster/pep440-version-compare-cli
Author: HotOffThe Hamster
Author-email: hotoffthehamster+pep440cmp@gmail.com
License: MIT
Project-URL: Documentation, https://pep440-version-compare-cli.readthedocs.io/en/latest/
Project-URL: Source Code, https://github.com/hotoffthehamster/pep440-version-compare-cli
Keywords: library,configuration,settings,options,ini,conf,config
Platform: any
Classifier: License :: OSI Approved :: MIT License
Classifier: Development Status :: 5 - Production/Stable
Classifier: Intended Audience :: Developers
Classifier: Natural Language :: English
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.8
Classifier: Programming Language :: Python :: 3.7
Classifier: Programming Language :: Python :: 3.6
Classifier: Programming Language :: Python :: 3.5
Classifier: Programming Language :: Python
Classifier: Topic :: Software Development :: Libraries :: Python Modules
Description-Content-Type: text/x-rst; charset=UTF-8
Requires-Dist: click (<8,>=7.0)

##########################
pep440-version-compare-cli
##########################

.. image:: https://api.travis-ci.com/hotoffthehamster/pep440-version-compare-cli.svg?branch=develop
  :target: https://travis-ci.com/hotoffthehamster/pep440-version-compare-cli
  :alt: Build Status

.. image:: https://codecov.io/gh/hotoffthehamster/pep440-version-compare-cli/branch/develop/graph/badge.svg
  :target: https://codecov.io/gh/hotoffthehamster/pep440-version-compare-cli
  :alt: Coverage Status

.. image:: https://readthedocs.org/projects/pep440-version-compare-cli/badge/?version=latest
  :target: https://pep440-version-compare-cli.readthedocs.io/en/latest/
  :alt: Documentation Status

.. image:: https://img.shields.io/github/v/release/hotoffthehamster/pep440-version-compare-cli.svg?style=flat
  :target: https://github.com/hotoffthehamster/pep440-version-compare-cli/releases
  :alt: GitHub Release Status

.. image:: https://img.shields.io/pypi/v/pep440-version-compare-cli.svg
  :target: https://pypi.org/project/pep440-version-compare-cli/
  :alt: PyPI Release Status

.. image:: https://img.shields.io/github/license/hotoffthehamster/pep440-version-compare-cli.svg?style=flat
  :target: https://github.com/hotoffthehamster/pep440-version-compare-cli/blob/release/LICENSE
  :alt: 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

.. code-block:: bash

   $ 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



