Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Always build manylinux wheels #146

Merged
merged 1 commit into from
Nov 11, 2019
Merged

Always build manylinux wheels #146

merged 1 commit into from
Nov 11, 2019

Conversation

mgedmin
Copy link
Member

@mgedmin mgedmin commented Nov 11, 2019

This PR makes it so we always build manylinux wheels, but only upload
them for git tags.

Highlights:

  • Move regular Linux Python builds outside the build matrix, for
    conciseness.

  • Switch manylinux1 builds to manylinux2010 (they should still get the
    manylinux1 tag if they're compatible, but they'll be built with a more
    modern compiler toolchain).

  • Move twine upload from .manylinux.sh into .travis.yml's after_success,
    right next to the twine upload used for Mac OS builds.

  • This means we can't short-circuit the builds with 'exit 0' in
    before_install:, so overwrite the install: and script: sections too.

  • Move the 'docker pull' from .manylinux.sh into the install: section
    so it's not empty.

  • Provide twine credentials via environment variables instead of
    command-line/pypirc file.

  • Put related commands inside a single multiline if statement.

  • Use setup.py -q test (quiet build) instead of setup.py test -q (which
    does nothing at all AFAICT).

This mirrors changes made to other zopefoundation packages tracked in
zopefoundation/meta#11.

This PR makes it so we _always_ build manylinux wheels, but only upload
them for git tags.

Highlights:

- Move regular Linux Python builds outside the build matrix, for
  conciseness.

- Switch manylinux1 builds to manylinux2010 (they should still get the
  manylinux1 tag if they're compatible, but they'll be built with a more
  modern compiler toolchain).

- Move twine upload from .manylinux.sh into .travis.yml's after_success,
  right next to the twine upload used for Mac OS builds.

- This means we can't short-circuit the builds with 'exit 0' in
  before_install:, so overwrite the install: and script: sections too.

- Move the 'docker pull' from .manylinux.sh into the install: section
  so it's not empty.

- Provide twine credentials via environment variables instead of
  command-line/pypirc file.

- Put related commands inside a single multiline if statement.

- Use setup.py -q test (quiet build) instead of setup.py test -q (which
  does nothing at all AFAICT).

This mirrors changes made to other zopefoundation packages tracked in
zopefoundation/meta#11.
@mgedmin mgedmin merged commit 660b29b into master Nov 11, 2019
@mgedmin mgedmin deleted the modernize-ci branch November 11, 2019 13:40
if [[ $TRAVIS_TAG && "$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 pip install twine
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oops I messed this up: https://travis-ci.org/zopefoundation/zope.interface/builds/610352389

/usr/bin/python: No module named pip

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

#148

@mgedmin mgedmin mentioned this pull request Nov 11, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants