Python version bumper.
Project description
verbum
A version bumping library.
Examle
from verbum import verbum
current_release = "1.1.1"
new_release = verbum.bump_version(current_release, verbum.BumpType.ALPHA)
print(new_release) # 1.1.1a1
Version strings
Input
verbum is opinionated and version strings accepted by bump_version
are a subset of valid strings
specified in PEP440.
Output
Version strings output by bump_version
are PEP440 compliant.
Ruleset on top of PEP440
- Three version numbers are mandatory:
X.Y.Z
. - A leading forth number (epoch) is forbidden.
- Pre-release identifier like alpha, beta and release-candidates are only allowed with their
abbreviations:
alpha
->a
beata
->b
release-candidate
->rc
- Other variante as
rc
are not supported for release-candidates. - Pre-release identifier must follow the scheme
{a|b|rc}N
whereN
is an interger. - Pre-release and post-release counter must start with 1 not 0.
A 0 is interpreted as not set. This means e.g. bumping a post-release on this
1.1.1rc0
would result in1.1.1.post1
. - Additional identifiers or separators are forbidden.
Valid examples
1.2.3a1
1.2.3b1
1.2.3rc1
1.2.3
1.2.3.post1
1.2.3a1.post1
1.2.3b1.post1
1.2.3rc1.post1
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
verbum-2.0.0.tar.gz
(9.3 kB
view details)
Built Distribution
File details
Details for the file verbum-2.0.0.tar.gz
.
File metadata
- Download URL: verbum-2.0.0.tar.gz
- Upload date:
- Size: 9.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.1.13 CPython/3.8.10 Linux/5.4.0-113-generic
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1382516101b935a792f69913c3ef245efaa7afb903e577203960d1f37edb1e63 |
|
MD5 | da0c737fab45969a4c80845d99b86810 |
|
BLAKE2b-256 | 053255e1e1dc3efbd145cbc2f3f0a72804a363d651815ff9b06a5604996689d5 |
File details
Details for the file verbum-2.0.0-py3-none-any.whl
.
File metadata
- Download URL: verbum-2.0.0-py3-none-any.whl
- Upload date:
- Size: 5.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.1.13 CPython/3.8.10 Linux/5.4.0-113-generic
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | f78ef636e3c5e04672a865fd25e25503899164231166205c5a2696c5eb78b827 |
|
MD5 | 158bca1dc7a63824ca6a41238707868a |
|
BLAKE2b-256 | 0832646cf2b3341cda08c4113c6ab1cbdb8c13be203fa3f879a1a26841013d78 |