diff options
| author | Eugene Triguba <hello@eugenetriguba.com> | 2026-03-19 22:44:28 -0400 |
|---|---|---|
| committer | Eugene Triguba <hello@eugenetriguba.com> | 2026-03-19 22:49:42 -0400 |
| commit | def73b770e18b40b59ee2f709c18c442641c873c (patch) | |
| tree | 7de982930ce955fbd283ef33d0a671d33f1761aa /.hooks/make_release_commit.py | |
| parent | Update changelog (diff) | |
| download | poetry-plugin-taskipy2-def73b770e18b40b59ee2f709c18c442641c873c.zip | |
Setup poetry-plugin-taskipy2 fork from original plugin
Diffstat (limited to '.hooks/make_release_commit.py')
| -rw-r--r-- | .hooks/make_release_commit.py | 23 |
1 files changed, 0 insertions, 23 deletions
diff --git a/.hooks/make_release_commit.py b/.hooks/make_release_commit.py deleted file mode 100644 index e7d2829..0000000 --- a/.hooks/make_release_commit.py +++ /dev/null @@ -1,23 +0,0 @@ -#!/usr/bin/env python3 -import tomli -import subprocess -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"] - - p = subprocess.Popen( - f'git add . && git commit --allow-empty -m "Release version {version}" && git tag -a "{version}" -m "Release version {version}" && git push && git push --tags', - shell=True, - cwd=cwd, - ) - - p.wait() - - -if __name__ == "__main__": - create_release_commit() |