diff --git a/make_release.py b/make_release.py index a2924d00..e4bf077a 100755 --- a/make_release.py +++ b/make_release.py @@ -11,7 +11,7 @@ def make_release(version: str) -> None: raise ValueError(f"Unexpected version: {version!r}, should be N.N.N") project_directory = Path(__file__).parent subprocess.run( - ["git", "-C", str(project_directory), "tag", "-s", "-a", f"{version}", "-m", f"Version {version}"], + ["git", "-C", str(project_directory), "tag", "-s", "-a", f"releases/{version}", "-m", f"Version {version}"], check=True, ) subprocess.run(["git", "-C", str(project_directory), "log", "-n", "1", "-p"], check=True) diff --git a/pyproject.toml b/pyproject.toml index 285a5152..1c1cd689 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -125,6 +125,7 @@ platforms = [ [tool.hatch.version] source = "vcs" +tag-pattern = "^releases/(?P\\d+.\\d+.\\d+)$" [tool.hatch.build.hooks.vcs] version-file = "rohmu/version.py"