X-Git-Url: https://git.phdru.name/?a=blobdiff_plain;f=devscripts%2Frelease;fp=devscripts%2Frelease;h=92ce3141110ecc6ab7e00c06b41863df87b10267;hb=25b8b1119ca825078dacc26df8165da287d78399;hp=0000000000000000000000000000000000000000;hpb=a66129328139b81f853bc9736635ab5a037310e8;p=m_lib.defenc.git diff --git a/devscripts/release b/devscripts/release new file mode 100755 index 0000000..92ce314 --- /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 && +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.defenc-"$version".tar.gz && +twine upload --sign dist/* && + +exec rm -rf build dist m_lib.defenc.egg-info