Skip to main content

Manage project semantic version.

Project description

Semversion

Python Semantic Versioning Tool

Open in Dev Containers Code style: black Test Lint Deploy to PyPI Deploy to PyPI Test

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

semversion-2.0.3.tar.gz (3.7 kB view details)

Uploaded Source

Built Distribution

semversion-2.0.3-py3-none-any.whl (5.4 kB view details)

Uploaded Python 3

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

Hashes for semversion-2.0.3.tar.gz
Algorithm Hash digest
SHA256 9e73b4f7e03ff696aac957a6a6ca22501b08902bf835624588a5901065fdc45c
MD5 4b56a26831fcb1b36aac5d16c5077f59
BLAKE2b-256 2343d0b30ac91a89b6a51b545d8ba030becb4e4402b9c163f8c828b2de2a434e

See more details on using hashes here.

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

Hashes for semversion-2.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 797bf7e2efd05da745b0408d7ade45147584a93501a6b307dd1a9aa85bd9ae31
MD5 06e66e57a575d1a9ba6c61883372710a
BLAKE2b-256 31b3eb7d38683a2bfafcab8e97a8d4d07b99b4d66b02dbde7524df9ea14c4f49

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page