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.0.dev1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | bf2ba545ccae00a35c5fced8408131ba166a4645f6dabb95ce40f31325b9f3d4 |
|
MD5 | 400a5adf8efea5972e4d449dd03aac97 |
|
BLAKE2b-256 | fc8916152946091c6e53e8c01a504aebde2254c7b5eac6bce5f3d6269f1a0538 |
Hashes for proman_versioning-0.2.0.dev1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c8ddcdc54addafd4289034e7fd17596062f07a82871d8ba59e678626ed9a2d84 |
|
MD5 | 7d1c8f4f95e574b3293d9aeec53a3d5b |
|
BLAKE2b-256 | 0bba1969f45916f44bed4a2ffd2b41f56710cd788cfddad1bd2bc360b9573e69 |