Skip to content

Commit 00f09db

Browse files
committed
run manylinux in matrix without actions
1 parent 7628623 commit 00f09db

File tree

1 file changed

+27
-66
lines changed

1 file changed

+27
-66
lines changed

.github/workflows/pythonpackage.yml

Lines changed: 27 additions & 66 deletions
Original file line numberDiff line numberDiff line change
@@ -223,77 +223,38 @@ jobs:
223223
224224
DeployManyLinux:
225225
needs: [ TestLinux, TestWindows ]
226-
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags/')
226+
# if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags/')
227227
runs-on: ubuntu-latest
228-
# strategy:
229-
# max-parallel: 4
230-
# matrix:
231-
# MANYLINUX:
232-
# - { VERSION: '2010', ARCH: 'x86_64' }
233-
# - { VERSION: '2014', ARCH: 'i686' }
228+
strategy:
229+
max-parallel: 4
230+
matrix:
231+
PYTHON: [ "cp37-cp37m", "cp38-cp38", "cp39-cp39" , "cp310-cp310" ]
232+
MANYLINUX:
233+
- { VERSION: '2010', ARCH: 'x86_64' }
234+
- { VERSION: '2014', ARCH: 'i686' }
234235
# - { VERSION: '2014', ARCH: 'aarch64' }
235-
# name: "Release for manylinux${{ matrix.MANYLINUX.VERSION }}_${{ matrix.MANYLINUX.ARCH }}"
236+
name: "Release Python ${{ matrix.PYTHON }} for manylinux${{ matrix.MANYLINUX.VERSION }}_${{ matrix.MANYLINUX.ARCH }}"
237+
container:
238+
image: "quay.io/pypa/manylinux${{ matrix.MANYLINUX.VERSION }}_${{ matrix.MANYLINUX.ARCH }}"
239+
env:
240+
PYTHONDONTWRITEBYTECODE: 1
236241
steps:
237242
- uses: actions/checkout@v2
238-
- name: Build Python manylinux2010-x86_64 wheels
239-
uses: RalfG/python-wheels-manylinux-build@v0.3.4-manylinux2010_x86_64
240-
with:
241-
python-versions: 'cp37-cp37m cp38-cp38 cp39-cp39 cp310-cp310'
242-
build-requirements: 'cython'
243-
- name: Build Python manylinux2014-x86_64 wheels
244-
uses: RalfG/python-wheels-manylinux-build@v0.3.4-manylinux2014_x86_64
245-
with:
246-
python-versions: 'cp37-cp37m cp38-cp38 cp39-cp39 cp310-cp310'
247-
build-requirements: 'cython'
248-
- name: Build Python manylinux2010-i686 wheels
249-
uses: RalfG/python-wheels-manylinux-build@v0.3.4-manylinux2010_i686
250-
with:
251-
python-versions: 'cp37-cp37m cp38-cp38 cp39-cp39 cp310-cp310'
252-
build-requirements: 'cython'
253-
- name: Build Python manylinux2014-i686 wheels
254-
uses: RalfG/python-wheels-manylinux-build@v0.3.4-manylinux2014_i686
255-
with:
256-
python-versions: 'cp37-cp37m cp38-cp38 cp39-cp39 cp310-cp310'
257-
build-requirements: 'cython'
258-
- name: Install deploy dependencies
259-
run: pip install --upgrade twine
260-
- name: Deploy
261-
env:
262-
TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }}
263-
TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
243+
- name: "Install base requirements"
244+
/opt/python/${{ matrix.PYTHON }}/bin/python -m pip install -U pip wheel setuptools auditwheel
245+
/opt/python/${{ matrix.PYTHON }}/bin/pip install --upgrade -r build_requirements.txt
246+
- name: Build package
247+
run: /opt/python/${{ matrix.PYTHON }}/bin/python setup.py bdist_wheel clean
248+
- name: Bundle external shared libraries into the wheels
264249
run: |
265-
twine upload --skip-existing dist/*
266-
# runs-on: ubuntu-latest
267-
# container:
268-
# image: ${{ matrix.MANYLINUX.CONTAINER }}
269-
# env:
270-
# PYTHONDONTWRITEBYTECODE: 1
271-
# strategy:
272-
# matrix:
273-
# PYTHON: [ "cp37-cp37m", "cp38-cp38", "cp39-cp39" ]
274-
# MANYLINUX:
275-
# - NAME: manylinux2010_x86_64
276-
# CONTAINER: "quay.io/pypa/manylinux2010_x86_64"
277-
# - NAME: manylinux2014_x86_64
278-
# CONTAINER: "quay.io/pypa/manylinux2014_x86_64"
279-
# name: "${{ matrix.PYTHON }} for ${{ matrix.MANYLINUX.NAME }}"
280-
# steps:
281-
# - uses: actions/checkout@v2
282-
# - name: Install main dependencies
283-
# run: |
284-
# /opt/python/${{ matrix.PYTHON }}/bin/python -m pip install -U pip wheel setuptools
285-
# /opt/python/${{ matrix.PYTHON }}/bin/pip install --upgrade -r build_requirements.txt
286-
# /opt/python/${{ matrix.PYTHON }}/bin/pip install --upgrade twine
287-
# - name: Build package
288-
# run: /opt/python/${{ matrix.PYTHON }}/bin/python setup.py bdist_wheel clean
289-
# - name: Bundle external shared libraries into the wheels
290-
# run: |
291-
# for whl in dist/*.whl; do
292-
# echo "Repairing $whl..."
293-
# auditwheel repair "$whl" -w dist/
294-
# done
295-
# - name: Cleanup OS specific wheels
296-
# run: rm -fv dist/*-linux_*.whl
250+
for whl in dist/*.whl; do
251+
echo "Repairing $whl..."
252+
auditwheel repair "$whl" -w dist/
253+
done
254+
- name: Cleanup OS specific wheels
255+
run: rm -fv dist/*-linux_*.whl
256+
# - name: Install deploy dependencies
257+
# run: pip install --upgrade twine
297258
# - name: Deploy
298259
# env:
299260
# TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }}

0 commit comments

Comments
 (0)