aboutsummaryrefslogtreecommitdiffstats
path: root/hooks/make_release_commit.py
diff options
context:
space:
mode:
authorRoy Sommer <roy@sommer.co.il>2020-01-23 21:22:28 +0200
committerRoy Sommer <roy@sommer.co.il>2020-01-23 21:22:28 +0200
commit3b5df3afcdf2872d201e7bae6635057b35638299 (patch)
tree1c7bf80bd54436883326ba9612fd83689dd8ff7b /hooks/make_release_commit.py
parentRelease version 1.1.2 (diff)
downloadtaskipy2-3b5df3afcdf2872d201e7bae6635057b35638299.zip
renamed hooks dir
Diffstat (limited to 'hooks/make_release_commit.py')
-rw-r--r--hooks/make_release_commit.py19
1 files changed, 0 insertions, 19 deletions
diff --git a/hooks/make_release_commit.py b/hooks/make_release_commit.py
deleted file mode 100644
index 34caea6..0000000
--- a/hooks/make_release_commit.py
+++ /dev/null
@@ -1,19 +0,0 @@
-#!/usr/bin/env python3
-import toml
-import subprocess
-import os
-from os import path
-
-def create_release_commit():
- pyproject = toml.load(path.join(os.curdir, 'pyproject.toml'))
- version = pyproject['tool']['poetry']['version']
-
- p = subprocess.Popen(f'git add . && git commit -m "Release version {version}" && git tag -a "{version}" -m "Release version {version}" && git push && git push --tags',
- shell=True,
- cwd=os.curdir)
-
- p.wait()
-
-if __name__ == '__main__':
- create_release_commit()
-