Skip to content

Commit

Permalink
Merge pull request #1 from sbesson/python311
Browse files Browse the repository at this point in the history
Add Python 3.11 to the pre-built manylinux wheels
  • Loading branch information
chris-allan authored Oct 24, 2023
2 parents 1475583 + b845c3c commit bdc8c1d
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 4 deletions.
12 changes: 8 additions & 4 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,22 +9,26 @@ jobs:
build:
strategy:
matrix:
version: ['cp38-cp38', 'cp39-cp39', 'cp310-cp310']
version: ['cp38-cp38', 'cp39-cp39', 'cp310-cp310', 'cp311-cp311']
runs-on: ubuntu-latest
steps:
- name: Checkout repository and submodules
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
submodules: true
- name: Build
run: |
docker build -t builder .
- name: Run
run: |
curl -J -O -L 'https://pypi.io/packages/source/z/zeroc-ice/zeroc-ice-3.6.5.tar.gz'
tar zxf zeroc-ice-3.6.5.tar.gz
for f in patches/*; do patch -p0 < ${f}; done
docker run --rm -v $PWD/zeroc-ice-3.6.5:/build builder /bin/bash -c "cd /build ; /opt/python/${{ matrix.version }}/bin/python setup.py build -j 3"
docker run --rm -v $PWD/zeroc-ice-3.6.5:/build builder /bin/bash -c "cd /build ; /opt/python/${{ matrix.version }}/bin/python setup.py bdist_wheel"
docker run --rm -v $PWD/zeroc-ice-3.6.5:/build builder auditwheel repair --plat 'manylinux2014_x86_64' -w /build/dist /build/dist/zeroc_ice-3.6.5-${{ matrix.version }}-linux_x86_64.whl
- name: Upload artifacts
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v3
with:
name: artifacts
path: zeroc-ice-3.6.5/dist/*manylinux*.whl
Expand All @@ -35,7 +39,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Download artifacts from build
uses: actions/download-artifact@v2
uses: actions/download-artifact@v3
- name: List artifacts
run: ls -R
- name: Release
Expand Down
3 changes: 3 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[submodule "patches"]
path = patches
url = https://github.com/glencoesoftware/zeroc-ice-py-patches.git
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,6 @@ Linux x86_64 Zeroc Ice Python Builder

Builds ZeroC Ice Python manylinux2014 wheel packages for Linux x86_64.

** WARNING ** : the manylinux2014 wheel packages are bundled with
OpenSSL 1.0.2k and should not be used in production - see
https://github.com/pypa/manylinux#manylinux2014-centos-7-based.
1 change: 1 addition & 0 deletions patches
Submodule patches added at 73d8d5

0 comments on commit bdc8c1d

Please sign in to comment.