Skip to content

Commit 7a53f48

Browse files
Pin the version of cibuildwheel to one that still supports Python2.7.
1 parent 34485e5 commit 7a53f48

1 file changed

Lines changed: 32 additions & 34 deletions

File tree

‎.github/workflows/code.yml‎

Lines changed: 32 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ jobs:
1414
- name: Install Python
1515
uses: actions/setup-python@v2
1616
with:
17-
python-version: '3.7'
17+
python-version: "3.7"
1818

1919
- name: Install Python Dependencies
2020
run: pip install flake8
@@ -33,37 +33,36 @@ jobs:
3333
python: [cp27, cp37, cp38, cp39]
3434

3535
exclude:
36-
- os: windows-latest
37-
# No cothread or asyncio so doesn't work
38-
python: cp27
36+
- os: windows-latest
37+
# No cothread or asyncio so doesn't work
38+
python: cp27
3939

4040
include:
41-
- os: ubuntu-latest
42-
# Put coverage in the output dir mounted in docker
43-
cov_file: /output/coverage.xml
44-
test_requires: cothread pytest-asyncio aioca
45-
# Build an sdist here so it has the right line endings
46-
sdist: true
47-
48-
- os: windows-latest
49-
cov_file: '{project}/dist/coverage.xml'
50-
# cothread doesn't work on windows
51-
test_requires: pytest-asyncio aioca
52-
53-
- os: macos-latest
54-
cov_file: '{project}/dist/coverage.xml'
55-
test_requires: cothread pytest-asyncio aioca
56-
57-
- os: ubuntu-latest
58-
python: cp27
59-
# asyncio doesn't work on Python2.7
60-
test_requires: cothread
61-
62-
- os: macos-latest
63-
python: cp27
64-
# asyncio doesn't work on Python2.7
65-
test_requires: cothread
66-
41+
- os: ubuntu-latest
42+
# Put coverage in the output dir mounted in docker
43+
cov_file: /output/coverage.xml
44+
test_requires: cothread pytest-asyncio aioca
45+
# Build an sdist here so it has the right line endings
46+
sdist: true
47+
48+
- os: windows-latest
49+
cov_file: "{project}/dist/coverage.xml"
50+
# cothread doesn't work on windows
51+
test_requires: pytest-asyncio aioca
52+
53+
- os: macos-latest
54+
cov_file: "{project}/dist/coverage.xml"
55+
test_requires: cothread pytest-asyncio aioca
56+
57+
- os: ubuntu-latest
58+
python: cp27
59+
# asyncio doesn't work on Python2.7
60+
test_requires: cothread
61+
62+
- os: macos-latest
63+
python: cp27
64+
# asyncio doesn't work on Python2.7
65+
test_requires: cothread
6766

6867
steps:
6968
- name: Checkout Source
@@ -74,10 +73,10 @@ jobs:
7473
- name: Install Python
7574
uses: actions/setup-python@v2
7675
with:
77-
python-version: '3.7'
76+
python-version: "3.7"
7877

7978
- name: Install Python Dependencies
80-
run: pip install build cibuildwheel
79+
run: pip install build cibuildwheel==1.* # The 2.* releases dropped Python2 support.
8180

8281
- name: Build Sdist
8382
if: matrix.sdist
@@ -91,7 +90,7 @@ jobs:
9190
CIBW_TEST_COMMAND: pytest --cov=softioc {project}/tests --cov-report xml:${{ matrix.cov_file }}
9291
# Disable auditwheel as it isn't compatible with setuptools_dso approach
9392
# https://github.com/mdavidsaver/setuptools_dso/issues/17
94-
CIBW_REPAIR_WHEEL_COMMAND: ''
93+
CIBW_REPAIR_WHEEL_COMMAND: ""
9594
CIBW_MANYLINUX_X86_64_IMAGE: manylinux1
9695

9796
- name: Upload Wheel and Sdist
@@ -125,4 +124,3 @@ jobs:
125124
TWINE_USERNAME: __token__
126125
TWINE_PASSWORD: ${{ secrets.pypi_token }}
127126
run: twine upload dist/*
128-

0 commit comments

Comments
 (0)