From 8a25718c71c55b7011756b90f2d5717ca3c505e4 Mon Sep 17 00:00:00 2001 From: heitorlessa Date: Sun, 31 May 2020 22:37:52 +0100 Subject: [PATCH] fix: ignores images with outdated pip version Signed-off-by: heitorlessa --- test/test_poetry_project.py | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/test/test_poetry_project.py b/test/test_poetry_project.py index e9e278c4..9d5c3813 100644 --- a/test/test_poetry_project.py +++ b/test/test_poetry_project.py @@ -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")