Debian Codegraph @

third_party/python/looseversion/looseversion-1.0.1.dist-info/METADATA

raw
1 Metadata-Version: 2.1
2 Name: looseversion
3 Version: 1.0.1
4 Summary: Version numbering for anarchists and software realists
5 Home-page: https://github.com/effigies/looseversion
6 Author: Chris Markiewicz
7 Author-email: [email protected]
8 License: PSF-2.0
9 Classifier: Programming Language :: Python :: 3
10 Classifier: Development Status :: 6 - Mature
11 Classifier: License :: OSI Approved :: Python Software Foundation License
12 Requires-Python: >=3
13 Description-Content-Type: text/markdown
14 License-File: LICENSE
15
16 # looseversion - Version numbering for anarchists and software realists
17
18 A backwards/forwards-compatible fork of `distutils.version.LooseVersion`,
19 for times when PEP-440 isn't what you need.
20
21 The goal of this package is to be a drop-in replacement for the original `LooseVersion`.
22 It implements an identical interface and comparison logic to `LooseVersion`.
23 The only major change is that a `looseversion.LooseVersion` is comparable to a
24 `distutils.version.LooseVersion`, which means tools should not need to worry whether
25 all dependencies that use LooseVersion have migrated.
26
27 If you are simply comparing versions of Python packages, consider moving to
28 [packaging.version.Version](https://packaging.pypa.io/en/latest/version.html#packaging.version.Version),
29 which follows [PEP-440](https://peps.python.org/pep-0440).
30 `LooseVersion` is better suited to interacting with heterogeneous version schemes that
31 do not follow PEP-440.
32
33 ## Installation
34
35 ### From PyPI
36
37 ```
38 pip install looseversion
39 ```
40
41 ### From source
42
43 ```
44 git clone https://github.com/effigies/looseversion.git
45 pip install looseversion/
46 ```
47
48 ## Usage
49
50 ```Python
51 >>> from looseversion import LooseVersion
52 >>> LooseVersion("1.0.0") < LooseVersion("2.0.0")
53 True
54 >>> LooseVersion("1.0.0") < "2"
55 True
56 ```