Skip to content

Releases: dolfinus/setuptools-git-versioning

v3.0.1 (2026-01-16)

16 Jan 08:52
3dc2692

Choose a tag to compare

Bug Fixes

Fix OSErrorr exception raised if using setuptools-git-versioning in system without git installed (#126).
Thanks to @jeffawang.

v3.0.0 (2026-01-16)

15 Jan 21:04
632e998

Choose a tag to compare

Breaking

  • Make most of args in version_from_git keyword-only.
  • Change return type of version_from_git and infer_version from str to packaging.version.Version.
  • Timestamps in version templates are now timezone-aware.

Refactoring

  • Split setuptools_git_versioning.py into smaller set of files.
  • Do not use Popen(shell=True) anymore.
  • Switch from setup.py to pyproject.toml.
  • Switch from pip to uv, use lock files.
  • Switch from black + isort + pyupgrade to ruff format.
  • Switch from flake8 to ruff.
  • Switch from pre-commit to prek.

Bug Fixes

  • Fix calling get_version(root=...) in combination with version-file strategy -
    relative file version was resolved against os.cwd, not explicitly passed root.
  • Fix epoch versions like 0!2025.12.3 were wrongly converted to 0.2025.12.3 (#122).
  • Using version_file-based schema with shallow git clone lead to version numbers like 1.2.3.postNone, now it is 1.2.3.post0 (#104).

v2.1.0

10 Jan 08:47
b6c72e4

Choose a tag to compare

general

  • [feature] Test Python 3.13 compatibility

dependency

  • [bugfix] Replace outdated toml package with modern tomli. Thanks to @graingert

    References: #108

v2.0.0

08 Apr 20:15

Choose a tag to compare

core

  • [breaking] Drop get_branch_tags function which was deprecated since 1.8.0.

  • [breaking] version_file option now have precedence over any tags in the current branch.

    References: #94, #97

config

  • [breaking] Drop version_config keyword from setup.py, which was deprecated since 1.8.0.

  • [breaking] Does not allow passing setuptools_git_versioning=False and setuptools_git_versioning=True to config.
    Always use setuptools_git_versioning={"enabled": True}.

v1.13.6

30 Jan 09:14
bd6fc19

Choose a tag to compare

general

  • [feature] Test Python 3.12 compatibility

  • [feature] Remove useless warning if tag_filter, tag_formatter or branch_formatter is a regexp instead of function reference.

    References: #93

v1.13.5

08 Aug 11:43
3cd11bc

Choose a tag to compare

dependency

  • [bugfix] Import setuptools before importing distutils. Thanks to @tjni

    References: #84

v1.13.4

30 Jul 22:24

Choose a tag to compare

general

  • [feature] Test PyPy 3.10 support

docs

  • [feature] Update documentation to mention shallow clone issues.

    References: #83

ci

  • [feature] Push release using Trusted publishers feature of PyPI.org

v1.13.3

14 Mar 11:38
ecaddc4

Choose a tag to compare

docs

  • [bugfix] Move zip-safe option to tool.setuptools section of pyproject.toml.

    Thanks to @cclecle

    References: #78

v1.13.2

26 Feb 20:06

Choose a tag to compare

docs

  • [feature] Recommend users to use file-based schema instead of tag-based due some cases.

    References: #77, #75

  • [feature] Add small example of .gitignore file to common issues section. Thanks to @aram-eskandari

    References: #17

  • [feature] Improve examples of fetching package version in runtime.

    References: #55

v1.13.1

13 Nov 14:09

Choose a tag to compare

general

  • [general] [feature] Build and publish sdist package again

    References: #49, #72

  • [general] [bugfix] Allow to install package from .tar.gz without --no-build-isolation flag

    References: #49, #72

dependency

  • [dependency] [bugfix] Get rid of deprecated package dependency

    References: #72

ci

  • [ci] [feature] Publish development releases to Test PyPI

  • [ci] [feature] Use pypa/gh-action-pypi-publish Github action to publish releases to PyPI

  • [ci] [bugfix] Remove local part of version because it is not allowed in PyPI