feat: support Windows workaround on Travis CI
This commit is contained in:
committed by
Henry Schreiner
parent
c90c7666b9
commit
eb9850dbde
+3
-2
@@ -76,7 +76,8 @@ def cibuildwheel_run(project_path, package_dir='.', env=None, add_env=None, outp
|
||||
|
||||
|
||||
def expected_wheels(package_name, package_version, manylinux_versions=None,
|
||||
macosx_deployment_target='10.9', machine_arch=None):
|
||||
macosx_deployment_target='10.9', machine_arch=None, *,
|
||||
filter_27=IS_WINDOWS_RUNNING_ON_TRAVIS):
|
||||
'''
|
||||
Returns a list of expected wheels from a run of cibuildwheel.
|
||||
'''
|
||||
@@ -134,7 +135,7 @@ def expected_wheels(package_name, package_version, manylinux_versions=None,
|
||||
for platform_tag in platform_tags:
|
||||
wheels.append(f'{package_name}-{package_version}-{python_abi_tag}-{platform_tag}.whl')
|
||||
|
||||
if IS_WINDOWS_RUNNING_ON_TRAVIS:
|
||||
if filter_27:
|
||||
# Python 2.7 isn't supported on Travis.
|
||||
wheels = [w for w in wheels if '-cp27-' not in w and '-pp2' not in w]
|
||||
|
||||
|
||||
Reference in New Issue
Block a user