Skip to content
This repository has been archived by the owner on Jul 17, 2024. It is now read-only.

Use cibuildwheel to produce wheels #42

Closed
wants to merge 16 commits into from
7 changes: 4 additions & 3 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ env:
global:
- CIBW_SKIP="cp34-* cp35-*"
- CIBW_TEST_REQUIRES="tox"
- CIBW_TEST_COMMAND="tox --workdir {project}"
- CIBW_TEST_COMMAND="tox --workdir {project} -c {project}"

matrix:
include:
Expand All @@ -21,12 +21,13 @@ script:
- cibuildwheel --output-dir wheelhouse
- $PIP install -r requirements.txt
- $PIP install -r dev-requirements.txt
- tox -e codecov
- wheel=`ls ${wheelhouse}/psautohint*.whl | head -n 1`
- tox --installpkg $wheel -e codecov --workdir {project} -c {project}
Copy link
Member

Choose a reason for hiding this comment

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

we don't want to run tox ourselves again, after cibuildwheel. We want the CIBW_TEST_COMMAND to call tox with the --installpkg option...
cibuildwheel builds the wheel, then installs it and runs the given test command. We want tox to take care of configuring the test environment, but we want to make it use a pre-build package (the wheel that we just built with cibuildwheel), instead of rebuilding the module from a sdist (which is its default behavior).
I need to go now, I'll have a look again tomorrow.


branches:
only:
- master
# We want to build wip/* branches since these are not usually used for PRs
- /^wip\/.*$/
# We want to build version tags as well.
- /^v\d+\.\d+.*$/
- /^\d+\.\d+\.\d+.*$/