File tree Expand file tree Collapse file tree 1 file changed +10
-2
lines changed Expand file tree Collapse file tree 1 file changed +10
-2
lines changed Original file line number Diff line number Diff line change 11#! /bin/bash
2+ set -e
23PYTHON_VERSIONS=" cp36-cp36m cp37-cp37m"
34
45# Avoid creation of __pycache__/*.py[c|o]
56export PYTHONDONTWRITEBYTECODE=1
67
78package_name=" $1 "
8- if [ -z " $package_name " ]
9+ if [[ -z " $package_name " ] ]
910then
1011 & > 2 echo " Please pass package name as a first argument of this script ($0 )"
1112 exit 1
@@ -53,13 +54,20 @@ for PYTHON in ${PYTHON_VERSIONS}; do
5354 /opt/python/${PYTHON} /bin/python -c " import platform;print(platform.platform())"
5455 /opt/python/${PYTHON} /bin/pip install " $package_name " --no-index -f file:///io/dist
5556 /opt/python/${PYTHON} /bin/pip install asynctest pytest pytest-asyncio pytest-mock
56- /opt/python/${PYTHON} /bin/py.test -vv /io/test
57+ /opt/python/${PYTHON} /bin/py.test -vvv /io/test
5758done
5859
5960find /io/dist/ -type f -not -name " *$package_name *" -delete
6061rm -rf /io/.eggs
6162rm -rf /io/build
6263rm -rf /io/* .egg-info
6364rm -rf /io/.pytest_cache
65+ rm -rf /io/.tox
66+ rm -f /io/.coverage
67+ # Clean caches and cythonized
68+ find -name * .py[co] -delete
69+ find -name * .c -delete
70+ # Reset permissions
6471chmod -v a+rwx /io/dist
6572chmod -v a+rw /io/dist/*
73+ chmod -vR a+rw /io/" $package_name "
You can’t perform that action at this time.
0 commit comments