verlib2


Nameverlib2 JSON
Version 0.2.0 PyPI version JSON
download
home_page
SummaryA standalone variant of packaging.version, without anything else.
upload_time2023-10-24 19:10:13
maintainer
docs_urlNone
author
requires_python>=3.6
licenseApache License 2.0
keywords distutils packaging version
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # verlib2

[![Tests](https://github.com/panodata/verlib2/actions/workflows/main.yml/badge.svg)](https://github.com/panodata/verlib2/actions/workflows/main.yml)
[![Test coverage](https://img.shields.io/codecov/c/gh/panodata/verlib2.svg)](https://codecov.io/gh/panodata/verlib2/)
[![Python versions](https://img.shields.io/pypi/pyversions/verlib2.svg)](https://pypi.org/project/verlib2/)

[![License](https://img.shields.io/github/license/panodata/verlib2.svg)](https://github.com/panodata/verlib2/blob/main/LICENSE)
[![Status](https://img.shields.io/pypi/status/verlib2.svg)](https://pypi.org/project/verlib2/)
[![PyPI](https://img.shields.io/pypi/v/verlib2.svg)](https://pypi.org/project/verlib2/)
[![Downloads](https://pepy.tech/badge/verlib2/month)](https://www.pepy.tech/projects/verlib2)


<!-- » [Documentation] -->

» [Changelog]
| [PyPI]
| [Issues]
| [Source code]
| [License]

[Changelog]: https://github.com/panodata/verlib2/blob/main/CHANGES.md
[Documentation]: https://verlib2.readthedocs.io/
[Issues]: https://github.com/panodata/verlib2/issues
[License]: https://github.com/panodata/verlib2/blob/main/LICENSE
[PyPI]: https://pypi.org/project/verlib2/
[Source code]: https://github.com/panodata/verlib2


## About

A standalone variant of `packaging.version`, without anything else.

[verlib] is the implementation of [PEP 386]. [verlib2] is the implementation of [PEP 440]. 


## Rationale

Everyone needs to compare versions, but no one wants to add `packaging` as a dependency.
`distutils` is deprecated, and Python 3.12 removed it from the standard library.


## Setup

```shell
pip install verlib2
```


## Usage
```
from verlib2 import Version

assert Version("1.0.dev456") < Version("1!1.2.rev33+123456") 
```


## Acknowledgements

Tarek Ziadé, Donald Stufft, and all contributors to `distutilsversion`, `verlib`,
`distutils`, `distutils2`, `packaging.version`, PEP-0386, PEP-0440, and most
probably more.


## Prior Art

- https://peps.python.org/pep-0386/
- https://peps.python.org/pep-0440/
- http://bitbucket.org/tarek/distutilsversion/
- https://pypi.org/project/verlib/
- https://hg.python.org/distutils2
- https://github.com/pypa/packaging/blob/23.2/src/packaging/version.py
- https://github.com/numpy/numpy/pull/21000
- https://github.com/numpy/numpy/blob/v1.26.0/numpy/_utils/_pep440.py
- https://github.com/crate/crate-python/pull/513
- https://pypi.org/search/?q=pep440
- https://pypi.org/project/pep440/
- https://pypi.org/project/pep440deb/
- https://pypi.org/project/pep440nz/
- https://pypi.org/project/pep440-rs/
- https://pypi.org/project/pep440-utility/
- https://pypi.org/project/pep440-version-utils/
- https://pypi.org/project/version-utils/


## Development

Set up package in development mode.
```shell
python3 -m venv .venv
source .venv/bin/activate
pip install --editable='.[develop,test]'
```

Run software tests.
```shell
poe check
```



[verlib]: https://pypi.org/project/verlib/
[verlib2]: https://pypi.org/project/verlib2/
[PEP 386]: https://peps.python.org/pep-0386/
[PEP 440]: https://peps.python.org/pep-0440/

            

Raw data

            {
    "_id": null,
    "home_page": "",
    "name": "verlib2",
    "maintainer": "",
    "docs_url": null,
    "requires_python": ">=3.6",
    "maintainer_email": "Andreas Motl <andreas.motl@panodata.org>",
    "keywords": "distutils,packaging,version",
    "author": "",
    "author_email": "Donald Stufft <donald@stufft.io>",
    "download_url": "https://files.pythonhosted.org/packages/7a/e3/a27d3b956f9ba6dcdf1404474c466d29bf219cc92f803cbbb3a7f698abe1/verlib2-0.2.0.tar.gz",
    "platform": null,
    "description": "# verlib2\n\n[![Tests](https://github.com/panodata/verlib2/actions/workflows/main.yml/badge.svg)](https://github.com/panodata/verlib2/actions/workflows/main.yml)\n[![Test coverage](https://img.shields.io/codecov/c/gh/panodata/verlib2.svg)](https://codecov.io/gh/panodata/verlib2/)\n[![Python versions](https://img.shields.io/pypi/pyversions/verlib2.svg)](https://pypi.org/project/verlib2/)\n\n[![License](https://img.shields.io/github/license/panodata/verlib2.svg)](https://github.com/panodata/verlib2/blob/main/LICENSE)\n[![Status](https://img.shields.io/pypi/status/verlib2.svg)](https://pypi.org/project/verlib2/)\n[![PyPI](https://img.shields.io/pypi/v/verlib2.svg)](https://pypi.org/project/verlib2/)\n[![Downloads](https://pepy.tech/badge/verlib2/month)](https://www.pepy.tech/projects/verlib2)\n\n\n<!-- \u00bb [Documentation] -->\n\n\u00bb [Changelog]\n| [PyPI]\n| [Issues]\n| [Source code]\n| [License]\n\n[Changelog]: https://github.com/panodata/verlib2/blob/main/CHANGES.md\n[Documentation]: https://verlib2.readthedocs.io/\n[Issues]: https://github.com/panodata/verlib2/issues\n[License]: https://github.com/panodata/verlib2/blob/main/LICENSE\n[PyPI]: https://pypi.org/project/verlib2/\n[Source code]: https://github.com/panodata/verlib2\n\n\n## About\n\nA standalone variant of `packaging.version`, without anything else.\n\n[verlib] is the implementation of [PEP 386]. [verlib2] is the implementation of [PEP 440]. \n\n\n## Rationale\n\nEveryone needs to compare versions, but no one wants to add `packaging` as a dependency.\n`distutils` is deprecated, and Python 3.12 removed it from the standard library.\n\n\n## Setup\n\n```shell\npip install verlib2\n```\n\n\n## Usage\n```\nfrom verlib2 import Version\n\nassert Version(\"1.0.dev456\") < Version(\"1!1.2.rev33+123456\") \n```\n\n\n## Acknowledgements\n\nTarek Ziad\u00e9, Donald Stufft, and all contributors to `distutilsversion`, `verlib`,\n`distutils`, `distutils2`, `packaging.version`, PEP-0386, PEP-0440, and most\nprobably more.\n\n\n## Prior Art\n\n- https://peps.python.org/pep-0386/\n- https://peps.python.org/pep-0440/\n- http://bitbucket.org/tarek/distutilsversion/\n- https://pypi.org/project/verlib/\n- https://hg.python.org/distutils2\n- https://github.com/pypa/packaging/blob/23.2/src/packaging/version.py\n- https://github.com/numpy/numpy/pull/21000\n- https://github.com/numpy/numpy/blob/v1.26.0/numpy/_utils/_pep440.py\n- https://github.com/crate/crate-python/pull/513\n- https://pypi.org/search/?q=pep440\n- https://pypi.org/project/pep440/\n- https://pypi.org/project/pep440deb/\n- https://pypi.org/project/pep440nz/\n- https://pypi.org/project/pep440-rs/\n- https://pypi.org/project/pep440-utility/\n- https://pypi.org/project/pep440-version-utils/\n- https://pypi.org/project/version-utils/\n\n\n## Development\n\nSet up package in development mode.\n```shell\npython3 -m venv .venv\nsource .venv/bin/activate\npip install --editable='.[develop,test]'\n```\n\nRun software tests.\n```shell\npoe check\n```\n\n\n\n[verlib]: https://pypi.org/project/verlib/\n[verlib2]: https://pypi.org/project/verlib2/\n[PEP 386]: https://peps.python.org/pep-0386/\n[PEP 440]: https://peps.python.org/pep-0440/\n",
    "bugtrack_url": null,
    "license": "Apache License 2.0",
    "summary": "A standalone variant of packaging.version, without anything else.",
    "version": "0.2.0",
    "project_urls": {
        "Repository": "https://github.com/panodata/verlib2"
    },
    "split_keywords": [
        "distutils",
        "packaging",
        "version"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "48d3ec173825185edcb54b950237561c5cf2310e8fb9f288974652449e0a079e",
                "md5": "36433ebc4a04041d59a2d7ba98b12309",
                "sha256": "c0fb8dbae76e228e55bb6178207cda931d44c843d8485c873b7676835edf2e8f"
            },
            "downloads": -1,
            "filename": "verlib2-0.2.0-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "36433ebc4a04041d59a2d7ba98b12309",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.6",
            "size": 8927,
            "upload_time": "2023-10-24T19:10:11",
            "upload_time_iso_8601": "2023-10-24T19:10:11.051396Z",
            "url": "https://files.pythonhosted.org/packages/48/d3/ec173825185edcb54b950237561c5cf2310e8fb9f288974652449e0a079e/verlib2-0.2.0-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "7ae3a27d3b956f9ba6dcdf1404474c466d29bf219cc92f803cbbb3a7f698abe1",
                "md5": "c7b9125a3dfeebad31f92eb10a8f8084",
                "sha256": "0ab94087c094e27163948dfa817c98d62b6bdd01226cce5188f8cc3cd68345b9"
            },
            "downloads": -1,
            "filename": "verlib2-0.2.0.tar.gz",
            "has_sig": false,
            "md5_digest": "c7b9125a3dfeebad31f92eb10a8f8084",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.6",
            "size": 10714,
            "upload_time": "2023-10-24T19:10:13",
            "upload_time_iso_8601": "2023-10-24T19:10:13.503159Z",
            "url": "https://files.pythonhosted.org/packages/7a/e3/a27d3b956f9ba6dcdf1404474c466d29bf219cc92f803cbbb3a7f698abe1/verlib2-0.2.0.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2023-10-24 19:10:13",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "panodata",
    "github_project": "verlib2",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": true,
    "lcname": "verlib2"
}
        
Elapsed time: 0.16665s