Skip to content

Commit 434c917

Browse files
authored
Merge pull request #258 from odidev/wheels
Build Linux wheels
2 parents cd26ca6 + bcbe11d commit 434c917

File tree

3 files changed

+18
-5
lines changed

3 files changed

+18
-5
lines changed

.github/workflows/ci.yaml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,15 +8,19 @@ jobs:
88
matrix:
99
include:
1010
- arch: amd64
11+
manylinux_arch: x86_64
1112
docker_image: debian:buster
1213

1314
- arch: arm64
15+
manylinux_arch: aarch64
1416
docker_image: arm64v8/debian:buster
1517

1618
- arch: ppc64le
19+
manylinux_arch: ppc64le
1720
docker_image: ppc64le/debian:buster
1821

1922
- arch: s390x
23+
manylinux_arch: s390x
2024
docker_image: s390x/debian:buster
2125

2226
env:
@@ -46,6 +50,9 @@ jobs:
4650
# sure it installs in a clean image without any hidden dependencies.
4751
run: docker run --rm -v $(pwd):/mnt:rw ${{ matrix.docker_image }} /mnt/ci/docker-deb-test
4852

53+
- name: Build wheels
54+
run: sudo make python-dists-${{ matrix.manylinux_arch }}
55+
4956
- name: Upload build artifacts
5057
uses: actions/upload-artifact@v2
5158
with:

Makefile

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -30,14 +30,17 @@ release: python-dists
3030
> sha256sums
3131

3232
.PHONY: python-dists
33-
python-dists: VERSION.h
33+
python-dists: python-dists-x86_64 python-dists-aarch64 python-dists-ppc64le python-dists-s390x
34+
35+
.PHONY: python-dists-%
36+
python-dists-%: VERSION.h
3437
python setup.py sdist
3538
docker run \
3639
--user $$(id -u):$$(id -g) \
37-
-v $(PWD)/dist:/dist:rw \
38-
quay.io/pypa/manylinux1_x86_64:latest \
40+
-v `pwd`/dist:/dist:rw \
41+
quay.io/pypa/manylinux2014_$*:latest \
3942
bash -exc ' \
40-
/opt/python/cp35-cp35m/bin/pip wheel --wheel-dir /tmp /dist/*.tar.gz && \
43+
/opt/python/cp38-cp38/bin/pip wheel --wheel-dir /tmp /dist/*.tar.gz && \
4144
auditwheel repair --wheel-dir /dist /tmp/*.whl --wheel-dir /dist \
4245
'
4346

requirements-dev.txt

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
11
pre-commit>=0.5.0
22
pytest
3-
pytest-timeout
3+
# TODO: This pin is to work around an issue where the system pytest is too old.
4+
# We should fix this by not depending on the system pytest/python packages at
5+
# some point.
6+
pytest-timeout<2.0.0

0 commit comments

Comments
 (0)