Manage project semantic version.
Project description
Semversion
Python Semantic Versioning Tool
semversion is a Python module designed to manage and easily modify semantic versions of your projects. With this tool, you can keep a version log and update it as needed.
Installation
You can install semversion using pip:
$ pip install semversion
Running this command for the first time promts for the creation of the .version file if it doesnt exists.
Version file can be modified using envirment variable SEMVERSION_FILE
Basic Usage
semversion can be used as a standalone python module, mainly for scripting.
$ python -m semversion <version_part>
Example Usage
from semversion import version, increment, initialize, SEMVERSION_FILE, MAJOR, MINOR, PATCH
# Get the current version
current_version = version()
print(f"Current version: {current_version}")
# Increment the minor version
new_version = increment(MINOR)
print(f"New version: {new_version}")
Contribute
Feel free to contribute! Open an issue or send a pull request.
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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file semversion-2.0.3.tar.gz.
File metadata
- Download URL: semversion-2.0.3.tar.gz
- Upload date:
- Size: 3.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9e73b4f7e03ff696aac957a6a6ca22501b08902bf835624588a5901065fdc45c
|
|
| MD5 |
4b56a26831fcb1b36aac5d16c5077f59
|
|
| BLAKE2b-256 |
2343d0b30ac91a89b6a51b545d8ba030becb4e4402b9c163f8c828b2de2a434e
|
File details
Details for the file semversion-2.0.3-py3-none-any.whl.
File metadata
- Download URL: semversion-2.0.3-py3-none-any.whl
- Upload date:
- Size: 5.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
797bf7e2efd05da745b0408d7ade45147584a93501a6b307dd1a9aa85bd9ae31
|
|
| MD5 |
06e66e57a575d1a9ba6c61883372710a
|
|
| BLAKE2b-256 |
31b3eb7d38683a2bfafcab8e97a8d4d07b99b4d66b02dbde7524df9ea14c4f49
|