Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Python 3.3 support is ended. EOL is coming, test was run rarely. * Move data from setup.cfg to __init__.py and setup.py
- Loading branch information
1 parent
18905a2
commit 6bba7e9
Showing
7 changed files
with
131 additions
and
37 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
#!/bin/bash | ||
PYTHON_VERSIONS="cp27-cp27mu cp27-cp27m cp34-cp34m cp35-cp35m cp36-cp36m" | ||
|
||
# Avoid creation of __pycache__/*.py[c|o] | ||
export PYTHONDONTWRITEBYTECODE=1 | ||
|
||
package_name="$1" | ||
if [ -z "$package_name" ] | ||
then | ||
&>2 echo "Please pass package name as a first argument of this script ($0)" | ||
exit 1 | ||
fi | ||
|
||
arch=`uname -m` | ||
|
||
echo | ||
echo | ||
echo "Compile wheels" | ||
for PYTHON in ${PYTHON_VERSIONS}; do | ||
/opt/python/${PYTHON}/bin/pip install -r /io/build_requirements.txt | ||
/opt/python/${PYTHON}/bin/pip wheel /io/ -w /io/dist/ | ||
done | ||
|
||
echo | ||
echo | ||
echo "Bundle external shared libraries into the wheels" | ||
for whl in /io/dist/${package_name}*${arch}.whl; do | ||
echo "Repairing $whl..." | ||
auditwheel repair "$whl" -w /io/dist/ | ||
done | ||
|
||
echo "Cleanup OS specific wheels" | ||
rm -fv /io/dist/*-linux_*.whl | ||
|
||
echo | ||
echo | ||
echo "Install packages and test" | ||
echo "dist directory:" | ||
ls /io/dist | ||
|
||
for PYTHON in ${PYTHON_VERSIONS}; do | ||
echo | ||
echo -n "Test $PYTHON: " | ||
/opt/python/${PYTHON}/bin/python -c "import platform;print(platform.platform())" | ||
/opt/python/${PYTHON}/bin/pip install "$package_name" --no-index -f file:///io/dist | ||
/opt/python/${PYTHON}/bin/pip install pytest | ||
/opt/python/${PYTHON}/bin/py.test -vv /io/test | ||
done |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
#!/bin/bash | ||
package_name="$1" | ||
if [ -z "$package_name" ] | ||
then | ||
&>2 echo "Please pass package name as a first argument of this script ($0)" | ||
exit 1 | ||
fi | ||
|
||
manylinux1_image_prefix="quay.io/pypa/manylinux1_" | ||
dock_ext_args="" | ||
declare -A docker_pull_pids=() # This syntax requires at least bash v4 | ||
|
||
for arch in x86_64 i686 | ||
do | ||
docker pull "${manylinux1_image_prefix}${arch}" & | ||
docker_pull_pids[$arch]=$! | ||
done | ||
|
||
for arch in x86_64 i686 | ||
do | ||
echo | ||
echo | ||
arch_pull_pid=${docker_pull_pids[$arch]} | ||
echo waiting for docker pull pid $arch_pull_pid to complete downloading container for $arch arch... | ||
wait $arch_pull_pid # await for docker image for current arch to be pulled from hub | ||
[ $arch == "i686" ] && dock_ext_args="linux32" | ||
|
||
echo Building wheel for $arch arch | ||
docker run --rm -v `pwd`:/io "${manylinux1_image_prefix}${arch}" $dock_ext_args /io/tools/build-wheels.sh "$package_name" | ||
|
||
dock_ext_args="" # Reset docker args, just in case | ||
done |