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.1a15.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8ec966aabec763b37286124081aca05cbbecfa933c374f364b25fc784c9d2df0 |
|
MD5 | 5b9f9c774191ddd680bf80c9bad92e24 |
|
BLAKE2b-256 | 84a4582fc89f213eb32d788fa6ac8b85e5170662b3905c25aa75ef557c8c58c5 |
Hashes for proman_versioning-0.1.1a15-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 161373f5eea14e3fd7fb125ec6b5acfb1f016cdcf1cd7d1ad2eac9e32f9ca583 |
|
MD5 | 2e76e253e4f43f2facba539c4644c829 |
|
BLAKE2b-256 | d25805c2bfbf3bb9b3013204adc31486b3ca8d22996afa9fe8455eacf87b287e |