semvermamager implements a restricted subset of the SEMVER standard
Project description
semvermmanager
semvermamager
exports a single class Version
which implements
a restricted subset of the SEMVER standard.
Version
defines a Semantic version using the following field
structure:
# MAJOR.MINOR.PATCH-TAG
int MAJOR # 0->N
int MINOR # 0->N
int PATCH # 0-N
str TAG # one of "alpha", "beta", "prod".
Versions may be bumped by a single increment using any of the
bump
functions. Bumping a PATCH value simply increments it.
Bumping a MINOR value zeros the PATCH value and bumping a MAJOR
zeros the MINOR and the PATCH value.
semvermanager
only supports Python 3.6 and greater.
semvergen script
The package includes a command line script for generating versions.
$ ./bin/semvergen -h
usage: semvergen [-h] [--filename FILENAME] [--version VERSION] [--make]
[--bump {major,minor,patch,tag}] [--getversion]
[--bareversion] [--overwrite] [--update]
optional arguments:
-h, --help show this help message and exit
--filename FILENAME File to use as version file [default: VERSION]
--version VERSION Specify a version in the form major.minor.patch-tag
--make Make a new version file
--bump {major,minor,patch,tag}
Bump a version field
--getversion Report the current version in the specified file
--bareversion Return the unquoted version strin with VERSION=
--overwrite overwrite files without checking
--update Update multiple version strings in file
$
Installation
$ pip3 install semvermanager
Docs
Full class docs are on readthedocs.io.
Source code
Can be found on github.com
Author: jdrumgoole on GitHub
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
Built Distribution
Hashes for semvermanager-0.0.2a0-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 068f235f29814310ed638bb063b6804ce6a57b8864ea9f4d28985a77f7d9c596 |
|
MD5 | 01e0581001a877787b93385344004669 |
|
BLAKE2b-256 | fafe01982778fa4076f1c0897cd588a634d4dedb7e34e874f4aa93b7659f8d78 |