From e862738056edec4afd8aced136dbc536ca5d81e6 Mon Sep 17 00:00:00 2001 From: Oleg Broytman Date: Fri, 1 Feb 2019 23:22:17 +0300 Subject: [PATCH] Add release script --- project_template/devscripts/release | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100755 project_template/devscripts/release 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 -- 2.39.5