Files
cibuildwheel/test/04_build_skip/cibuildwheel_test.py
T

18 lines
534 B
Python
Raw Normal View History

import os
import utils
def test():
project_dir = os.path.dirname(__file__)
# build the wheels
2019-04-23 22:23:54 +01:00
utils.cibuildwheel_run(project_dir, add_env={
'CIBW_BUILD': 'cp3?-*',
2019-09-28 19:24:16 +02:00
'CIBW_SKIP': 'cp37-*',
})
2019-09-28 19:24:16 +02:00
# check that we got the right wheels. There should be no 2.7 or 3.7.
expected_wheels = [w for w in utils.expected_wheels('spam', '0.1.0')
2019-09-28 19:24:16 +02:00
if ('-cp3' in w) and ('-cp37' not in w)]
actual_wheels = os.listdir('wheelhouse')
assert set(actual_wheels) == set(expected_wheels)