Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #18 from zopefoundation/more-wheels
Also build manylinux and Mac OS wheels
- Loading branch information
Showing
7 changed files
with
123 additions
and
12 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
#!/usr/bin/env bash | ||
|
||
set -e -x | ||
|
||
# Compile wheels | ||
for PYBIN in /opt/python/*/bin; do | ||
if [[ "${PYBIN}" == *"cp27"* ]] || \ | ||
[[ "${PYBIN}" == *"cp35"* ]] || \ | ||
[[ "${PYBIN}" == *"cp36"* ]] || \ | ||
[[ "${PYBIN}" == *"cp37"* ]] || \ | ||
[[ "${PYBIN}" == *"cp38"* ]]; then | ||
"${PYBIN}/pip" install -e /io/ | ||
"${PYBIN}/pip" wheel /io/ -w wheelhouse/ | ||
rm -rf /io/build /io/*.egg-info | ||
fi | ||
done | ||
|
||
# Bundle external shared libraries into the wheels | ||
for whl in wheelhouse/zope.i18nmessageid*.whl; do | ||
auditwheel repair "$whl" -w /io/wheelhouse/ | ||
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,5 @@ | ||
#!/usr/bin/env bash | ||
|
||
set -e -x | ||
|
||
docker run --rm -v "$(pwd)":/io $DOCKER_IMAGE $PRE_CMD /io/.manylinux-install.sh |
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 |
---|---|---|
@@ -1,27 +1,100 @@ | ||
language: python | ||
dist: xenial | ||
|
||
env: | ||
global: | ||
TWINE_USERNAME: zope.wheelbuilder | ||
TWINE_PASSWORD: | ||
secure: "VQxFZo+4W6XAX94+kJY8dx90uKnmsJIBLPHruK5Xz2E7bFM3t7MlcFN5A0v90fB7BJUiKyQpO67R+wF3XIaqd7UDcI0NVcNihKkzkP8rE4CLsHIhjWU9lKuO0juXegv+0p8ztHV9anvSXN3WbaYk7elXiv4CXxpTeVBy77KK8gE=" | ||
|
||
python: | ||
- 2.7 | ||
- 3.5 | ||
- 3.6 | ||
- 3.7 | ||
- pypy2.7-6.0.0 | ||
- pypy3.5-6.0.0 | ||
script: | ||
- coverage run -m zope.testrunner --test-path=src --auto-color --auto-progress | ||
- 3.8 | ||
- pypy | ||
- pypy3 | ||
|
||
after_success: | ||
- coveralls | ||
notifications: | ||
email: false | ||
jobs: | ||
include: | ||
|
||
# manylinux wheel builds | ||
- name: 64-bit manylinux wheels (all Pythons) | ||
services: docker | ||
env: DOCKER_IMAGE=quay.io/pypa/manylinux2010_x86_64 | ||
install: docker pull $DOCKER_IMAGE | ||
script: bash .manylinux.sh | ||
|
||
- name: 32-bit manylinux wheels (all Pythons) | ||
services: docker | ||
env: DOCKER_IMAGE=quay.io/pypa/manylinux2010_i686 PRE_CMD=linux32 | ||
install: docker pull $DOCKER_IMAGE | ||
script: bash .manylinux.sh | ||
|
||
# It's important to use 'macpython' builds to get the least | ||
# restrictive wheel tag. It's also important to avoid | ||
# 'homebrew 3' because it floats instead of being a specific version. | ||
- name: Python 2.7 wheels for MacOS | ||
os: osx | ||
language: generic | ||
env: TERRYFY_PYTHON='macpython 2.7.17' | ||
- name: Python 3.5 wheels for MacOS | ||
os: osx | ||
language: generic | ||
env: TERRYFY_PYTHON='macpython 3.5' | ||
- name: Python 3.6 wheels for MacOS | ||
os: osx | ||
language: generic | ||
env: TERRYFY_PYTHON='macpython 3.6.0' | ||
- name: Python 3.7 wheels for MacOS | ||
os: osx | ||
language: generic | ||
env: TERRYFY_PYTHON='macpython 3.7.0' | ||
|
||
before_install: | ||
- | | ||
if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then | ||
git clone https://github.com/MacPython/terryfy | ||
source terryfy/travis_tools.sh | ||
get_python_environment $TERRYFY_PYTHON venv | ||
fi | ||
install: | ||
- pip install -U pip setuptools | ||
- pip install -U coveralls coverage zope.testrunner | ||
- pip install -U -e ".[test]" | ||
|
||
script: | ||
- python --version | ||
- coverage run -m zope.testrunner --test-path=src --auto-color --auto-progress | ||
- python setup.py -q bdist_wheel | ||
|
||
cache: pip | ||
after_success: | ||
- coveralls | ||
- | | ||
if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then | ||
# macpython 3.5 doesn't support recent TLS protocols which causes twine | ||
# upload to fail, so we use the system Python to run twine | ||
/usr/bin/python -m ensurepip --user | ||
/usr/bin/python -m pip install --user -U pip | ||
/usr/bin/python -m pip install --user -U -I twine | ||
/usr/bin/python -m twine check dist/* | ||
if [[ $TRAVIS_TAG ]]; then | ||
/usr/bin/python -m twine upload --skip-existing dist/* | ||
fi | ||
fi | ||
- | | ||
if [[ -n "$DOCKER_IMAGE" ]]; then | ||
pip install twine | ||
twine check wheelhouse/* | ||
if [[ $TRAVIS_TAG ]]; then | ||
twine upload --skip-existing wheelhouse/* | ||
fi | ||
fi | ||
notifications: | ||
email: false | ||
|
||
cache: pip | ||
before_cache: | ||
- rm -f $HOME/.cache/pip/log/debug.log |
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 |
---|---|---|
|
@@ -7,6 +7,8 @@ | |
|
||
- Drop support for Python 3.4. | ||
|
||
- Add support for Python 3.8. | ||
|
||
|
||
4.3.1 (2018-10-19) | ||
================== | ||
|
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