{"id":13593484,"url":"https://github.com/pyveci/verlib2","last_synced_at":"2025-06-27T14:05:10.142Z","repository":{"id":199987497,"uuid":"704724163","full_name":"pyveci/verlib2","owner":"pyveci","description":"Standalone variant of \"distutils.version\" and \"packaging.version\", without anything else.","archived":false,"fork":false,"pushed_at":"2025-06-01T13:51:57.000Z","size":56,"stargazers_count":2,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-06-13T19:03:38.371Z","etag":null,"topics":["distutils","packaging","packaging-python","python","python-distutils","python-packaging","python-version","python-versions","versioning"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-2-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/pyveci.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGES.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2023-10-13T23:07:01.000Z","updated_at":"2025-04-20T17:24:06.000Z","dependencies_parsed_at":"2023-10-15T02:59:24.658Z","dependency_job_id":"c31d5836-ec7d-4e13-a364-7d38db0ce10f","html_url":"https://github.com/pyveci/verlib2","commit_stats":null,"previous_names":["panodata/verlib2","pyveci/verlib2"],"tags_count":5,"template":false,"template_full_name":null,"purl":"pkg:github/pyveci/verlib2","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pyveci%2Fverlib2","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pyveci%2Fverlib2/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pyveci%2Fverlib2/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pyveci%2Fverlib2/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/pyveci","download_url":"https://codeload.github.com/pyveci/verlib2/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pyveci%2Fverlib2/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":259704412,"owners_count":22898858,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["distutils","packaging","packaging-python","python","python-distutils","python-packaging","python-version","python-versions","versioning"],"created_at":"2024-08-01T16:01:20.741Z","updated_at":"2025-06-13T19:04:52.790Z","avatar_url":"https://github.com/pyveci.png","language":"Python","readme":"# verlib2\n\n[![Tests](https://github.com/pyveci/verlib2/actions/workflows/main.yml/badge.svg)](https://github.com/pyveci/verlib2/actions/workflows/main.yml)\n[![Test coverage](https://img.shields.io/codecov/c/gh/pyveci/verlib2.svg)](https://codecov.io/gh/pyveci/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/pyveci/verlib2.svg)](https://github.com/pyveci/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\u003c!-- » [Documentation] --\u003e\n\n» [Changelog]\n| [PyPI]\n| [Issues]\n| [Source code]\n| [License]\n\n[Changelog]: https://github.com/pyveci/verlib2/blob/main/CHANGES.md\n[Documentation]: https://verlib2.readthedocs.io/\n[Issues]: https://github.com/pyveci/verlib2/issues\n[License]: https://github.com/pyveci/verlib2/blob/main/LICENSE\n[PyPI]: https://pypi.org/project/verlib2/\n[Source code]: https://github.com/pyveci/verlib2\n\n\n## About\n\nA standalone variant of `distutils.version` and `packaging.version`,\nwithout anything else.\n\n[verlib] is the implementation of [PEP 386].\n[verlib2] is the implementation of [PEP 440]. \nIt also includes the original `distutils.version` implementation,\nfor those who need it going forward.\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```python\nfrom verlib2 import Version\n\nassert Version(\"1.0.dev456\") \u003c Version(\"1!1.2.rev33+123456\") \n```\n\nNote: `verlib2.Version` provides packaging's `Version`, while\nboth implementations can be accessed like this:\n```python\nfrom verlib2.distutils.version import LooseVersion, StrictVersion\nfrom verlib2.packaging.version import Version\n```\n\n\n## Acknowledgements\n\nGreg Stein, Greg Ward, Donald Stufft, Tarek Ziadé, and all contributors to\n`distutilsversion`, `verlib`, `distutils`, `distutils2`, `packaging.version`,\nPEP-0386, PEP-0440, and most probably many 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","funding_links":[],"categories":["Python"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpyveci%2Fverlib2","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpyveci%2Fverlib2","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpyveci%2Fverlib2/lists"}