Description
versioningit is yet another Python packaging plugin for automatically
determining your package’s version based on your version control repository’s
tags. Unlike others, it allows easy customization of the version format and
even lets you easily override the separate functions used for version
extraction & calculation.
Features:
• Works with both setuptools and Hatch
• Installed & configured through PEP 518’s pyproject.toml
• Supports Git, modern Git archives, and Mercurial
• Formatting of the final version uses format template strings, with fields for
basic VCS information and separate template strings for distanced vs. dirty
vs. distanced-and-dirty repository states
• Can optionally write the final version to a file for loading at runtime
• Provides custom hooks for inserting the final version and other details into
a source file at build time
• The individual methods for VCS querying, tag-to-version calculation, version
bumping, version formatting, and writing the version to a file can all be
customized using either functions defined alongside one’s project code or via
publicly-distributed entry points
• Can alternatively be used as a library for use in setup.py or the like, in
case you don’t want to or can’t configure it via pyproject.toml
• The only thing it does is calculate your version and optionally write it to a
file; there’s no overriding of your sdist contents based on what is in your
Git repository, especially not without a way to turn it off, because that
would just be rude.
RPMs
2 files, 2 archessrc
noarch
Logs
noarch
Changelog
* Fri Aug 15 2025 Python Maint <python-maint@redhat.com> - 3.3.0-3 - Rebuilt for Python 3.14.0rc2 bytecode * Fri Jul 25 2025 Fedora Release Engineering <releng@fedoraproject.org> - 3.3.0-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_43_Mass_Rebuild * Sat Jun 28 2025 Benjamin A. Beasley <code@musicinmybrain.net> - 3.3.0-1 - Update to 3.3.0 (close RHBZ#2375298) * Sat Jun 28 2025 Benjamin A. Beasley <code@musicinmybrain.net> - 3.2.0-3 - Re-enable Pydantic tests * Wed Jun 11 2025 Benjamin A. Beasley <code@musicinmybrain.net> - 3.2.0-2 - Disable tests with Pydantic until it supports Python 3.14 - Close RHBZ#2372192 * Wed Jun 11 2025 Benjamin A. Beasley <code@musicinmybrain.net> - 3.2.0-1 - Update to 3.2.0 (close RHBZ#2371636) * Mon May 12 2025 Benjamin A. Beasley <code@musicinmybrain.net> - 3.1.3-1 - Update to 3.1.3 (close RHBZ#2365654) * Sat Jan 18 2025 Fedora Release Engineering <releng@fedoraproject.org> - 3.1.2-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_42_Mass_Rebuild * Mon Jul 29 2024 Benjamin A. Beasley <code@musicinmybrain.net> - 3.1.2-4 - F41 mercurial workarounds are no longer needed * Mon Jul 22 2024 Benjamin A. Beasley <code@musicinmybrain.net> - 3.1.2-3 - Apply a better workaround for F41 mercurial issues * Mon Jul 22 2024 Benjamin A. Beasley <code@musicinmybrain.net> - 3.1.2-2 - Temporarily work around broken mercurial in F41 with Python 3.13.0b4 * Mon Jul 22 2024 Benjamin A. Beasley <code@musicinmybrain.net> - 3.1.2-1 - Update to 3.1.2 (close RHBZ#2299028) * Fri Jul 19 2024 Fedora Release Engineering <releng@fedoraproject.org> - 3.1.1-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild * Sat Jun 29 2024 Sandro <devel@penguinpee.nl> - 3.1.1-2 - Rebuild for Python 3.13 * Thu May 09 2024 Benjamin A. Beasley <code@musicinmybrain.net> - 3.1.1-1 - Update to 3.1.1 (close RHBZ#2277741) * Tue Mar 19 2024 Benjamin A. Beasley <code@musicinmybrain.net> - 3.1.0-1 - Update to 3.1.0 (close RHBZ#2269885) * Fri Jan 26 2024 Fedora Release Engineering <releng@fedoraproject.org> - 3.0.0-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild * Mon Jan 22 2024 Fedora Release Engineering <releng@fedoraproject.org> - 3.0.0-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild * Fri Jan 05 2024 Benjamin A. Beasley <code@musicinmybrain.net> - 3.0.0-2 - Assert that a license file is present in the .dist-info directory * Thu Dec 14 2023 Benjamin A. Beasley <code@musicinmybrain.net> - 3.0.0-1 - Update to 3.0.0 (close RHBZ#2254458) * Tue Nov 21 2023 Benjamin A. Beasley <code@musicinmybrain.net> - 2.3.0-1 - Update to 2.3.0 (close RHBZ#2240288) * Sat Sep 30 2023 Benjamin A. Beasley <code@musicinmybrain.net> - 2.2.1-1 - Update to 2.2.1 (close RHBZ#2240288)