Skip to content

Commit

Permalink
Add 3.13 builds (#97)
Browse files Browse the repository at this point in the history
* Add 3.13 builds

* Update Cython version

Cython actually did jump from 0.29 to 3.0, there are no versions in
between.

* Update cibuildwheel

Also fix mac versions
  • Loading branch information
polm authored Oct 31, 2024
1 parent cba9403 commit 38f679b
Show file tree
Hide file tree
Showing 8 changed files with 16 additions and 10 deletions.
2 changes: 1 addition & 1 deletion .github/macos-build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ sudo make install
cd ../..

python -m pip install --upgrade setuptools wheel pip setuptools-scm
python -m pip install cibuildwheel==2.17.0
python -m pip install cibuildwheel==2.21.3
pip install -r requirements.txt

python -m cibuildwheel --platform macos --archs x86_64,arm64,universal2 --output-dir dist
2 changes: 1 addition & 1 deletion .github/workflows/entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ make install
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/lib/

# Build the wheels
Python="cp38-cp38 cp39-cp39 cp310-cp310 cp311-cp311 cp312-cp312"
Python="cp38-cp38 cp39-cp39 cp310-cp310 cp311-cp311 cp312-cp312 cp313-cp313"
for PYVER in $Python; do
# install cython first
/opt/python/$PYVER/bin/pip install cython setuptools-scm
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/manylinux1.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ jobs:
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '>=3.8 <3.13'
python-version: '>=3.8 <3.14'
- name: install MeCab
run: |
git clone --depth=1 https://github.com/taku910/mecab.git
Expand Down Expand Up @@ -39,7 +39,7 @@ jobs:
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '>=3.8 <3.13'
python-version: '>=3.8 <3.14'
- name: build array of wheels
uses: ./.github/workflows/actions/build-manylinux/
- name: Upload Wheels
Expand All @@ -66,7 +66,7 @@ jobs:
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '>=3.8 <3.13'
python-version: '>=3.8 <3.14'
- name: Set up QEMU
id: qemu
uses: docker/setup-qemu-action@v1
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/osx.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
- name: Set up python
uses: actions/setup-python@v5
with:
python-version: '>=3.7 <3.13'
python-version: '>=3.8 <3.14'
- name: Download and build MeCab
shell: bash
run: |
Expand Down
5 changes: 4 additions & 1 deletion .github/workflows/test_manylinux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ['3.8', '3.9', '3.10', '3.11', '3.12']
python-version: ['3.8', '3.9', '3.10', '3.11', '3.12', '3.13']
include:
- python-version: '3.8'
py-short: '38'
Expand All @@ -25,6 +25,9 @@ jobs:
- python-version: '3.12'
py-short: 312
py-short2: 312
- python-version: '3.13'
py-short: 313
py-short2: 313
env:
PYTHON: /opt/python/cp${{ matrix.py-short }}-cp${{ matrix.py-short2 }}/bin/python
steps:
Expand Down
5 changes: 4 additions & 1 deletion .github/workflows/windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
strategy:
max-parallel: 5
matrix:
python-version: ['3.8', '3.9', '3.10', '3.11', '3.12']
python-version: ['3.8', '3.9', '3.10', '3.11', '3.12', '3.13']
include:
- python-version: '3.8'
py-short: '38'
Expand All @@ -30,6 +30,9 @@ jobs:
- python-version: '3.12'
py-short: 312
py-short2: 312
- python-version: '3.13'
py-short: 313
py-short2: 313
steps:
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
Expand Down
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
Cython~=0.29.35
Cython~=3.0.11
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,4 +56,4 @@
'unidic': ['unidic'],
'unidic-lite': ['unidic-lite'],
},
setup_requires=['wheel', 'Cython~=0.29.35', 'setuptools_scm'])
setup_requires=['wheel', 'Cython~=3.0.11', 'setuptools_scm'])

0 comments on commit 38f679b

Please sign in to comment.