Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit c9062b0

Browse files
committed
Stop building 32-bit Linux wheels
Also, simplify workflow file to remove some duplication.
1 parent 5aee26d commit c9062b0

File tree

2 files changed

+30
-40
lines changed

2 files changed

+30
-40
lines changed

.github/workflows/cibuildwheel.yml

Lines changed: 25 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -35,24 +35,38 @@ jobs:
3535
name: Build wheels on ${{ matrix.os }}
3636
runs-on: ${{ matrix.os }}
3737
env:
38-
CIBW_ARCHS_MACOS: "x86_64 universal2 arm64"
39-
MACOSX_DEPLOYMENT_TARGET: "10.12"
40-
CIBW_BEFORE_BUILD_WINDOWS: >-
41-
pip install certifi delvewheel oldest-supported-numpy &&
38+
CIBW_SKIP: "*-musllinux*"
39+
CIBW_BEFORE_BUILD: >-
40+
pip install certifi oldest-supported-numpy &&
4241
git clean -fxd build
43-
CIBW_REPAIR_WHEEL_COMMAND_WINDOWS: >-
44-
delvewheel repair -w {dest_dir} {wheel}
4542
strategy:
4643
matrix:
47-
os: [ubuntu-20.04, windows-latest, macos-11]
48-
cibw_archs: ["auto"]
4944
include:
5045
- os: ubuntu-20.04
51-
cibw_archs: "aarch64"
46+
env:
47+
CIBW_ARCHS: "x86_64"
48+
CIBW_MANYLINUX_X86_64_IMAGE: manylinux2014
49+
- os: ubuntu-20.04
50+
env:
51+
CIBW_ARCHS: "aarch64"
52+
CIBW_MANYLINUX_X86_64_IMAGE: manylinux2014
53+
- os: windows-latest
54+
env:
55+
CIBW_ARCHS: "auto"
56+
CIBW_BEFORE_BUILD_WINDOWS: >-
57+
pip install certifi delvewheel oldest-supported-numpy &&
58+
git clean -fxd build
59+
CIBW_REPAIR_WHEEL_COMMAND_WINDOWS: >-
60+
delvewheel repair -w {dest_dir} {wheel}
61+
MPL_DISABLE_FH4: "yes"
62+
- os: macos-11
63+
env:
64+
CIBW_ARCHS: "x86_64 universal2 arm64"
65+
MACOSX_DEPLOYMENT_TARGET: "10.12"
5266

5367
steps:
5468
- name: Set up QEMU
55-
if: matrix.cibw_archs == 'aarch64'
69+
if: env.CIBW_ARCHS == 'aarch64'
5670
uses: docker/setup-qemu-action@v2
5771
with:
5872
platforms: arm64
@@ -73,51 +87,22 @@ jobs:
7387
uses: pypa/[email protected]
7488
env:
7589
CIBW_BUILD: "cp311-*"
76-
CIBW_SKIP: "*-musllinux*"
77-
CIBW_MANYLINUX_X86_64_IMAGE: manylinux2014
78-
CIBW_MANYLINUX_I686_IMAGE: manylinux2014
79-
CIBW_BEFORE_BUILD: >-
80-
pip install certifi oldest-supported-numpy &&
81-
git clean -fxd build
82-
MPL_DISABLE_FH4: "yes"
83-
CIBW_ARCHS: ${{ matrix.cibw_archs }}
8490

8591
- name: Build wheels for CPython 3.10
8692
uses: pypa/[email protected]
8793
env:
8894
CIBW_BUILD: "cp310-*"
89-
CIBW_SKIP: "*-musllinux*"
90-
CIBW_MANYLINUX_X86_64_IMAGE: manylinux2014
91-
CIBW_MANYLINUX_I686_IMAGE: manylinux2014
92-
CIBW_BEFORE_BUILD: >-
93-
pip install certifi oldest-supported-numpy &&
94-
git clean -fxd build
95-
MPL_DISABLE_FH4: "yes"
96-
CIBW_ARCHS: ${{ matrix.cibw_archs }}
9795

9896
- name: Build wheels for CPython 3.9
9997
uses: pypa/[email protected]
10098
env:
10199
CIBW_BUILD: "cp39-*"
102-
CIBW_SKIP: "*-musllinux*"
103-
CIBW_MANYLINUX_X86_64_IMAGE: manylinux2014
104-
CIBW_MANYLINUX_I686_IMAGE: manylinux2014
105-
CIBW_BEFORE_BUILD: >-
106-
pip install certifi oldest-supported-numpy &&
107-
git clean -fxd build
108-
MPL_DISABLE_FH4: "yes"
109-
CIBW_ARCHS: ${{ matrix.cibw_archs }}
110100

111101
- name: Build wheels for PyPy
112102
uses: pypa/[email protected]
113103
env:
114104
CIBW_BUILD: "pp39-*"
115-
CIBW_SKIP: "*-musllinux*"
116-
CIBW_BEFORE_BUILD: >-
117-
pip install certifi oldest-supported-numpy &&
118-
git clean -fxd build
119-
CIBW_ARCHS: ${{ matrix.cibw_archs }}
120-
if: matrix.cibw_archs != 'aarch64'
105+
if: env.CIBW_ARCHS != 'aarch64'
121106

122107
- name: Validate that LICENSE files are included in wheels
123108
run: |
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
Wheels for 32-bit Linux are no longer distributed
2+
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
3+
4+
Pre-compiled wheels for 32-bit Linux are no longer provided on PyPI since
5+
Matplotlib 3.8.

0 commit comments

Comments
 (0)