Skip to content

Commit

Permalink
update release script
Browse files Browse the repository at this point in the history
  • Loading branch information
0xNineteen committed Nov 10, 2022
1 parent 26cc988 commit 858e218
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion new_release.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,12 @@
import re
from subprocess import Popen

with open('pyproject.toml', 'r') as f:
data = f.read()
result = re.search("\nversion = \"(.*)\"", data)
old_version = result.group(1)
print(f'current version: {old_version}')

Popen(
f'bumpversion patch --allow-dirty'.split(' '),
).wait()
Expand All @@ -17,4 +23,4 @@
f'git push origin {version}'.split(' '),
).wait()

print('done')
print(f'done - updated to version {version}')

0 comments on commit 858e218

Please sign in to comment.