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 versions
Configuration can be performed with either the .versioning
or pyproject.toml
files.
Global configuration settings:
Specific types of releases can be disabled by setting the respective release to false.
Disable development releases:
enable_devreleases = false
Disable pre-releases:
enable_prereleases = false
Disable post-releases:
enable_postreleases = false
File specific settings:
Use different version compatibiliy type:
compat = "semver"
Update only the release version for a configuration:
release_only = true
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]
disable_devreleases = true
[[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.4.4a0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0eb27d0cf7fe1e1725acecda9a263eb20a2f5c2a4c3b3276df6a0869fa4e4227 |
|
MD5 | f5c309732662fa0ec9d4add3bd2954b5 |
|
BLAKE2b-256 | 1e2d83034686b45bf8f6d7909a8d626838061240f8be9d4b57bfa54be05057e6 |
Hashes for proman_versioning-0.4.4a0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9b6f029307333a294b5381de91537117c24e43a5d963801c0b5b348b2347e1df |
|
MD5 | 4e95fb35f4d428bcad2ff69fd7820c7c |
|
BLAKE2b-256 | 0094c4172b60459fd0654f8ba947ea5b367e25b841d66dd3ab93cc81eabecd25 |