Skip to content

Commit 8c1cc24

Browse files
committed
temporary: manylinux images do not work with github, py36 was not dropped
1 parent d1ea6ff commit 8c1cc24

File tree

4 files changed

+79
-48
lines changed

4 files changed

+79
-48
lines changed

.github/workflows/pythonpackage.yml

Lines changed: 40 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -201,43 +201,43 @@ jobs:
201201
run: |
202202
twine upload --skip-existing dist/*
203203
204-
DeployManyLinux:
205-
needs: [ TestLinux, TestWindows ]
206-
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags/')
207-
runs-on: ubuntu-latest
208-
container:
209-
image: ${{ matrix.MANYLINUX.CONTAINER }}
210-
env:
211-
PYTHONDONTWRITEBYTECODE: 1
212-
strategy:
213-
matrix:
214-
PYTHON: [ "cp37-cp37m", "cp38-cp38", "cp39-cp39" ]
215-
MANYLINUX:
216-
- NAME: manylinux2010_x86_64
217-
CONTAINER: "quay.io/pypa/manylinux2010_x86_64"
218-
- NAME: manylinux2014_x86_64
219-
CONTAINER: "quay.io/pypa/manylinux2014_x86_64"
220-
name: "${{ matrix.PYTHON }} for ${{ matrix.MANYLINUX.NAME }}"
221-
steps:
222-
- uses: actions/checkout@v2
223-
- name: Install main dependencies
224-
run: |
225-
/opt/python/${{ matrix.PYTHON }}/bin/python -m pip install -U pip wheel setuptools
226-
/opt/python/${{ matrix.PYTHON }}/bin/pip install --upgrade -r build_requirements.txt
227-
/opt/python/${{ matrix.PYTHON }}/bin/pip install --upgrade twine
228-
- name: Build package
229-
run: /opt/python/${{ matrix.PYTHON }}/bin/python setup.py bdist_wheel clean
230-
- name: Bundle external shared libraries into the wheels
231-
run: |
232-
for whl in dist/*.whl; do
233-
echo "Repairing $whl..."
234-
auditwheel repair "$whl" -w dist/
235-
done
236-
- name: Cleanup OS specific wheels
237-
run: rm -fv dist/*-linux_*.whl
238-
- name: Deploy
239-
env:
240-
TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }}
241-
TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
242-
run: |
243-
twine upload --skip-existing dist/*
204+
# DeployManyLinux:
205+
# needs: [ TestLinux, TestWindows ]
206+
# if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags/')
207+
# runs-on: ubuntu-latest
208+
# container:
209+
# image: ${{ matrix.MANYLINUX.CONTAINER }}
210+
# env:
211+
# PYTHONDONTWRITEBYTECODE: 1
212+
# strategy:
213+
# matrix:
214+
# PYTHON: [ "cp37-cp37m", "cp38-cp38", "cp39-cp39" ]
215+
# MANYLINUX:
216+
# - NAME: manylinux2010_x86_64
217+
# CONTAINER: "quay.io/pypa/manylinux2010_x86_64"
218+
# - NAME: manylinux2014_x86_64
219+
# CONTAINER: "quay.io/pypa/manylinux2014_x86_64"
220+
# name: "${{ matrix.PYTHON }} for ${{ matrix.MANYLINUX.NAME }}"
221+
# steps:
222+
# - uses: actions/checkout@v2
223+
# - name: Install main dependencies
224+
# run: |
225+
# /opt/python/${{ matrix.PYTHON }}/bin/python -m pip install -U pip wheel setuptools
226+
# /opt/python/${{ matrix.PYTHON }}/bin/pip install --upgrade -r build_requirements.txt
227+
# /opt/python/${{ matrix.PYTHON }}/bin/pip install --upgrade twine
228+
# - name: Build package
229+
# run: /opt/python/${{ matrix.PYTHON }}/bin/python setup.py bdist_wheel clean
230+
# - name: Bundle external shared libraries into the wheels
231+
# run: |
232+
# for whl in dist/*.whl; do
233+
# echo "Repairing $whl..."
234+
# auditwheel repair "$whl" -w dist/
235+
# done
236+
# - name: Cleanup OS specific wheels
237+
# run: rm -fv dist/*-linux_*.whl
238+
# - name: Deploy
239+
# env:
240+
# TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }}
241+
# TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
242+
# run: |
243+
# twine upload --skip-existing dist/*

.travis.yml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,9 @@ install:
99
- pip install --upgrade coveralls
1010

1111
_python:
12+
- &python36
13+
name: "Python 3.6"
14+
python: "3.6"
1215
- &python37
1316
name: "Python 3.7"
1417
python: "3.7"
@@ -126,6 +129,10 @@ jobs:
126129
script:
127130
- black --check advanced_descriptors
128131

132+
- stage: test
133+
<<: *python36
134+
after_success:
135+
- coveralls
129136
- stage: test
130137
<<: *python37
131138
after_success:
@@ -139,6 +146,8 @@ jobs:
139146
after_success:
140147
- coveralls
141148

149+
- <<: *test_cythonized
150+
<<: *python36
142151
- <<: *test_cythonized
143152
<<: *python37
144153
- <<: *test_cythonized
@@ -160,6 +169,13 @@ jobs:
160169
script:
161170
- ./tools/run_docker_manylinux2014.sh advanced_descriptors "i686"
162171

172+
- stage: deploy
173+
# This prevents job from appearing in test plan unless commit is tagged:
174+
<<: *deploy
175+
name: Build universal and cythonized for x86_64 bdist_wheel. Deploy bdist.
176+
script:
177+
- ./tools/run_docker_manylinux2014.sh advanced_descriptors "x86_64"
178+
163179
- stage: deploy
164180
# This prevents job from appearing in test plan unless commit is tagged:
165181
<<: *deploy

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ build-backend="setuptools.build_meta"
1111
[tool.black]
1212
line-length = 120
1313
safe = true
14-
target-version = ["py37", "py38"]
14+
target-version = ["py36", "py37", "py38"]
1515

1616
[tool.isort]
1717
line_length = 120

tools/run_docker.sh

Lines changed: 22 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,27 @@ then
77
exit 1
88
fi
99

10-
docker pull "quay.io/pypa/manylinux2010_i686" & arch_pull_pid=$!
10+
manylinux1_image_prefix="quay.io/pypa/manylinux2010_"
11+
dock_ext_args=""
12+
declare -A docker_pull_pids=() # This syntax requires at least bash v4
1113

12-
echo
13-
echo
14-
echo waiting for docker pull pid $arch_pull_pid to complete downloading container for i686 arch...
15-
wait $arch_pull_pid # await for docker image for current arch to be pulled from hub
14+
for arch in x86_64 i686
15+
do
16+
docker pull "${manylinux1_image_prefix}${arch}" &
17+
docker_pull_pids[$arch]=$!
18+
done
1619

17-
echo Building wheel for i686 arch
18-
docker run --rm -v "$(pwd)":/io "quay.io/pypa/manylinux2010_i686" linux32 /io/tools/build-wheels.sh "$package_name"
20+
for arch in x86_64 i686
21+
do
22+
echo
23+
echo
24+
arch_pull_pid=${docker_pull_pids[$arch]}
25+
echo waiting for docker pull pid $arch_pull_pid to complete downloading container for $arch arch...
26+
wait $arch_pull_pid # await for docker image for current arch to be pulled from hub
27+
[ $arch == "i686" ] && dock_ext_args="linux32"
28+
29+
echo Building wheel for $arch arch
30+
docker run --rm -v "$(pwd)":/io "${manylinux1_image_prefix}${arch}" $dock_ext_args /io/tools/build-wheels.sh "$package_name"
31+
32+
dock_ext_args="" # Reset docker args, just in case
33+
done

0 commit comments

Comments
 (0)