mirror of https://github.com/RazerM/parver.git
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
![]() |
8 months ago | |
---|---|---|
.github/workflows | 8 months ago | |
docs | 2 years ago | |
src/parver | 2 years ago | |
tests | 2 years ago | |
.gitignore | 4 years ago | |
.pre-commit-config.yaml | 4 years ago | |
.readthedocs.yml | 4 years ago | |
CHANGELOG.md | 2 years ago | |
LICENSE | 4 years ago | |
MANIFEST.in | 4 years ago | |
README.rst | 2 years ago | |
pyproject.toml | 3 years ago | |
setup.cfg | 2 years ago | |
setup.py | 8 months ago | |
tox.ini | 8 months ago |
README.rst
parver
parver allows parsing and manipulation of PEP 440 version numbers.
Example
>>> Version.parse('1.3').bump_dev()
<Version '1.3.dev0'>
>>> v = Version.parse('v1.2.alpha-3')
>>> v.is_alpha
True
>>> v.pre
3
>>> v
<Version 'v1.2.alpha-3'>
>>> v.normalize()
<Version '1.2a3'>