Add release script
authorOleg Broytman <phd@phdru.name>
Fri, 1 Feb 2019 20:22:17 +0000 (23:22 +0300)
committerOleg Broytman <phd@phdru.name>
Fri, 1 Feb 2019 20:22:17 +0000 (23:22 +0300)
project_template/devscripts/release [new file with mode: 0755]

diff --git a/project_template/devscripts/release b/project_template/devscripts/release
new file mode 100755 (executable)
index 0000000..3fe6abe
--- /dev/null
@@ -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