-
Notifications
You must be signed in to change notification settings - Fork 238
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feature: add musllinux_1_2 support (#1561)
* feature: add musllinux_1_2 support * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * fix[test]: clean-up docker images in test_*linux*_only.py We are reaching disk space limits (14 GB) when running tests. Add a fixture to clean-up docker images after tests. This fixture is applied on tests that pull a specific image for one test only in order not to take too much time pulling that image many times. --------- Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
- Loading branch information
1 parent
229f857
commit 36049d8
Showing
9 changed files
with
147 additions
and
32 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,49 +1,54 @@ | ||
[x86_64] | ||
manylinux1 = quay.io/pypa/manylinux1_x86_64:2023-06-25-d2e0575 | ||
manylinux2010 = quay.io/pypa/manylinux2010_x86_64:2022-08-05-4535177 | ||
manylinux2014 = quay.io/pypa/manylinux2014_x86_64:2023-07-14-55e4124 | ||
manylinux2014 = quay.io/pypa/manylinux2014_x86_64:2023-07-29-8793e83 | ||
manylinux_2_24 = quay.io/pypa/manylinux_2_24_x86_64:2022-12-26-0d38463 | ||
manylinux_2_28 = quay.io/pypa/manylinux_2_28_x86_64:2023-07-14-55e4124 | ||
musllinux_1_1 = quay.io/pypa/musllinux_1_1_x86_64:2023-07-14-55e4124 | ||
manylinux_2_28 = quay.io/pypa/manylinux_2_28_x86_64:2023-07-29-8793e83 | ||
musllinux_1_1 = quay.io/pypa/musllinux_1_1_x86_64:2023-07-29-8793e83 | ||
musllinux_1_2 = quay.io/pypa/musllinux_1_2_x86_64:2023-07-29-8793e83 | ||
|
||
[i686] | ||
manylinux1 = quay.io/pypa/manylinux1_i686:2023-06-25-d2e0575 | ||
manylinux2010 = quay.io/pypa/manylinux2010_i686:2022-08-05-4535177 | ||
manylinux2014 = quay.io/pypa/manylinux2014_i686:2023-07-14-55e4124 | ||
manylinux2014 = quay.io/pypa/manylinux2014_i686:2023-07-29-8793e83 | ||
manylinux_2_24 = quay.io/pypa/manylinux_2_24_i686:2022-12-26-0d38463 | ||
musllinux_1_1 = quay.io/pypa/musllinux_1_1_i686:2023-07-14-55e4124 | ||
musllinux_1_1 = quay.io/pypa/musllinux_1_1_i686:2023-07-29-8793e83 | ||
musllinux_1_2 = quay.io/pypa/musllinux_1_2_i686:2023-07-29-8793e83 | ||
|
||
[pypy_x86_64] | ||
manylinux2010 = quay.io/pypa/manylinux2010_x86_64:2022-08-05-4535177 | ||
manylinux2014 = quay.io/pypa/manylinux2014_x86_64:2023-07-14-55e4124 | ||
manylinux2014 = quay.io/pypa/manylinux2014_x86_64:2023-07-29-8793e83 | ||
manylinux_2_24 = quay.io/pypa/manylinux_2_24_x86_64:2022-12-26-0d38463 | ||
manylinux_2_28 = quay.io/pypa/manylinux_2_28_x86_64:2023-07-14-55e4124 | ||
manylinux_2_28 = quay.io/pypa/manylinux_2_28_x86_64:2023-07-29-8793e83 | ||
|
||
[pypy_i686] | ||
manylinux2010 = quay.io/pypa/manylinux2010_i686:2022-08-05-4535177 | ||
manylinux2014 = quay.io/pypa/manylinux2014_i686:2023-07-14-55e4124 | ||
manylinux2014 = quay.io/pypa/manylinux2014_i686:2023-07-29-8793e83 | ||
manylinux_2_24 = quay.io/pypa/manylinux_2_24_i686:2022-12-26-0d38463 | ||
|
||
[aarch64] | ||
manylinux2014 = quay.io/pypa/manylinux2014_aarch64:2023-07-14-55e4124 | ||
manylinux2014 = quay.io/pypa/manylinux2014_aarch64:2023-07-29-8793e83 | ||
manylinux_2_24 = quay.io/pypa/manylinux_2_24_aarch64:2022-12-26-0d38463 | ||
manylinux_2_28 = quay.io/pypa/manylinux_2_28_aarch64:2023-07-14-55e4124 | ||
musllinux_1_1 = quay.io/pypa/musllinux_1_1_aarch64:2023-07-14-55e4124 | ||
manylinux_2_28 = quay.io/pypa/manylinux_2_28_aarch64:2023-07-29-8793e83 | ||
musllinux_1_1 = quay.io/pypa/musllinux_1_1_aarch64:2023-07-29-8793e83 | ||
musllinux_1_2 = quay.io/pypa/musllinux_1_2_aarch64:2023-07-29-8793e83 | ||
|
||
[ppc64le] | ||
manylinux2014 = quay.io/pypa/manylinux2014_ppc64le:2023-07-14-55e4124 | ||
manylinux2014 = quay.io/pypa/manylinux2014_ppc64le:2023-07-29-8793e83 | ||
manylinux_2_24 = quay.io/pypa/manylinux_2_24_ppc64le:2022-12-26-0d38463 | ||
manylinux_2_28 = quay.io/pypa/manylinux_2_28_ppc64le:2023-07-14-55e4124 | ||
musllinux_1_1 = quay.io/pypa/musllinux_1_1_ppc64le:2023-07-14-55e4124 | ||
manylinux_2_28 = quay.io/pypa/manylinux_2_28_ppc64le:2023-07-29-8793e83 | ||
musllinux_1_1 = quay.io/pypa/musllinux_1_1_ppc64le:2023-07-29-8793e83 | ||
musllinux_1_2 = quay.io/pypa/musllinux_1_2_ppc64le:2023-07-29-8793e83 | ||
|
||
[s390x] | ||
manylinux2014 = quay.io/pypa/manylinux2014_s390x:2023-07-14-55e4124 | ||
manylinux2014 = quay.io/pypa/manylinux2014_s390x:2023-07-29-8793e83 | ||
manylinux_2_24 = quay.io/pypa/manylinux_2_24_s390x:2022-12-26-0d38463 | ||
manylinux_2_28 = quay.io/pypa/manylinux_2_28_s390x:2023-07-14-55e4124 | ||
musllinux_1_1 = quay.io/pypa/musllinux_1_1_s390x:2023-07-14-55e4124 | ||
manylinux_2_28 = quay.io/pypa/manylinux_2_28_s390x:2023-07-29-8793e83 | ||
musllinux_1_1 = quay.io/pypa/musllinux_1_1_s390x:2023-07-29-8793e83 | ||
musllinux_1_2 = quay.io/pypa/musllinux_1_2_s390x:2023-07-29-8793e83 | ||
|
||
[pypy_aarch64] | ||
manylinux2014 = quay.io/pypa/manylinux2014_aarch64:2023-07-14-55e4124 | ||
manylinux2014 = quay.io/pypa/manylinux2014_aarch64:2023-07-29-8793e83 | ||
manylinux_2_24 = quay.io/pypa/manylinux_2_24_aarch64:2022-12-26-0d38463 | ||
manylinux_2_28 = quay.io/pypa/manylinux_2_28_aarch64:2023-07-14-55e4124 | ||
manylinux_2_28 = quay.io/pypa/manylinux_2_28_aarch64:2023-07-29-8793e83 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
from __future__ import annotations | ||
|
||
import textwrap | ||
|
||
import pytest | ||
|
||
from . import test_projects, utils | ||
|
||
project_with_manylinux_symbols = test_projects.new_c_project( | ||
spam_c_top_level_add=textwrap.dedent( | ||
r""" | ||
#include <stdlib.h> | ||
#if defined(__GLIBC_PREREQ) | ||
#error "Must not run on a glibc linux environment" | ||
#endif | ||
""" | ||
), | ||
spam_c_function_add=textwrap.dedent( | ||
r""" | ||
sts = 0; | ||
""" | ||
), | ||
) | ||
|
||
|
||
@pytest.mark.parametrize( | ||
"musllinux_image", | ||
["musllinux_1_1", "musllinux_1_2"], | ||
) | ||
@pytest.mark.usefixtures("docker_cleanup") | ||
def test(musllinux_image, tmp_path): | ||
if utils.platform != "linux": | ||
pytest.skip("the container image test is only relevant to the linux build") | ||
|
||
project_dir = tmp_path / "project" | ||
project_with_manylinux_symbols.generate(project_dir) | ||
|
||
# build the wheels | ||
add_env = { | ||
"CIBW_BUILD": "*-musllinux*", | ||
"CIBW_MUSLLINUX_X86_64_IMAGE": musllinux_image, | ||
"CIBW_MUSLLINUX_I686_IMAGE": musllinux_image, | ||
"CIBW_MUSLLINUX_AARCH64_IMAGE": musllinux_image, | ||
"CIBW_MUSLLINUX_PPC64LE_IMAGE": musllinux_image, | ||
"CIBW_MUSLLINUX_S390X_IMAGE": musllinux_image, | ||
} | ||
|
||
actual_wheels = utils.cibuildwheel_run(project_dir, add_env=add_env) | ||
expected_wheels = utils.expected_wheels( | ||
"spam", | ||
"0.1.0", | ||
manylinux_versions=[], | ||
musllinux_versions=[musllinux_image], | ||
) | ||
assert set(actual_wheels) == set(expected_wheels) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters