Publish pre-built wheels for Python 3.13 (#1485)

This commit is contained in:
Fangjun Kuang
2024-10-28 10:37:50 +08:00
committed by GitHub
parent 91e090ff86
commit 9eb493f6bf
13 changed files with 28 additions and 15 deletions

View File

@@ -21,7 +21,7 @@ jobs:
fail-fast: false
matrix:
os: [ubuntu-latest]
python-version: ["cp37", "cp38", "cp39", "cp310", "cp311", "cp312"]
python-version: ["cp37", "cp38", "cp39", "cp310", "cp311", "cp312", "cp313"]
manylinux: [manylinux2014] #, manylinux_2_28]
steps:
@@ -35,7 +35,7 @@ jobs:
# see https://cibuildwheel.readthedocs.io/en/stable/changelog/
# for a list of versions
- name: Build wheels
uses: pypa/cibuildwheel@v2.16.5
uses: pypa/cibuildwheel@v2.21.3
env:
CIBW_BEFORE_ALL: |
git clone --depth 1 --branch v1.2.12 https://github.com/alsa-project/alsa-lib

View File

@@ -21,7 +21,7 @@ jobs:
fail-fast: false
matrix:
os: [ubuntu-20.04]
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", "3.12", "3.13"]
steps:
- uses: actions/checkout@v4

View File

@@ -21,7 +21,7 @@ jobs:
fail-fast: false
matrix:
os: [ubuntu-latest]
python-version: ["cp37", "cp38", "cp39", "cp310", "cp311", "cp312"]
python-version: ["cp37", "cp38", "cp39", "cp310", "cp311", "cp312", "cp313"]
manylinux: [manylinux2014] #, manylinux_2_28]
@@ -31,7 +31,7 @@ jobs:
# see https://cibuildwheel.readthedocs.io/en/stable/changelog/
# for a list of versions
- name: Build wheels
uses: pypa/cibuildwheel@v2.16.5
uses: pypa/cibuildwheel@v2.21.3
env:
CIBW_BEFORE_ALL: |
git clone --depth 1 --branch v1.2.12 https://github.com/alsa-project/alsa-lib

View File

@@ -21,13 +21,13 @@ jobs:
fail-fast: false
matrix:
os: [macos-13]
python-version: ["cp38", "cp39", "cp310", "cp311", "cp312"]
python-version: ["cp38", "cp39", "cp310", "cp311", "cp312", "cp313"]
steps:
- uses: actions/checkout@v4
- name: Build wheels
uses: pypa/cibuildwheel@v2.15.0
uses: pypa/cibuildwheel@v2.21.3
env:
CIBW_BUILD: "${{ matrix.python-version}}-* "
CIBW_ENVIRONMENT: SHERPA_ONNX_CMAKE_ARGS="-DCMAKE_OSX_ARCHITECTURES='arm64'"

View File

@@ -21,13 +21,13 @@ jobs:
fail-fast: false
matrix:
os: [macos-latest]
python-version: ["cp38", "cp39", "cp310", "cp311", "cp312"]
python-version: ["cp38", "cp39", "cp310", "cp311", "cp312", "cp313"]
steps:
- uses: actions/checkout@v4
- name: Build wheels
uses: pypa/cibuildwheel@v2.15.0
uses: pypa/cibuildwheel@v2.21.3
env:
CIBW_BUILD: "${{ matrix.python-version}}-* "
CIBW_ENVIRONMENT: SHERPA_ONNX_CMAKE_ARGS="-DCMAKE_OSX_ARCHITECTURES='arm64;x86_64'"

View File

@@ -21,7 +21,7 @@ jobs:
fail-fast: false
matrix:
os: [macos-13]
python-version: ["cp37", "cp38", "cp39", "cp310", "cp311", "cp312"]
python-version: ["cp37", "cp38", "cp39", "cp310", "cp311", "cp312", "cp313"]
steps:
- uses: actions/checkout@v4
@@ -42,7 +42,7 @@ jobs:
- name: Build wheels
if: matrix.python-version != 'cp37'
uses: pypa/cibuildwheel@v2.15.0
uses: pypa/cibuildwheel@v2.21.3
env:
CIBW_BUILD: "${{ matrix.python-version}}-* "
CIBW_ENVIRONMENT: SHERPA_ONNX_CMAKE_ARGS="-DCMAKE_OSX_ARCHITECTURES='x86_64'"

View File

@@ -21,7 +21,7 @@ jobs:
fail-fast: false
matrix:
os: [windows-latest]
python-version: ["cp37", "cp38", "cp39", "cp310", "cp311", "cp312"]
python-version: ["cp37", "cp38", "cp39", "cp310", "cp311", "cp312", "cp313"]
steps:
- uses: actions/checkout@v4
@@ -29,7 +29,7 @@ jobs:
# see https://cibuildwheel.readthedocs.io/en/stable/changelog/
# for a list of versions
- name: Build wheels
uses: pypa/cibuildwheel@v2.16.5
uses: pypa/cibuildwheel@v2.21.3
env:
CIBW_ENVIRONMENT: SHERPA_ONNX_CMAKE_ARGS="-A Win32"
CIBW_BUILD: "${{ matrix.python-version}}-* "

View File

@@ -21,7 +21,7 @@ jobs:
fail-fast: false
matrix:
os: [windows-2019]
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", "3.12", "3.13"]
steps:
- uses: actions/checkout@v4

View File

@@ -21,7 +21,7 @@ jobs:
fail-fast: false
matrix:
os: [windows-2019]
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", "3.12", "3.13"]
steps:
- uses: actions/checkout@v4

View File

@@ -54,6 +54,9 @@ jobs:
- os: macos-latest
python-version: "3.12"
- os: macos-latest
python-version: "3.13"
steps:
- uses: actions/checkout@v4
with:

View File

@@ -53,6 +53,8 @@ jobs:
python-version: "3.11"
- os: ubuntu-22.04
python-version: "3.12"
- os: ubuntu-22.04
python-version: "3.13"
steps:
- uses: actions/checkout@v4

View File

@@ -140,6 +140,7 @@ jobs:
export PATH=/c/hostedtoolcache/windows/Python/3.10.11/x64/bin:$PATH
export PATH=/c/hostedtoolcache/windows/Python/3.11.9/x64/bin:$PATH
export PATH=/c/hostedtoolcache/windows/Python/3.12.7/x64/bin:$PATH
export PATH=/c/hostedtoolcache/windows/Python/3.13.0/x64/bin:$PATH
which sherpa-onnx
sherpa-onnx --help

View File

@@ -42,6 +42,8 @@ jobs:
python-version: "3.11"
- os: ubuntu-22.04
python-version: "3.12"
- os: ubuntu-22.04
python-version: "3.13"
- os: macos-12
python-version: "3.8"
@@ -55,6 +57,8 @@ jobs:
- os: macos-14
python-version: "3.12"
- os: macos-14
python-version: "3.13"
- os: windows-2019
python-version: "3.7"
@@ -69,6 +73,8 @@ jobs:
python-version: "3.11"
- os: windows-2022
python-version: "3.12"
- os: windows-2022
python-version: "3.13"
steps:
- uses: actions/checkout@v4
@@ -105,6 +111,7 @@ jobs:
export PATH=/c/hostedtoolcache/windows/Python/3.10.11/x64/bin:$PATH
export PATH=/c/hostedtoolcache/windows/Python/3.11.9/x64/bin:$PATH
export PATH=/c/hostedtoolcache/windows/Python/3.12.7/x64/bin:$PATH
export PATH=/c/hostedtoolcache/windows/Python/3.13.0/x64/bin:$PATH
sherpa-onnx --help
sherpa-onnx-keyword-spotter --help