Metadata-Version: 2.1
Name: parver
Version: 0.5
Summary: Parse and manipulate version numbers.
Author-email: Frazer McLean <frazer@frazermclean.co.uk>
License: MIT
Project-URL: Documentation, https://parver.readthedocs.io
Project-URL: Source Code, https://github.com/RazerM/parver
Keywords: pep440,version,parse
Classifier: Development Status :: 5 - Production/Stable
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 3 :: Only
Classifier: Programming Language :: Python :: 3.8
Classifier: Programming Language :: Python :: 3.9
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Programming Language :: Python :: Implementation :: CPython
Classifier: Programming Language :: Python :: Implementation :: PyPy
Requires-Python: >=3.8
Description-Content-Type: text/x-rst
License-File: LICENSE
Requires-Dist: arpeggio >=1.7
Requires-Dist: attrs >=19.2
Requires-Dist: typing-extensions ; python_version < "3.10"
Provides-Extra: docs
Requires-Dist: sphinx ; extra == 'docs'
Requires-Dist: furo ; extra == 'docs'
Provides-Extra: docstest
Requires-Dist: doc8 ; extra == 'docstest'
Provides-Extra: pep8test
Requires-Dist: flake8 ; extra == 'pep8test'
Requires-Dist: pep8-naming ; extra == 'pep8test'
Provides-Extra: test
Requires-Dist: pytest ; extra == 'test'
Requires-Dist: hypothesis ; extra == 'test'
Requires-Dist: pretend ; extra == 'test'

.. image:: https://img.shields.io/pypi/v/parver.svg
   :target: https://pypi.org/project/parver/
   :alt: PyPI

.. image:: https://img.shields.io/badge/docs-read%20now-blue.svg
   :target: https://parver.readthedocs.io/en/latest/?badge=latest
   :alt: Documentation Status

.. image:: https://github.com/RazerM/parver/workflows/CI/badge.svg?branch=master
   :target: https://github.com/RazerM/parver/actions?workflow=CI
   :alt: CI Status

.. image:: https://codecov.io/gh/RazerM/parver/branch/master/graph/badge.svg
   :target: https://codecov.io/gh/RazerM/parver
   :alt: Test coverage

.. image:: https://img.shields.io/github/license/RazerM/parver.svg
   :target: https://raw.githubusercontent.com/RazerM/parver/master/LICENSE.txt
   :alt: MIT License

parver
======

parver allows parsing and manipulation of `PEP 440`_ version numbers.

Example
=======

.. code:: python

    >>> 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'>

.. _`PEP 440`: https://www.python.org/dev/peps/pep-0440/
