Files
cibuildwheel/test/04_build_skip/cibuildwheel_test.py
T
Joe Rickerby e87032c830 Rework tests check all wheels produced against a reference list
Also, wrap the cibuildwheel call to make building env easier
2019-04-23 22:15:02 +01:00

18 lines
534 B
Python

import os
import utils
def test():
project_dir = os.path.dirname(__file__)
# build the wheels
utils.run_cibuildwheel(project_dir, add_env={
'CIBW_BUILD': 'cp3?-*',
'CIBW_SKIP': 'cp34-*',
})
# check that we got the right wheels. There should be no 2.7 or 3.4.
expected_wheels = [w for w in utils.expected_wheels('spam', '0.1.0')
if ('-cp3' in w) and ('-cp34' not in w)]
actual_wheels = os.listdir('wheelhouse')
assert set(actual_wheels) == set(expected_wheels)