From: Oleg Broytman Date: Fri, 1 Feb 2019 20:22:17 +0000 (+0300) Subject: Add release script X-Git-Url: https://git.phdru.name/?a=commitdiff_plain;h=e862738056edec4afd8aced136dbc536ca5d81e6;p=cookiecutter.git Add release script --- diff --git a/project_template/devscripts/release b/project_template/devscripts/release new file mode 100755 index 0000000..3fe6abe --- /dev/null +++ b/project_template/devscripts/release @@ -0,0 +1,16 @@ +#! /bin/sh + +cd "`dirname \"$0\"`"/.. && +umask 022 && +chmod -R a+rX . && +set-commit-date.py && + +python setup.py build_py && +python setup.py build --executable '/usr/bin/env python' && +python setup.py sdist && + +find build -name '*.py[co]' -delete && +python setup.py bdist_wheel --universal && + +twine upload dist/* && +exec rm -rf build dist *.egg-info