commitizen-galaxy-provider
A commitizen version provider for Ansible Collections. It reads and writes the version field in your collection's galaxy.yml, so cz bump can manage your collection version alongside your changelog and git tags.
Installation
Install alongside commitizen, e.g. with uv:
uv add commitizen commitizen-galaxy-provider
or with pip:
pip install commitizen commitizen-galaxy-provider
Usage
Set galaxy as the version_provider in your commitizen configuration, typically in pyproject.toml:
[tool.commitizen]
version_provider = "galaxy"
By default, the provider looks for galaxy.yml in the current directory. Given:
namespace: my_namespace
name: my_collection
version: 1.0.0
readme: README.md
authors:
- Someone <someone@example.com>
running cz bump updates the version field in place, preserving every other field in the file.
How it works
GalaxyProvider extends commitizen's FileProvider and targets galaxy.yml. It parses the file as YAML, exposes get_version/set_version to read and persist the version key, and implements the get/set document helpers commitizen uses internally, without disturbing the rest of the collection metadata.
Development
uv sync
uv run pytest
Release files for commitizen-galaxy-provider 0.2.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| commitizen_galaxy_provider-0.2.0.tar.gz | 17.0 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| commitizen_galaxy_provider-0.2.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 33.1 kB
Release files / commitizen_galaxy_provider-0.2.0.tar.gz
| Download URL | commitizen_galaxy_provider-0.2.0.tar.gz |
|---|---|
| Size | 17.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
fa161280a48d583b07e379c411b02f12ada24bdea11a2872497fa76376797659
|
|
BLAKE2b-256 checksum How to use checksums |
b3c5219cd73b0550a3b1da928585d14c6ea7747c02ff6388069ac126e8d0e1a4
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Sep 23, 2026.
Transparency logRelease files / commitizen_galaxy_provider-0.2.0-py3-none-any.whl
| Download URL | commitizen_galaxy_provider-0.2.0-py3-none-any.whl |
|---|---|
| Size | 16.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
996fcafadc8278b54c5e080061d182797a83714780f2448791332ee1000222f3
|
|
BLAKE2b-256 checksum How to use checksums |
83f6653440c8cd7947a1500c4131b2836597154c35afd5641d178710b4050dd7
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Sep 23, 2026.
Transparency log