()
| 20 | |
| 21 | |
| 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 {0}".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("rm -rf dist/*") |
| 36 | os.system("python setup.py sdist") |
| 37 | os.system("twine upload dist/*") |
| 38 | |
| 39 | |
| 40 | if __name__ == "__main__": |
no test coverage detected