MCPcopy Create free account
hub / github.com/FreeOpcUa/python-opcua / release

Function release

release.py:22–37  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

20
21
22def 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
40if __name__ == "__main__":

Callers 1

release.pyFile · 0.85

Calls 1

bump_versionFunction · 0.85

Tested by

no test coverage detected