Conditions | 4 |
Total Lines | 14 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 1 |
1 | import re |
||
22 | def release(): |
||
23 | v = bump_version() |
||
24 | ans = input("version bumped, commiting?(Y/n)") |
||
25 | if ans in ("", "y", "yes"): |
||
26 | os.system("git add setup.py") |
||
27 | os.system("git commit -m 'new release'") |
||
28 | os.system("git tag {}".format(v)) |
||
29 | ans = input("change committed, push to server?(Y/n)") |
||
30 | if ans in ("", "y", "yes"): |
||
31 | os.system("git push") |
||
32 | os.system("git push --tags") |
||
33 | ans = input("upload to pip?(Y/n)") |
||
34 | if ans in ("", "y", "yes"): |
||
35 | os.system("python setup.py sdist upload") |
||
36 | |||
40 |