2019-04-23 22:14:17 +01:00
|
|
|
import os
|
2019-11-12 23:51:27 +00:00
|
|
|
|
2019-04-22 18:22:43 +01:00
|
|
|
import utils
|
|
|
|
|
|
2019-11-12 23:51:27 +00:00
|
|
|
|
2019-04-22 18:22:43 +01:00
|
|
|
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-11-20 22:20:53 +01:00
|
|
|
actual_wheels = utils.cibuildwheel_run(project_dir, add_env={
|
2019-04-22 23:23:49 +01:00
|
|
|
'CIBW_BUILD': 'cp3?-*',
|
2019-09-28 19:24:16 +02:00
|
|
|
'CIBW_SKIP': 'cp37-*',
|
2019-04-22 23:23:49 +01:00
|
|
|
})
|
2019-04-22 18:22:43 +01:00
|
|
|
|
2019-09-28 19:24:16 +02:00
|
|
|
# check that we got the right wheels. There should be no 2.7 or 3.7.
|
2019-04-23 22:14:17 +01:00
|
|
|
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)]
|
2019-04-23 22:14:17 +01:00
|
|
|
assert set(actual_wheels) == set(expected_wheels)
|