Commit c0b7b6b6 authored by Marius Gedminas's avatar Marius Gedminas Committed by GitHub

Merge pull request #117 from zopefoundation/fix-macos-wheel-upload

Fix Python 3.5 MacOS wheel upload
parents 8aa29e97 3236f03b
...@@ -2,9 +2,9 @@ language: python ...@@ -2,9 +2,9 @@ language: python
env: env:
global: global:
- TWINE_USERNAME: zope.wheelbuilder TWINE_USERNAME: zope.wheelbuilder
# this sets $PYPIPASSWORD TWINE_PASSWORD:
- secure: "Oh5gRJ+Fo8ZNmCkdrffpx201EPyTr9iUXmv6VqJMTebrzQpFdSWUVcANRmAzyfdyk3Wo0IjifVfWsKc+hvtbFmXZiLRFyEgoCUmzeWVumjebg2xxm0PbFHcRQgl4daBXxB0iqWkP8wXZ3daytuL74sYcbHizMYyhc7AxFbANsZc=" secure: "GoACBHy175St7lL5BIfW6Jz4HLG7XWpyt8znNJPe1HwInjSOWRqc0EZGVAjpCfOGX3iE3HchDH00WydkPuYEgUo0eoH59vVKk+x+LccKmUPQBSBW4HN40UVgQhtMm3BFsdk+dq0taxw2ZNGmv0+uo9uLqVXkcNNpokmOyoXkDmc="
python: python:
- 2.7 - 2.7
...@@ -78,25 +78,36 @@ install: ...@@ -78,25 +78,36 @@ install:
- pip install -e .[test,ZODB] - pip install -e .[test,ZODB]
script: script:
- python --version
- | - |
if [[ "$WITH_COVERAGE" == "1" ]]; then if [[ "$WITH_COVERAGE" == "1" ]]; then
coverage run -m zope.testrunner --test-path=. --auto-color --auto-progress --verbose coverage run -m zope.testrunner --test-path=. --auto-color --auto-progress --verbose
else else
zope-testrunner --test-path=. --auto-color --auto-progress --verbose zope-testrunner --test-path=. --auto-color --auto-progress --verbose
fi fi
- python setup.py -q bdist_wheel
after_success: after_success:
- if [[ "$WITH_COVERAGE" == "1" ]]; then coveralls; fi - if [[ "$WITH_COVERAGE" == "1" ]]; then coveralls; fi
- | - |
if [[ $TRAVIS_TAG && "$TRAVIS_OS_NAME" == "osx" ]]; then if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then
pip install twine # macpython 3.5 doesn't support recent TLS protocols which causes twine
python setup.py bdist_wheel # upload to fail, so we use the system Python to run twine
TWINE_PASSWORD=$PYPIPASSWORD twine upload --skip-existing dist/* /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 fi
- | - |
if [[ $TRAVIS_TAG && -n "$DOCKER_IMAGE" ]]; then if [[ -n "$DOCKER_IMAGE" ]]; then
pip install twine pip install twine
TWINE_PASSWORD=$PYPIPASSWORD twine upload --skip-existing wheelhouse/* twine check wheelhouse/*
if [[ $TRAVIS_TAG ]]; then
twine upload --skip-existing wheelhouse/*
fi
fi fi
notifications: notifications:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment