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.1.1b1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 571f181843e0494f9277ec8512e98c015ab6207074c0c2bdab9142fa15d2f5af |
|
MD5 | 79502153fdb5f53865ac0420446c1a10 |
|
BLAKE2b-256 | 1d58b6788c483f964193bfca6be736807cb67db90f68a1bad8df979543a0bae7 |
Hashes for proman_versioning-0.1.1b1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9490103d89ffa14809442060020753624376294454f11503399defd879fbd373 |
|
MD5 | 031351af0415292503f0da3bf8c15339 |
|
BLAKE2b-256 | ea5b4f59375092cf8004de53ca094755d0e1901d27dac497487c6095b8014e20 |