3.0.x¶
3.0.0 (2026-01-16)¶
Breaking¶
Make most of args in
version_from_gitkeyword-only.Change return type of
version_from_gitandinfer_versionfromstrtopackaging.version.Version.Timestamps in version templates are now timezone-aware.
Refactoring¶
Split
setuptools_git_versioning.pyinto smaller set of files.Do not use
Popen(shell=True)anymore.Switch from
setup.pytopyproject.toml.Switch from
piptouv, use lock files.Switch from
black+isort+pyupgradetoruff format.Switch from
flake8toruff.Switch from
pre-committoprek.
Bug Fixes¶
Fix calling
get_version(root=...)in combination with version-file strategy - relative file version was resolved againstos.cwd, not explicitly passedroot.Fix epoch versions like
0!2025.12.3were wrongly converted to0.2025.12.3(#122).Using version_file-based schema with shallow git clone lead to version numbers like
1.2.3.postNone, now it is1.2.3.post0(#104).
3.0.1 (2026-01-16)¶
Bug Fixes¶
Fix OSErrorr exception raised if using setuptools-git-versioning in system without git installed (#126).
Thanks to @jeffawang.