Skip to content

Commit

Permalink
Merge branch 'master' into feature/ref-multidict-tests
Browse files Browse the repository at this point in the history
  • Loading branch information
asvetlov committed Oct 20, 2017
2 parents c9f776f + 4774f48 commit d4602bf
Show file tree
Hide file tree
Showing 5 changed files with 24 additions and 8 deletions.
1 change: 0 additions & 1 deletion .travis.yml
Expand Up @@ -283,7 +283,6 @@ jobs:
- *env_path

stages:
- *test_dpl
- *doc_stage_name
- test
- name: *stage_test_osx_name
Expand Down
4 changes: 3 additions & 1 deletion CHANGES.rst
@@ -1,8 +1,10 @@
3.3.0 (2017-10-xx)
3.3.0 (2017-10-15)
------------------

* Introduce abstract base classes (#102)

* Publish OSX binary wheels (#153)


3.2.0 (2017-09-17)
------------------
Expand Down
2 changes: 1 addition & 1 deletion multidict/__init__.py
Expand Up @@ -12,7 +12,7 @@
'MultiDictProxy', 'CIMultiDictProxy',
'MultiDict', 'CIMultiDict', 'upstr', 'istr')

__version__ = '3.2.0'
__version__ = '3.3.0'


from ._abc import MultiMapping, MutableMultiMapping
Expand Down
3 changes: 1 addition & 2 deletions requirements/ci.txt
Expand Up @@ -7,8 +7,7 @@ sphinx==1.6.4
alabaster>=0.6.2
pytest-cov==2.5.1
pygments==2.2.0
mypy==0.530; (python_version>="3.5" or platform_system != "Windows") and platform_python_implementation != "PyPy"
git+git://github.com/python/mypy.git@b6bcdc0; python_version<"3.5" and platform_system == "Windows"
mypy==0.540; platform_python_implementation != "PyPy"
-e .

codecov==2.0.9
22 changes: 19 additions & 3 deletions tools/build-wheels.sh
@@ -1,4 +1,11 @@
#!/bin/bash
if [ -n "$DEBUG" ]
then
set -x
fi
set -euo pipefail
# ref: https://coderwall.com/p/fkfaqq/safer-bash-scripts-with-set-euxo-pipefail

PYTHON_VERSIONS="cp34-cp34m cp35-cp35m cp36-cp36m"

# Avoid creation of __pycache__/*.py[c|o]
Expand All @@ -24,25 +31,34 @@ done
echo
echo
echo "Bundle external shared libraries into the wheels"
for whl in /io/dist/${package_name}*${arch}.whl; do
for whl in /io/dist/${package_name}-*-linux_${arch}.whl; do
echo "Repairing $whl..."
auditwheel repair "$whl" -w /io/dist/
done

echo
echo
echo "Cleanup OS specific wheels"
rm -fv /io/dist/*-linux_*.whl

echo
echo
echo "Cleanup non-$package_name wheels"
find /io/dist -maxdepth 1 -type f ! -name "$package_name"'-*-manylinux1_'"$arch"'.whl' -print0 | xargs -0 rm -rf

echo
echo
echo "Install packages and test"
echo "dist directory:"
ls /io/dist

for PYTHON in ${PYTHON_VERSIONS}; do
# clear python cache
find /io -type d -name __pycache__ -print0 | xargs -0 rm -rf

echo
echo -n "Test $PYTHON: "
/opt/python/${PYTHON}/bin/python -c "import platform;print(platform.platform())"
/opt/python/${PYTHON}/bin/python -c "import platform; print('Building wheel for {platform} platform.'.format(platform=platform.platform()))"
/opt/python/${PYTHON}/bin/pip install "$package_name" --no-index -f file:///io/dist
find /io/tests -name __pycache__ | xargs rm -rf
/opt/python/${PYTHON}/bin/py.test /io/tests
done

0 comments on commit d4602bf

Please sign in to comment.