Skip to content

Commit

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

* Update cibuildwheel

* Upgrade upload-artifact action

* Add version to windows wheel so artifact name is unique

* Fix version line; remove 3.7

* Try fixing name for manylinux wheels

The name collides on the build and upload-artifact is unhappy.
  • Loading branch information
polm authored Oct 31, 2024
1 parent bd5398d commit 1929642
Show file tree
Hide file tree
Showing 7 changed files with 16 additions and 9 deletions.
2 changes: 1 addition & 1 deletion .github/macos-build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,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

# don't bother with pypy wheels
export CIBW_SKIP="pp*"
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ make install
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/lib/

# Build the wheels
for PYVER in cp37-cp37m cp38-cp38 cp39-cp39 cp310-cp310 cp311-cp311 cp312-cp312; do
for PYVER in cp38-cp38 cp39-cp39 cp310-cp310 cp311-cp311 cp312-cp312 cp313-cp313; do
# build the wheels
/opt/python/$PYVER/bin/pip wheel /github/workspace -w /github/workspace/wheels || { echo "Failed while buiding $PYVER wheel"; exit 1; }
done
Expand Down
6 changes: 4 additions & 2 deletions .github/workflows/manylinux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ jobs:
3.10
3.11
3.12
3.13
- name: Cache mecab
id: cache-mecab
uses: actions/cache@v3
Expand Down Expand Up @@ -61,6 +62,7 @@ jobs:
3.10
3.11
3.12
3.13
- name: Cache mecab
id: cache-mecab
Expand Down Expand Up @@ -89,9 +91,9 @@ jobs:
uses: ./.github/workflows/actions_aarch64/build_wheels/

- name: Upload Wheels
uses: actions/upload-artifact@v1
uses: actions/upload-artifact@v4
with:
name: manylinux-wheels
name: manylinux-wheels-${{ matrix.arch }}
path: manylinux-wheels
- name: Publish to PyPI if tagged
if: startsWith(github.ref, 'refs/tags') && github.repository_owner == 'polm'
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/osx.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,13 @@ jobs:
3.10
3.11
3.12
3.13
- name: Download and build MeCab
shell: bash
run: |
.github/macos-build.sh
- name: Upload Wheels
uses: actions/upload-artifact@v1
uses: actions/upload-artifact@v4
with:
name: osx-wheels
path: dist
Expand Down
2 changes: 1 addition & 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" ]
env:
PYTHON: python${{ matrix.python-version }}
steps:
Expand Down
9 changes: 6 additions & 3 deletions .github/workflows/windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ jobs:
strategy:
max-parallel: 4
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
steps:
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
Expand All @@ -50,9 +53,9 @@ jobs:
run: |
python setup.py bdist_wheel
- name: Upload Wheel
uses: actions/upload-artifact@v1
uses: actions/upload-artifact@v4
with:
name: win-wheels
name: win-wheels-${{ matrix.python-version }}
path: dist
- name: Check wheels
shell: bash
Expand Down
1 change: 1 addition & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -231,6 +231,7 @@ def _get_pkg_data_files(self, package):
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Intended Audience :: Developers",
"Intended Audience :: Science/Research",
"Natural Language :: Japanese",
Expand Down

0 comments on commit 1929642

Please sign in to comment.