Skip to content

Commit 9c683ad

Browse files
authored
Make wheels build for Python 3.9 (#24)
1 parent 890659a commit 9c683ad

File tree

3 files changed

+11
-6
lines changed

3 files changed

+11
-6
lines changed

.github/workflows/pytest-builds.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ jobs:
1313
strategy:
1414
fail-fast: false
1515
matrix:
16-
python-version: [3.6, 3.7, 3.8]
16+
python-version: [3.7, 3.8, 3.9]
1717
arch: ['x64', 'x86']
1818

1919
steps:
@@ -49,7 +49,7 @@ jobs:
4949
strategy:
5050
fail-fast: false
5151
matrix:
52-
python-version: [3.6, 3.7, 3.8]
52+
python-version: [3.7, 3.8, 3.9]
5353

5454
steps:
5555
- uses: actions/checkout@v2
@@ -83,7 +83,7 @@ jobs:
8383
strategy:
8484
fail-fast: false
8585
matrix:
86-
python-version: [3.6, 3.7, 3.8]
86+
python-version: [3.7, 3.8, 3.9]
8787

8888
steps:
8989
- uses: actions/checkout@v2

.github/workflows/wheel-builds.yml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,13 @@ jobs:
99
name: Build wheels for ${{ matrix.os }}
1010
runs-on: ${{ matrix.os }}
1111
env:
12-
CIBW_BUILD: "cp36-* cp37-* cp38-*"
12+
CIBW_BUILD: "cp3*-*"
13+
CIBW_SKIP: "cp35-*"
1314
strategy:
15+
fail-fast: false
1416
matrix:
1517
os: [ubuntu-latest, windows-latest, macos-latest]
16-
python-version: [3.8]
18+
python-version: [3.9]
1719

1820
steps:
1921
- uses: actions/checkout@v2
@@ -28,7 +30,7 @@ jobs:
2830
- name: Install cibuildwheel
2931

3032
run: |
31-
python -m pip install cibuildwheel==1.4.2
33+
python -m pip install cibuildwheel==1.10.0
3234
3335
- name: Build wheels
3436
run: |

setup.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,9 @@ def get_mscv_args():
5151
'/D_UNICODE',
5252
'/DUNICODE',
5353
]
54+
if sys.version_info.major == 3 and sys.version_info.minor >= 9:
55+
flags.remove('/wd"4335"')
56+
5457
# Set the architecture based on system architecture and Python
5558
is_x64 = platform.architecture()[0] == '64bit'
5659
if is_x64 and sys.maxsize > 2**32:

0 commit comments

Comments
 (0)