aboutsummaryrefslogtreecommitdiffstats
path: root/.hooks/make_release_commit.py
diff options
context:
space:
mode:
authorEugene Triguba <hello@eugenetriguba.com>2026-03-19 21:47:16 -0400
committerEugene Triguba <hello@eugenetriguba.com>2026-03-19 21:49:28 -0400
commitd7282fbe897dd7910881ca551f679343b8049b19 (patch)
tree55cdb0fc248fd1c20ba58b07d9bb7b8edc343bef /.hooks/make_release_commit.py
parentReplace poetry with uv (diff)
downloadtaskipy2-d7282fbe897dd7910881ca551f679343b8049b19.zip
Remove custom release commit script
Diffstat (limited to '.hooks/make_release_commit.py')
-rw-r--r--.hooks/make_release_commit.py39
1 files changed, 0 insertions, 39 deletions
diff --git a/.hooks/make_release_commit.py b/.hooks/make_release_commit.py
deleted file mode 100644
index 0c4b3a7..0000000
--- a/.hooks/make_release_commit.py
+++ /dev/null
@@ -1,39 +0,0 @@
-#!/usr/bin/env python3
-import tomli
-import secrets
-import subprocess
-import webbrowser
-from pathlib import Path
-
-
-def create_release_commit():
- cwd = Path.cwd()
- with open(cwd / "pyproject.toml", "rb") as file:
- pyproject = tomli.load(file)
- version = pyproject["tool"]["poetry"]["version"]
- branch = f"release-{version}-{secrets.token_hex(12)}"
-
- p = subprocess.Popen(
- " && ".join(
- [
- f"git checkout -b {branch}",
- "git add .",
- f'git commit -m "Release version {version}"',
- f'git tag -a "{version}" -m "Release version {version}"',
- f"git push --set-upstream origin {branch}",
- f"git push --tags",
- ]
- ),
- shell=True,
- cwd=cwd,
- )
-
- p.wait()
-
- webbrowser.open(
- f"https://github.com/taskipy/taskipy/compare/{branch}?quick_pull=1&title=Release%20Version%20{version}&body=%3E%20Please%20describe%20your%20release%20here"
- )
-
-
-if __name__ == "__main__":
- create_release_commit()