diff options
| author | Eugene Triguba <hello@eugenetriguba.com> | 2026-03-19 21:47:16 -0400 |
|---|---|---|
| committer | Eugene Triguba <hello@eugenetriguba.com> | 2026-03-19 21:49:28 -0400 |
| commit | d7282fbe897dd7910881ca551f679343b8049b19 (patch) | |
| tree | 55cdb0fc248fd1c20ba58b07d9bb7b8edc343bef | |
| parent | Replace poetry with uv (diff) | |
| download | taskipy2-d7282fbe897dd7910881ca551f679343b8049b19.zip | |
Remove custom release commit script
| -rw-r--r-- | .hooks/make_release_commit.py | 39 | ||||
| -rw-r--r-- | pyproject.toml | 14 |
2 files changed, 0 insertions, 53 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() diff --git a/pyproject.toml b/pyproject.toml index a608e7e..da40df3 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -43,8 +43,6 @@ dev = [ [tool.taskipy.tasks] post_test = "./task lint" -pre_publish_patch = "./task test" -pre_publish_minor = "./task test" lint_pylint = "pylint tests taskipy" lint_mypy = "mypy tests taskipy" @@ -60,18 +58,6 @@ help = "this is a command that is run by our Windows CI on Github" cmd = "./task lint_pylint && ./task lint_mypy" help = "lint project with pylint for style and mypy for typings" -[tool.taskipy.tasks.make_release_commit] -cmd = "python ./.hooks/make_release_commit.py" -help = "creates a tagged commit for the release. do not use directly" - -[tool.taskipy.tasks.publish_patch] -cmd = "poetry version patch && ./task make_release_commit" -help = "publishes a patch version, that has only fixes but no new features (x.x.PATCH)" - -[tool.taskipy.tasks.publish_minor] -cmd = "poetry version minor && ./task make_release_commit" -help = "publishes a minor version, which has new features (x.MINOR.x)" - [build-system] requires = ["hatchling"] build-backend = "hatchling.build" |