Skip to content

Commit

Permalink
Fix release tooling not working
Browse files Browse the repository at this point in the history
The generated tag was wrong and did not match the GitHub workflow or previous pypi releases.
  • Loading branch information
kmichel-aiven committed Jul 23, 2024
1 parent 74e5fe5 commit 5ffe044
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion make_release.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
1 change: 1 addition & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,7 @@ platforms = [

[tool.hatch.version]
source = "vcs"
tag-pattern = "^releases/(?P<version>\\d+.\\d+.\\d+)$"

[tool.hatch.build.hooks.vcs]
version-file = "rohmu/version.py"

0 comments on commit 5ffe044

Please sign in to comment.