Project Manager Versioning tool.
Project description
Proman Versioning
Overview
Project Manager Versioning is a PEP-440 compliant tool for automating project versions using conventional commits.
Install
pip install proman-versioning
Setup
This tool is designed to work with any textfile using a templating pattern and path to the file.
Configuring versioning
Release versions can be configured by choosing the types of releases to use if any.
Disable devreleases:
enable_devreleases = false
Disable prereleases:
enable_prereleases = false
Disable postreleases:
enable_postreleases = false
Example .versioning
The .versioning
config is a non-specfile based project file using TOML. This is the
preferred configuration for non-python projects that may use this tool.
[proman]
version = "1.2.3"
[proman.versioning]
[[tool.proman.versioning.files]]
filepath = "pyproject.toml"
pattern = "version = \"${version}\""
[[proman.versioning.files]]
filepath = "example/__init__.py"
pattern = "__version__ = '${version}'"
Example pyproject.toml
[tool.proman]
version = "1.2.3"
[tool.proman.versioning]
[[tool.proman.versioning.files]]
filepath = "pyproject.toml"
pattern = "version = \"${version}\""
[[tool.proman.versioning.files]]
filepath = "example/__init__.py"
pattern = "__version__ = '${version}'"
Example setup.cfg
Setuptools allows setup.cfg
to pull the version from the application. This
should be used in tandem with either of the above configurations to control
versions for a project.
[metadata]
name = example
version = attr: src.VERSION
...
References
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 proman-versioning-0.2.0a2.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 34881b52dce7054be9ca953f7c5607f72d4464d6087aa876ce032ccb63528df6 |
|
MD5 | 1e4e4054a371c42c1861fce8ab8a0546 |
|
BLAKE2b-256 | ff492b60e7675082e59f83a4b2b7d500a14737fa30e653f5d7a14922747cb330 |
Hashes for proman_versioning-0.2.0a2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8730df8f73848fe5f7729d95c5104e53b20dc33fb96445d9ac2ae273345ba4f5 |
|
MD5 | 89c1b4a062a818f5f2c7ef4a8665087b |
|
BLAKE2b-256 | 36f5148625788cf2c5b6b08a8a1888f822e2a88f4735e47bb9ee4c580745af28 |