def run(self):
"""runner"""
# TODO :
# $ gitchangelog >CHANGELOG.rst
# change version in code and changelog
subprocess.check_call(
"git commit CHANGELOG.rst rosimport/_version.py -m 'v{0}'".format(__version__), shell=True)
subprocess.check_call("git push", shell=True)
print("You should verify travis checks, and you can publish this release with :")
print(" python setup.py publish")
sys.exit()
# Clean way to add a custom "python setup.py <command>"
# Ref setup.py command extension : https://blog.niteoweb.com/setuptools-run-custom-code-in-setup-py/
评论列表
文章目录