Rework tests check all wheels produced against a reference list

Also, wrap the cibuildwheel call to make building env easier
This commit is contained in:
Joe Rickerby
2019-04-23 22:15:02 +01:00
parent e360a04dc1
commit e87032c830
8 changed files with 126 additions and 146 deletions
+2 -9
View File
@@ -1,5 +1,4 @@
import subprocess, sys, os
from glob import glob
import os
import utils
def test():
@@ -7,10 +6,4 @@ def test():
# this test checks that SSL is working in the build environment using
# some checks in setup.py.
# build the wheels
subprocess.check_call([sys.executable, '-m', 'cibuildwheel', project_dir])
# check that we got the right number of built wheels
expected_identifiers = utils.cibuildwheel_get_build_identifiers(project_dir)
built_wheels = glob('wheelhouse/*.whl')
assert len(built_wheels) == len(expected_identifiers)
utils.cibuildwheel_run(project_dir)