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.1a13.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3161fd41458fa69db49b8e74ea056196007a7c71083772816045705571d23153 |
|
MD5 | 2e71b36b9e180b750078e0c5eab27b71 |
|
BLAKE2b-256 | eb07889e6d2003fe363eb1b3c61ea7d30da1deb40081a8af850dd82bb06f734a |
Hashes for proman_versioning-0.1.1a13-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | fc4e614d8f4cfaade27a6a1cda7883d2f036544311bc8d922d3a2b785c567f49 |
|
MD5 | 90b69e07dbb31e3eb694d37a19410866 |
|
BLAKE2b-256 | efaacd2d939e61250b0871879b85e98cbc61b0ec929de30598fac6b1da662202 |