From 2d9a21d3c28bccb02d7e181f873962f8b3bf9be8 Mon Sep 17 00:00:00 2001 From: Will Gordon Date: Tue, 18 Aug 2026 16:12:36 -0400 Subject: [PATCH] fix(version): drops only-version scheme to avoid TestPyPI collisions publish.yaml runs publish-testpypi unconditionally on every push to main, but version_scheme = "only-version" pins the version to the literal last tag with no per-commit distinction. Every merge to main between tags built the identical version string, so TestPyPI rejected the upload as a duplicate file. Dropping the override falls back to setuptools_scm's default guess-next-dev scheme, which appends a .devN distance suffix between tags while leaving exact-tag (release) versions unchanged. --- pyproject.toml | 1 - 1 file changed, 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index f0fa517..8d60e7e 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -32,7 +32,6 @@ packages = ["src/jinja2_git_dir"] source = "vcs" [tool.hatch.version.raw-options] -version_scheme = "only-version" local_scheme = "no-local-version" [build-system]