Skip to content

Commit 4bc46f1

Browse files
authored
Merge pull request #574 from facelessuser/bugfix/wheels
Get builds working
2 parents 33c577b + 4c9da2e commit 4bc46f1

File tree

2 files changed

+19
-25
lines changed

2 files changed

+19
-25
lines changed

.github/workflows/main.yml

Lines changed: 18 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -55,10 +55,8 @@ jobs:
5555
with:
5656
python-version: ${{ env.PYTHON_VER }}
5757

58-
- name: Install cibuildwheel & build wheels
59-
run: |
60-
python -m pip install -U cibuildwheel
61-
python -m cibuildwheel --output-dir wheelhouse
58+
- name: Build wheels
59+
uses: pypa/[email protected]
6260

6361
- name: Upload wheels
6462
uses: actions/upload-artifact@v4
@@ -83,8 +81,8 @@ jobs:
8381
# (memcpy@GLIBC_2.14), so the wheels are not compatible with
8482
# manylinux1_x86_64 environment. In order to be compatible as
8583
# much as possible, this job builds manylinux1_x86_64 wheels.
86-
build_in_manylinux2010:
87-
name: Build in manylinux2010 environment
84+
build_in_manylinux2014:
85+
name: Build in manylinux2014 environment
8886
if: github.event_name == 'push'
8987
runs-on: ubuntu-latest
9088

@@ -97,7 +95,7 @@ jobs:
9795
# manylinux_x_y >=20.3 3.8.10+, 3.9.5+, 3.10.0+ x.y
9896
# manylinux2010 images EOL on 2022-08-01, it doesn't support cp311.
9997
CIBW_BUILD: cp39-* cp310-*
100-
CIBW_MANYLINUX_X86_64_IMAGE: manylinux2010
98+
CIBW_MANYLINUX_X86_64_IMAGE: manylinux2014
10199
CIBW_ARCHS_LINUX: x86_64
102100

103101
steps:
@@ -106,11 +104,8 @@ jobs:
106104
with:
107105
python-version: ${{ env.PYTHON_VER }}
108106

109-
- name: Build source distribution & wheels
110-
run: |
111-
python setup.py sdist --formats=gztar
112-
python -m pip install -U cibuildwheel
113-
python -m cibuildwheel --output-dir wheelhouse
107+
- name: Build wheels
108+
uses: pypa/[email protected]
114109

115110
- name: Upload source distribution
116111
uses: actions/upload-artifact@v4
@@ -121,7 +116,7 @@ jobs:
121116
- name: Upload manylinux1_x86_64 wheels
122117
uses: actions/upload-artifact@v4
123118
with:
124-
name: regex-files-manylinux2010
119+
name: regex-files-manylinux2014
125120
path: wheelhouse/*.whl
126121

127122
# Build and upload aarch64/ppc64le/s390x wheels.
@@ -134,24 +129,23 @@ jobs:
134129
matrix:
135130
arch: [aarch64, ppc64le, s390x]
136131

137-
env:
138-
CIBW_ARCHS: ${{ matrix.arch }}
139-
# Building in QEMU is very slow, so parallelize the tasks.
140-
CIBW_SKIP: "*musllinux* *manylinux*"
141-
142132
steps:
143133
- uses: actions/checkout@v3
144134
- uses: actions/setup-python@v4
145135
with:
146136
python-version: ${{ env.PYTHON_VER }}
147137

148138
- name: Set up QEMU
149-
uses: docker/setup-qemu-action@v2
139+
uses: docker/setup-qemu-action@v3
140+
with:
141+
platforms: all
150142

151-
- name: Install cibuildwheel & build wheels
152-
run: |
153-
python -m pip install -U cibuildwheel
154-
python -m cibuildwheel --output-dir wheelhouse
143+
- name: Build wheels
144+
uses: pypa/[email protected]
145+
with:
146+
CIBW_ARCHS_LINUX: ${{ matrix.arch }}
147+
# Building in QEMU is very slow, so parallelize the tasks.
148+
CIBW_SKIP: "*musllinux* *manylinux*"
155149

156150
- name: Upload ${{ matrix.arch }} wheels
157151
uses: actions/upload-artifact@v4
@@ -162,7 +156,7 @@ jobs:
162156
# Upload to PyPI
163157
upload_pypi:
164158
name: Publish to PyPI
165-
needs: [build_wheels, build_in_manylinux2010, build_arch_wheels]
159+
needs: [build_wheels, build_in_manylinux2014, build_arch_wheels]
166160
runs-on: ubuntu-latest
167161

168162
steps:

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ readme = "README.rst"
1010
authors = [
1111
{name = "Matthew Barnett", email = "[email protected]"},
1212
]
13-
license = "Apache-2.0"
13+
license = {file = "LICENSE.txt"}
1414

1515
classifiers = [
1616
"Development Status :: 5 - Production/Stable",

0 commit comments

Comments
 (0)