Changing variable name of BuildSelector instance, updating Python version in test 04_build_skip, and adding unit tests for BuildSelector

This commit is contained in:
Yannick Jadoul
2018-09-23 13:08:26 +02:00
parent c108807e16
commit 7362075b61
7 changed files with 72 additions and 11 deletions
+2 -2
View File
@@ -10,7 +10,7 @@ from glob import glob
from .util import prepare_command, get_build_verbosity_extra_flags
def build(project_dir, package_name, output_dir, test_command, test_requires, before_build, build_verbosity, selection, environment):
def build(project_dir, package_name, output_dir, test_command, test_requires, before_build, build_verbosity, build_selector, environment):
# run_with_env is a cmd file that sets the right environment variables to
run_with_env = os.path.join(tempfile.gettempdir(), 'appveyor_run_with_env.cmd')
if not os.path.exists(run_with_env):
@@ -45,7 +45,7 @@ def build(project_dir, package_name, output_dir, test_command, test_requires, be
built_wheel_dir = os.path.join(temp_dir, 'built_wheel')
for config in python_configurations:
if not selection(config.identifier):
if not build_selector(config.identifier):
print('cibuildwheel: Skipping build %s' % config.identifier, file=sys.stderr)
continue