diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-07 19:33:14 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-07 19:33:14 +0000 |
commit | 36d22d82aa202bb199967e9512281e9a53db42c9 (patch) | |
tree | 105e8c98ddea1c1e4784a60a5a6410fa416be2de /third_party/python/looseversion/looseversion-1.0.1.dist-info/METADATA | |
parent | Initial commit. (diff) | |
download | firefox-esr-36d22d82aa202bb199967e9512281e9a53db42c9.tar.xz firefox-esr-36d22d82aa202bb199967e9512281e9a53db42c9.zip |
Adding upstream version 115.7.0esr.upstream/115.7.0esr
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'third_party/python/looseversion/looseversion-1.0.1.dist-info/METADATA')
-rw-r--r-- | third_party/python/looseversion/looseversion-1.0.1.dist-info/METADATA | 56 |
1 files changed, 56 insertions, 0 deletions
diff --git a/third_party/python/looseversion/looseversion-1.0.1.dist-info/METADATA b/third_party/python/looseversion/looseversion-1.0.1.dist-info/METADATA new file mode 100644 index 0000000000..2ba9f265d0 --- /dev/null +++ b/third_party/python/looseversion/looseversion-1.0.1.dist-info/METADATA @@ -0,0 +1,56 @@ +Metadata-Version: 2.1 +Name: looseversion +Version: 1.0.1 +Summary: Version numbering for anarchists and software realists +Home-page: https://github.com/effigies/looseversion +Author: Chris Markiewicz +Author-email: effigies@gmail.com +License: PSF-2.0 +Classifier: Programming Language :: Python :: 3 +Classifier: Development Status :: 6 - Mature +Classifier: License :: OSI Approved :: Python Software Foundation License +Requires-Python: >=3 +Description-Content-Type: text/markdown +License-File: LICENSE + +# looseversion - Version numbering for anarchists and software realists + +A backwards/forwards-compatible fork of `distutils.version.LooseVersion`, +for times when PEP-440 isn't what you need. + +The goal of this package is to be a drop-in replacement for the original `LooseVersion`. +It implements an identical interface and comparison logic to `LooseVersion`. +The only major change is that a `looseversion.LooseVersion` is comparable to a +`distutils.version.LooseVersion`, which means tools should not need to worry whether +all dependencies that use LooseVersion have migrated. + +If you are simply comparing versions of Python packages, consider moving to +[packaging.version.Version](https://packaging.pypa.io/en/latest/version.html#packaging.version.Version), +which follows [PEP-440](https://peps.python.org/pep-0440). +`LooseVersion` is better suited to interacting with heterogeneous version schemes that +do not follow PEP-440. + +## Installation + +### From PyPI + +``` +pip install looseversion +``` + +### From source + +``` +git clone https://github.com/effigies/looseversion.git +pip install looseversion/ +``` + +## Usage + +```Python +>>> from looseversion import LooseVersion +>>> LooseVersion("1.0.0") < LooseVersion("2.0.0") +True +>>> LooseVersion("1.0.0") < "2" +True +``` |