1 #! /bin/sh 2 3 cd "`dirname \"$0\"`"/.. && 4 umask 022 && 5 chmod -R a+rX . && 6 7 set-commit-date.py && 8 devscripts/build-docs && 9 10 if [ ! -d build ]; then mkdir build; fi && 11 python setup.py sdist && 12 13 for py in 2.7 3.4 3.5 3.6 3.7 3.8 3.9; do 14 find build -name '*.py[co]' -delete && 15 python$py setup.py build_ext && 16 python$py setup.py build --executable '/usr/bin/env python' && 17 python$py -m compileall build && 18 python$py -O -m compileall build && 19 python$py setup.py bdist_wheel && 20 cd dist && 21 v="`echo $py | sed 's/\.//'`" && 22 for f in Cheetah3-*-cp$v-*-linux_*.whl; do 23 if [ $py = 2.7 ]; then 24 python3.6 -m auditwheel repair -w . $f 25 else 26 python$py -m auditwheel repair -w . $f 27 fi && 28 rm $f 29 done && 30 cd .. 31 done && 32 33 twine upload --skip-existing dist/* && 34 exec rm -rf build dist docs/html Cheetah3.egg-info