From 8215621417d6721fa78dbaaa426c7abeb80c015d Mon Sep 17 00:00:00 2001 From: Oleg Broytman Date: Wed, 26 Apr 2017 20:09:19 +0300 Subject: [PATCH] Add release scripts --- prerelease-tag | 4 ++++ release | 28 ++++++++++++++++++++++++++++ 2 files changed, 32 insertions(+) create mode 100755 prerelease-tag create mode 100755 release diff --git a/prerelease-tag b/prerelease-tag new file mode 100755 index 0000000..19531f2 --- /dev/null +++ b/prerelease-tag @@ -0,0 +1,4 @@ +#! /bin/sh + +tag="`python setup.py --version`" && +exec git tag --message="Release $tag" --sign $tag diff --git a/release b/release new file mode 100755 index 0000000..417975c --- /dev/null +++ b/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 && +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 && + 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/m_lib-"$version".tar.gz && +twine upload --sign dist/* && + +exec rm -rf build dist m_lib.egg-info -- 2.39.5