Skip to content

Commit 3b3abbf

Browse files
CandiedCodepolm
andauthored
build: add support for python 3.14 (#111)
* build: add support for python 3.14 * Upgrade cibuildwheel in osx build * Add 3.14 to entrypoint script --------- Co-authored-by: Paul O'Leary McCann <[email protected]>
1 parent 5575170 commit 3b3abbf

File tree

7 files changed

+13
-7
lines changed

7 files changed

+13
-7
lines changed

.github/macos-build.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ sudo make install
5151
cd ../..
5252

5353
python -m pip install --upgrade setuptools wheel pip setuptools-scm
54-
python -m pip install cibuildwheel==2.21.3
54+
python -m pip install cibuildwheel==3.2.1
5555

5656
# don't bother with pypy wheels
5757
export CIBW_SKIP="pp*"

.github/workflows/entrypoint.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ make install
1818
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/lib/
1919

2020
# Build the wheels
21-
for PYVER in cp38-cp38 cp39-cp39 cp310-cp310 cp311-cp311 cp312-cp312 cp313-cp313; do
21+
for PYVER in cp38-cp38 cp39-cp39 cp310-cp310 cp311-cp311 cp312-cp312 cp313-cp313 cp314-cp314; do
2222
# build the wheels
2323
/opt/python/$PYVER/bin/pip wheel /github/workspace -w /github/workspace/wheels || { echo "Failed while buiding $PYVER wheel"; exit 1; }
2424
done

.github/workflows/manylinux.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ jobs:
1717
3.11
1818
3.12
1919
3.13
20+
3.14
2021
- name: Cache mecab
2122
id: cache-mecab
2223
uses: actions/cache@v4
@@ -63,6 +64,7 @@ jobs:
6364
3.11
6465
3.12
6566
3.13
67+
3.14
6668
6769
- name: Cache mecab
6870
id: cache-mecab

.github/workflows/osx.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ jobs:
1717
3.11
1818
3.12
1919
3.13
20+
3.14
2021
- name: Download and build MeCab
2122
shell: bash
2223
run: |

.github/workflows/test_manylinux.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ jobs:
88
runs-on: ubuntu-latest
99
strategy:
1010
matrix:
11-
python-version: [ 3.8, 3.9, "3.10", "3.11", "3.12", "3.13" ]
11+
python-version: [ 3.8, 3.9, "3.10", "3.11", "3.12", "3.13", "3.14" ]
1212
env:
1313
PYTHON: python${{ matrix.python-version }}
1414
steps:

.github/workflows/windows.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ jobs:
88
strategy:
99
max-parallel: 4
1010
matrix:
11-
python-version: [3.8, 3.9, "3.10", "3.11", "3.12", "3.13"]
11+
python-version: [3.8, 3.9, "3.10", "3.11", "3.12", "3.13", "3.14"]
1212
include:
1313
- python-version: 3.8
1414
py-short: 38
@@ -28,6 +28,9 @@ jobs:
2828
- python-version: "3.13"
2929
py-short: 313
3030
py-short2: 313
31+
- python-version: "3.14"
32+
py-short: 314
33+
py-short2: 314
3134
steps:
3235
- uses: actions/checkout@v4
3336
- name: Set up Python ${{ matrix.python-version }}

setup.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
from setuptools import setup, Extension
88
from setuptools.command.build_ext import build_ext as _build_ext
99
from setuptools.command.build_py import build_py as _build_py
10-
from distutils import log as setup_log
10+
1111

1212
SRCDIR = os.path.abspath(os.path.dirname(__file__))
1313
USE_BUNDLED_LIBMECAB = "BUNDLE_LIBMECAB" in os.environ
@@ -139,8 +139,7 @@ def discard_swig_wrappers(ext):
139139
except (OSError, IOError):
140140
swig_py_wrapper = None
141141
if swig_py_wrapper is not None:
142-
setup_log.info("discarding wrapper module {} for {}"
143-
.format(swig_py_wrapper, src))
142+
print(f"discarding wrapper module {swig_py_wrapper} for {src}")
144143
os.unlink(swig_py_wrapper)
145144

146145

@@ -232,6 +231,7 @@ def _get_pkg_data_files(self, package):
232231
"Programming Language :: Python :: 3.11",
233232
"Programming Language :: Python :: 3.12",
234233
"Programming Language :: Python :: 3.13",
234+
"Programming Language :: Python :: 3.14",
235235
"Intended Audience :: Developers",
236236
"Intended Audience :: Science/Research",
237237
"Natural Language :: Japanese",

0 commit comments

Comments
 (0)