Skip to content

Commit 9b64ad2

Browse files
authored
add wheels for Python2.7 on Windows (#47)
1 parent a0a84f9 commit 9b64ad2

File tree

3 files changed

+72
-4
lines changed

3 files changed

+72
-4
lines changed

.github/workflows/pythonbuild.yml

Lines changed: 70 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ jobs:
4444
pip install pytest
4545
pytest
4646
47+
4748
build_wheels:
4849
needs: [test_python]
4950
name: Build wheel on ${{ matrix.os }}
@@ -68,15 +69,82 @@ jobs:
6869
- name: Install cibuildwheel
6970
run: |
7071
python -m pip install git+https://github.com/joerick/cibuildwheel.git@f6eaa9f
71-
7272
- name: Build wheels
7373
run: |
7474
python -m cibuildwheel --output-dir wheelhouse
75+
- uses: actions/upload-artifact@v2
76+
with:
77+
path: ./wheelhouse/*.whl
78+
79+
80+
build_wheels_python27_windows_64:
81+
needs: [test_python]
82+
name: Build wheel for python2.7 on windows-latest 64 bit
83+
runs-on: windows-latest
84+
env:
85+
CIBW_BUILD: cp27-win_amd64
86+
DISTUTILS_USE_SDK: 1
87+
MSSdk: 1
88+
89+
steps:
90+
- uses: actions/checkout@v1
91+
with:
92+
submodules: 'true'
93+
94+
- uses: actions/setup-python@v1
95+
name: Install Python
96+
with:
97+
python-version: '3.7'
98+
99+
- name: Install cibuildwheel
100+
run: |
101+
python -m pip install git+https://github.com/joerick/cibuildwheel.git@f6eaa9f
102+
103+
- uses: ilammy/msvc-dev-cmd@v1
104+
105+
- name: Build 64-bit wheel
106+
run: python -m cibuildwheel --output-dir wheelhouse
75107

76108
- uses: actions/upload-artifact@v2
77109
with:
78110
path: ./wheelhouse/*.whl
79111

112+
113+
build_wheels_python27_windows_32:
114+
needs: [test_python]
115+
name: Build wheel for python2.7 on windows-latest 32 bit
116+
runs-on: windows-latest
117+
env:
118+
CIBW_BUILD: cp27-win32 pp27-win32
119+
DISTUTILS_USE_SDK: 1
120+
MSSdk: 1
121+
122+
steps:
123+
- uses: actions/checkout@v1
124+
with:
125+
submodules: 'true'
126+
127+
- uses: actions/setup-python@v1
128+
name: Install Python
129+
with:
130+
python-version: '3.7'
131+
132+
- name: Install cibuildwheel
133+
run: |
134+
python -m pip install git+https://github.com/joerick/cibuildwheel.git@f6eaa9f
135+
136+
- uses: ilammy/msvc-dev-cmd@v1
137+
with:
138+
arch: x86
139+
140+
- name: Build 64-bit wheel
141+
run: python -m cibuildwheel --output-dir wheelhouse
142+
143+
- uses: actions/upload-artifact@v2
144+
with:
145+
path: ./wheelhouse/*.whl
146+
147+
80148
build_sdist:
81149
needs: [test_python]
82150
name: Build source distribution
@@ -105,7 +173,7 @@ jobs:
105173

106174
deploy-wheels:
107175
if: github.event_name == 'release' && github.event.action == 'published'
108-
needs: [build_wheels, build_sdist]
176+
needs: [build_wheels, build_wheels_python27_windows_64, build_wheels_python27_windows_32, build_sdist]
109177
name: deploy wheels to pypi
110178
runs-on: ubuntu-18.04
111179

VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
0.12.3
1+
0.12.4

src/rapidfuzz/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,6 @@
33
"""
44
__author__ = "Max Bachmann"
55
__license__ = "MIT"
6-
__version__ = "0.12.3"
6+
__version__ = "0.12.4"
77

88
from rapidfuzz import process, fuzz, levenshtein, utils

0 commit comments

Comments
 (0)