Skip to content

Commit

Permalink
add wheels for Python2.7 on Windows (#47)
Browse files Browse the repository at this point in the history
  • Loading branch information
maxbachmann authored Oct 22, 2020
1 parent a0a84f9 commit 9b64ad2
Show file tree
Hide file tree
Showing 3 changed files with 72 additions and 4 deletions.
72 changes: 70 additions & 2 deletions .github/workflows/pythonbuild.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ jobs:
pip install pytest
pytest
build_wheels:
needs: [test_python]
name: Build wheel on ${{ matrix.os }}
Expand All @@ -68,15 +69,82 @@ jobs:
- name: Install cibuildwheel
run: |
python -m pip install git+https://github.com/joerick/cibuildwheel.git@f6eaa9f
- name: Build wheels
run: |
python -m cibuildwheel --output-dir wheelhouse
- uses: actions/upload-artifact@v2
with:
path: ./wheelhouse/*.whl


build_wheels_python27_windows_64:
needs: [test_python]
name: Build wheel for python2.7 on windows-latest 64 bit
runs-on: windows-latest
env:
CIBW_BUILD: cp27-win_amd64
DISTUTILS_USE_SDK: 1
MSSdk: 1

steps:
- uses: actions/checkout@v1
with:
submodules: 'true'

- uses: actions/setup-python@v1
name: Install Python
with:
python-version: '3.7'

- name: Install cibuildwheel
run: |
python -m pip install git+https://github.com/joerick/cibuildwheel.git@f6eaa9f
- uses: ilammy/msvc-dev-cmd@v1

- name: Build 64-bit wheel
run: python -m cibuildwheel --output-dir wheelhouse

- uses: actions/upload-artifact@v2
with:
path: ./wheelhouse/*.whl


build_wheels_python27_windows_32:
needs: [test_python]
name: Build wheel for python2.7 on windows-latest 32 bit
runs-on: windows-latest
env:
CIBW_BUILD: cp27-win32 pp27-win32
DISTUTILS_USE_SDK: 1
MSSdk: 1

steps:
- uses: actions/checkout@v1
with:
submodules: 'true'

- uses: actions/setup-python@v1
name: Install Python
with:
python-version: '3.7'

- name: Install cibuildwheel
run: |
python -m pip install git+https://github.com/joerick/cibuildwheel.git@f6eaa9f
- uses: ilammy/msvc-dev-cmd@v1
with:
arch: x86

- name: Build 64-bit wheel
run: python -m cibuildwheel --output-dir wheelhouse

- uses: actions/upload-artifact@v2
with:
path: ./wheelhouse/*.whl


build_sdist:
needs: [test_python]
name: Build source distribution
Expand Down Expand Up @@ -105,7 +173,7 @@ jobs:

deploy-wheels:
if: github.event_name == 'release' && github.event.action == 'published'
needs: [build_wheels, build_sdist]
needs: [build_wheels, build_wheels_python27_windows_64, build_wheels_python27_windows_32, build_sdist]
name: deploy wheels to pypi
runs-on: ubuntu-18.04

Expand Down
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
0.12.3
0.12.4
2 changes: 1 addition & 1 deletion src/rapidfuzz/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@
"""
__author__ = "Max Bachmann"
__license__ = "MIT"
__version__ = "0.12.3"
__version__ = "0.12.4"

from rapidfuzz import process, fuzz, levenshtein, utils

0 comments on commit 9b64ad2

Please sign in to comment.