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.1a14.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 02ee0df49fd6d7a5674064487c7d95052cb7dbc8759462eaa387a5091c7b6998 |
|
MD5 | 7b8fcf8b5db26dd1218cc453ded30c81 |
|
BLAKE2b-256 | f59d393f13aafa3332b19a170a23f71d24633e652898fb5f755bacb178c708b4 |
Hashes for proman_versioning-0.1.1a14-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c674f7077014f921bcde214e583052e7487405ead82f8a53cbfdab5e7106bb2f |
|
MD5 | 5aa5b04e1cb5f2e1df4704ca315c5365 |
|
BLAKE2b-256 | 715e8ebb6e3c18bfe8979f422000bcb74285f0eda72bbd7f96bbfbd8f6dfe5c0 |