From e5d99f01322570f54d48547ebef023328c4ddded Mon Sep 17 00:00:00 2001 From: Matthieu Darbois Date: Mon, 24 May 2021 20:51:44 +0200 Subject: [PATCH] Use python slim images to run tests (#308) This should speed-up the tests a bit --- README.rst | 3 ++- tests/integration/test_manylinux.py | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/README.rst b/README.rst index abd32cd2..8bf52667 100644 --- a/README.rst +++ b/README.rst @@ -132,10 +132,11 @@ daemon. These tests will pull a number of docker images if they are not already available on your system, but it won't update existing images. To update these images manually, run:: - docker pull python:3.6 + docker pull python:3.6-slim docker pull quay.io/pypa/manylinux1_x86_64 docker pull quay.io/pypa/manylinux2010_x86_64 docker pull quay.io/pypa/manylinux2014_x86_64 + docker pull quay.io/pypa/manylinux_2_24_x86_64 You may also remove these images using ``docker rmi``. diff --git a/tests/integration/test_manylinux.py b/tests/integration/test_manylinux.py index ee12aac9..da1b713c 100644 --- a/tests/integration/test_manylinux.py +++ b/tests/integration/test_manylinux.py @@ -49,7 +49,7 @@ PYTHON_ABI_MAJ_MIN = ''.join(PYTHON_MAJ_MIN) PYTHON_ABI_FLAGS = 'm' if sys.version_info.minor < 8 else '' PYTHON_ABI = f'cp{PYTHON_ABI_MAJ_MIN}-cp{PYTHON_ABI_MAJ_MIN}{PYTHON_ABI_FLAGS}' -PYTHON_IMAGE_ID = 'python:' + '.'.join(PYTHON_MAJ_MIN) +PYTHON_IMAGE_ID = f'python:{".".join(PYTHON_MAJ_MIN)}-slim' DEVTOOLSET = { 'manylinux_2_5': 'devtoolset-2', 'manylinux_2_12': 'devtoolset-8',