From 1f2da2369fe3a90d73ac0355aa2314e920d9d76c Mon Sep 17 00:00:00 2001 From: Oleg Broytman Date: Sun, 30 Apr 2017 22:57:14 +0300 Subject: [PATCH] Add release script --- devscripts/release | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100755 devscripts/release diff --git a/devscripts/release b/devscripts/release new file mode 100755 index 0000000..32bcca1 --- /dev/null +++ b/devscripts/release @@ -0,0 +1,28 @@ +#! /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 && + +for py in 2.6 2.7 3.4 3.5 3.6; do + find build -name '*.py[co]' -delete && + python$py setup.py build_py && + python$py setup.py build --executable '/usr/bin/env python' && + python$py -m compileall build && + python$py -O -m compileall build && + python$py setup.py bdist_egg || exit 1 +done + +find build -name '*.py[co]' -delete && +python setup.py bdist_wheel --universal && + +version=`python setup.py --version` +twine register dist/sqlconvert-"$version".tar.gz && +twine upload --sign dist/* && + +exec rm -rf build dist sqlconvert.egg-info -- 2.39.2