Skip to content

Commit

Permalink
package for Python 3.12
Browse files Browse the repository at this point in the history
  • Loading branch information
maxbachmann authored Sep 4, 2023
1 parent d03dbc2 commit d1cfccc
Show file tree
Hide file tree
Showing 5 changed files with 18 additions and 13 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/branchbuild.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install numpy rapidfuzz_capi Cython==3.0.0
pip install numpy rapidfuzz_capi Cython==3.0.2
- name: Generate cython
run: |
Expand Down Expand Up @@ -94,7 +94,7 @@ jobs:
strategy:
fail-fast: false
matrix:
python-version: ["3.7", "3.8", "3.9", "3.10", "3.11", "3.12"]
python-version: ["3.7", "3.8", "3.9", "3.10", "3.11"]
os: [ubuntu-latest, windows-latest, macos-latest]

steps:
Expand Down
14 changes: 7 additions & 7 deletions .github/workflows/releasebuild.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ jobs:
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install pytest hypothesis pandas mypy rapidfuzz_capi Cython==3.0.0
pip install pytest hypothesis pandas mypy rapidfuzz_capi Cython==3.0.2
# The cythonized files allow installation from the sdist without cython
- name: Generate cython
Expand Down Expand Up @@ -60,7 +60,7 @@ jobs:
fail-fast: false
matrix:
arch: [auto32, auto64, ARM64]
python_tag: ["cp37-*", "cp38-*", "cp39-*", "cp310-*", "cp311-*", "pp37-*", "pp38-*", "pp39-*"]
python_tag: ["cp37-*", "cp38-*", "cp39-*", "cp310-*", "cp311-*", "cp312-*", "pp37-*", "pp38-*", "pp39-*"]
exclude:
# PyPy only supports x86_64 on Windows
- arch: auto32
Expand Down Expand Up @@ -101,7 +101,7 @@ jobs:
- uses: actions/setup-python@v4

- name: Build wheels
uses: pypa/cibuildwheel@v2.12.1
uses: pypa/cibuildwheel@v2.15.0
with:
package-dir: rapidfuzz.tar.gz
output-dir: wheelhouse
Expand All @@ -119,7 +119,7 @@ jobs:
fail-fast: false
matrix:
arch: [x86_64, arm64, universal2]
python_tag: ["cp37-*", "cp38-*", "cp39-*", "cp310-*", "cp311-*", "pp37-*", "pp38-*", "pp39-*"]
python_tag: ["cp37-*", "cp38-*", "cp39-*", "cp310-*", "cp311-*", "cp312-*", "pp37-*", "pp38-*", "pp39-*"]
exclude:
# MacOS Arm only supported since Python 3.8
- arch: arm64
Expand Down Expand Up @@ -160,7 +160,7 @@ jobs:
run: cp dist/*.tar.gz rapidfuzz.tar.gz

- name: Build wheels
uses: pypa/cibuildwheel@v2.12.1
uses: pypa/cibuildwheel@v2.15.0
with:
package-dir: rapidfuzz.tar.gz
output-dir: wheelhouse
Expand All @@ -178,7 +178,7 @@ jobs:
fail-fast: false
matrix:
arch: [auto, aarch64, ppc64le, s390x]
python_tag: ["cp37-*", "cp38-*", "cp39-*", "cp310-*", "cp311-*", "pp37-*", "pp38-*", "pp39-*"]
python_tag: ["cp37-*", "cp38-*", "cp39-*", "cp310-*", "cp311-*", "cp312-*", "pp37-*", "pp38-*", "pp39-*"]
exclude:
# PyPy builds not available for these platforms
- arch: ppc64le
Expand Down Expand Up @@ -217,7 +217,7 @@ jobs:
name: Set up QEMU

- name: Build wheel
uses: pypa/cibuildwheel@v2.12.1
uses: pypa/cibuildwheel@v2.15.0
with:
package-dir: rapidfuzz.tar.gz
output-dir: wheelhouse
Expand Down
9 changes: 7 additions & 2 deletions CHANGELOG.rst
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,13 @@ Changelog
^^^^^^^^^^^^^^^^^^^^
Changed
~~~~~~~
- upgrade to ``Cython==3.0.2``
- implement the remaining missing features from the C++ implementation in the pure Python implementation

Added
~~~~~
- added support for Python 3.12

[3.2.0] - 2023-08-02
^^^^^^^^^^^^^^^^^^^^
Changed
Expand Down Expand Up @@ -244,7 +249,7 @@ Performance

Fixed
~~~~~
* ignore missing pandas in Python3.11 tests
* ignore missing pandas in Python 3.11 tests

[2.9.0] - 2022-09-16
^^^^^^^^^^^^^^^^^^^^
Expand Down Expand Up @@ -317,7 +322,7 @@ Fixed
^^^^^^^^^^^^^^^^^^^^
Changed
~~~~~~~
* Added support for Python3.11
* Added support for Python 3.11

[2.4.3] - 2022-08-08
^^^^^^^^^^^^^^^^^^^^
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
requires = [
"setuptools>=42",
"scikit-build~=0.17.0",
"Cython==3.0.0"
"Cython==3.0.2"
]
build-backend = "backend"
backend-path = ["_custom_build"]
Expand Down
2 changes: 1 addition & 1 deletion tools/sdist.patch
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ index 77671b1..7692f90 100644
requires = [
"setuptools>=42",
- "scikit-build~=0.17.0",
- "Cython==3.0.0"
- "Cython==3.0.2"
+ "scikit-build~=0.17.0"
]
build-backend = "backend"
Expand Down

0 comments on commit d1cfccc

Please sign in to comment.