2019-04-23 22:14:17 +01:00
|
|
|
import os
|
2019-04-22 18:22:43 +01:00
|
|
|
import utils
|
|
|
|
|
|
|
|
|
|
def test():
|
2019-04-22 23:13:34 +01:00
|
|
|
project_dir = os.path.dirname(__file__)
|
2019-04-23 22:14:17 +01:00
|
|
|
|
|
|
|
|
# build the wheels
|
2019-04-23 22:23:54 +01:00
|
|
|
utils.cibuildwheel_run(project_dir, add_env={
|
2019-04-22 23:23:49 +01:00
|
|
|
'CIBW_BUILD': 'cp3?-*',
|
|
|
|
|
'CIBW_SKIP': 'cp34-*',
|
|
|
|
|
})
|
2019-04-22 18:22:43 +01:00
|
|
|
|
|
|
|
|
# check that we got the right wheels. There should be no 2.7 or 3.4.
|
2019-04-23 22:14:17 +01:00
|
|
|
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)
|