Files
cibuildwheel/test/06_docker_images/cibuildwheel_test.py
T

27 lines
848 B
Python
Raw Normal View History

2019-11-12 23:51:27 +00:00
import os
2020-02-20 17:29:28 -05:00
import platform
2019-11-12 23:51:27 +00:00
import pytest
import utils
2019-11-12 23:51:27 +00:00
def test():
project_dir = os.path.dirname(__file__)
2019-04-22 23:25:14 +01:00
2020-02-21 09:32:09 -05:00
if utils.platform != 'linux':
pytest.skip('the test is only relevant to the linux build')
2020-02-21 09:32:09 -05:00
if platform.machine() not in ['x86_64', 'i686']:
pytest.skip('this test is currently only possible on x86_64/i686 due to availability of alternative images')
actual_wheels = utils.cibuildwheel_run(project_dir, add_env={
'CIBW_MANYLINUX_X86_64_IMAGE': 'dockcross/manylinux2010-x64',
'CIBW_MANYLINUX_I686_IMAGE': 'dockcross/manylinux2010-x86',
'CIBW_SKIP': 'pp*',
})
# also check that we got the right wheels built
expected_wheels = [w for w in utils.expected_wheels('spam', '0.1.0')
if '-pp' not in w]
assert set(actual_wheels) == set(expected_wheels)