fix: ignores images with outdated pip version

Signed-off-by: heitorlessa <lessa@amazon.co.uk>
This commit is contained in:
heitorlessa
2020-05-31 22:37:52 +01:00
parent a8bdac07e6
commit 8a25718c71
+8 -2
View File
@@ -35,8 +35,14 @@ def test_poetry_package(tmp_path):
project_dir = tmp_path / "project"
poetry_dummy_project.generate(project_dir)
# build the wheels
actual_wheels = utils.cibuildwheel_run(project_dir)
# Poetry is installed during wheels built by pip
# however, one of poetry deps require cryptography
# which fails to build in outdated pip versions
# more info: https://github.com/pyca/cryptography/issues/5101
skip_outdated_pip_images_env = {'CIBW_SKIP': 'cp27-* *-win32 *-manylinux_i686'}
actual_wheels = utils.cibuildwheel_run(project_dir, add_env=skip_outdated_pip_images_env)
# check that the expected wheels are produced
expected_wheels = utils.expected_wheels("dummy_package", "0.1.0")