Install twine in wheel build jobs (#2292)

* Install twine in wheel build jobs

The wheel build jobs failed to install twine so when the jobs completed
and went to upload the wheels this failed because the command wasn't
found. This commit fixes the issue by installing twine as part of the
wheel build job set ups so that we can actually upload our built
binaries.

* Pip install -U twine

* Bump cibuildwheel version
This commit is contained in:
Matthew Treinish 2019-05-14 13:23:42 -04:00 committed by Luciano
parent 48b6792f1a
commit a83ba0ee74
2 changed files with 7 additions and 4 deletions

View File

@ -102,7 +102,8 @@ jobs:
- CIBW_TEST_COMMAND="python3 {project}/examples/python/stochastic_swap.py"
if: tag IS present
script:
- sudo pip install cibuildwheel==0.10.1
- sudo pip install cibuildwheel==0.10.2
- sudo pip install -U twine
- cibuildwheel --output-dir wheelhouse
- twine upload wheelhouse/*
- os: osx
@ -115,7 +116,8 @@ jobs:
- TWINE_USERNAME=qiskit
- CIBW_TEST_COMMAND="python3 {project}/examples/python/stochastic_swap.py"
script:
- sudo pip2 install cibuildwheel==0.10.1
- sudo pip2 install cibuildwheel==0.10.2
- sudo pip2 install -U twine
- cibuildwheel --output-dir wheelhouse
- twine upload wheelhouse/*

View File

@ -59,9 +59,10 @@ deploy: false
skip_branch_with_pr: true
build_script:
- if defined WHEEL (pip install cibuildwheel==0.10.1)
- if defined WHEEL (pip install cibuildwheel==0.10.2)
- if defined WHEEL (pip install -U twine)
- if defined WHEEL (cibuildwheel --output-dir wheelhouse)
- if defined WHEEL {twine upload wheelhouse\*}
- if defined WHEEL (twine upload wheelhouse\*)
artifacts:
- path: "wheelhouse\\*.whl"
name: Wheels