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.1b2.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9f29d6bab349af4efcb5cf18a05e01eae19f67b3c46905d9920335a774eb3f08 |
|
MD5 | 48ea22a677ab279ffafaea6724b2e81f |
|
BLAKE2b-256 | 4ae2f3435d4a622f0f3791623283386783113874b366aa4afd8a009db9dbfb9f |
Hashes for proman_versioning-0.1.1b2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 215d99aee19f4417c3f3cb238940eb8a35f076f14a0ec8670c17c3ea833280d3 |
|
MD5 | 9e3def0f5e5578823b0e353123bb7b2a |
|
BLAKE2b-256 | 03dac5bedb87105059c49f6fc833e790801cdf6c0b29914af6dc514b1cc45850 |