Metadata-Version: 2.3
Name: pridever
Version: 0.1.1
Summary: Add your description here
Author: nicoco
Author-email: nicoco <nicoco@nicoco.fr>
Requires-Python: >=3.11
Project-URL: Repository, https://codeberg.org/nicoco/pridever
Description-Content-Type: text/markdown

# pridever

A little script and a little lib to parse
[pride versions](https://pridever.org/)
and bump them.

## CLI

```shell
$ uvx pridever 1.4.3 proud
v2.0.0
$ uvx pridever 1.4.3 normal --beta
v1.5.0beta0
```

## lib

```python
>>> from pridever import PrideVer
>>> PrideVer.from_str("v1.4.3").bump("proud")
v2.0.0
>>> PrideVer(1, 5, 0).bump("normal", beta=True)
v1.6.0beta0
>>> PrideVer(1, 5, 0, "beta0").bump(post=True)  # doctest: +IGNORE_EXCEPTION_DETAIL
Traceback (most recent call last):
ValueError: Cannot bump to a post-release from v1.5.0beta0

```

## Why?

There is definitely a lot of similar tools out there, but writing this brought
me joy, which was enough of a reason for me.
It was written for [slidge](https://codeberg.org/slidge).
