Skip to content

Commit

Permalink
Update wheel building instructions
Browse files Browse the repository at this point in the history
  • Loading branch information
asvetlov committed Jul 14, 2016
1 parent 895c238 commit fb37ccb
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
2 changes: 1 addition & 1 deletion aiohttp/__init__.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# This relies on each of the submodules having an __all__ variable.

__version__ = '0.22.0b4'
__version__ = '0.22.0b5'

import multidict # noqa

Expand Down
4 changes: 3 additions & 1 deletion build-wheels.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,16 @@ for PYTHON in ${PYTHON_VERSIONS}; do
done

echo "Bundle external shared libraries into the wheels"
for whl in /io/dist/*.whl; do
for whl in /io/dist/aiohttp*.whl; do
auditwheel repair $whl -w /io/dist/
done

echo "Install packages and test"
for PYTHON in ${PYTHON_VERSIONS}; do
/opt/python/${PYTHON}/bin/pip install aiohttp --no-index -f file:///io/dist
rm -rf /io/tests/__pycache__
rm -rf /io/tests/test_py35/__pycache__
/opt/python/${PYTHON}/bin/py.test /io/tests
rm -rf /io/tests/__pycache__
rm -rf /io/tests/test_py35/__pycache__
done
4 changes: 2 additions & 2 deletions run_docker.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ if [ ! -z $TRAVIS_TAG ] && [ -z $PYTHONASYNCIODEBUG ] && [ -z $AIOHTTP_NO_EXTENS
docker pull quay.io/pypa/manylinux1_x86_64
docker run --rm -v `pwd`:/io quay.io/pypa/manylinux1_x86_64 /io/build-wheels.sh
echo "Dist folder content is:"
for f in dist/*manylinux1_x86_64.whl
for f in dist/aiohttp*manylinux1_x86_64.whl
do
echo "Upload $f"
python -m twine upload $f --username andrew.svetlov --password $PYPI_PASSWD
Expand All @@ -15,7 +15,7 @@ if [ ! -z $TRAVIS_TAG ] && [ -z $PYTHONASYNCIODEBUG ] && [ -z $AIOHTTP_NO_EXTENS
docker pull quay.io/pypa/manylinux1_i686
docker run --rm -v `pwd`:/io quay.io/pypa/manylinux1_i686 linux32 /io/build-wheels.sh
echo "Dist folder content is:"
for f in dist/*manylinux1_i686.whl
for f in dist/aiohttp*manylinux1_i686.whl
do
echo "Upload $f"
python -m twine upload $f --username andrew.svetlov --password $PYPI_PASSWD
Expand Down

0 comments on commit fb37ccb

Please sign in to comment.