Fangjun Kuang
Committed by GitHub

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

@@ -21,7 +21,7 @@ jobs: @@ -21,7 +21,7 @@ jobs:
21 fail-fast: false 21 fail-fast: false
22 matrix: 22 matrix:
23 os: [ubuntu-latest] 23 os: [ubuntu-latest]
24 - python-version: ["cp37", "cp38", "cp39", "cp310", "cp311", "cp312"] 24 + python-version: ["cp37", "cp38", "cp39", "cp310", "cp311", "cp312", "cp313"]
25 manylinux: [manylinux2014] #, manylinux_2_28] 25 manylinux: [manylinux2014] #, manylinux_2_28]
26 26
27 steps: 27 steps:
@@ -35,7 +35,7 @@ jobs: @@ -35,7 +35,7 @@ jobs:
35 # see https://cibuildwheel.readthedocs.io/en/stable/changelog/ 35 # see https://cibuildwheel.readthedocs.io/en/stable/changelog/
36 # for a list of versions 36 # for a list of versions
37 - name: Build wheels 37 - name: Build wheels
38 - uses: pypa/cibuildwheel@v2.16.5 38 + uses: pypa/cibuildwheel@v2.21.3
39 env: 39 env:
40 CIBW_BEFORE_ALL: | 40 CIBW_BEFORE_ALL: |
41 git clone --depth 1 --branch v1.2.12 https://github.com/alsa-project/alsa-lib 41 git clone --depth 1 --branch v1.2.12 https://github.com/alsa-project/alsa-lib
@@ -21,7 +21,7 @@ jobs: @@ -21,7 +21,7 @@ jobs:
21 fail-fast: false 21 fail-fast: false
22 matrix: 22 matrix:
23 os: [ubuntu-20.04] 23 os: [ubuntu-20.04]
24 - python-version: ["3.7", "3.8", "3.9", "3.10", "3.11", "3.12"] 24 + python-version: ["3.7", "3.8", "3.9", "3.10", "3.11", "3.12", "3.13"]
25 25
26 steps: 26 steps:
27 - uses: actions/checkout@v4 27 - uses: actions/checkout@v4
@@ -21,7 +21,7 @@ jobs: @@ -21,7 +21,7 @@ jobs:
21 fail-fast: false 21 fail-fast: false
22 matrix: 22 matrix:
23 os: [ubuntu-latest] 23 os: [ubuntu-latest]
24 - python-version: ["cp37", "cp38", "cp39", "cp310", "cp311", "cp312"] 24 + python-version: ["cp37", "cp38", "cp39", "cp310", "cp311", "cp312", "cp313"]
25 manylinux: [manylinux2014] #, manylinux_2_28] 25 manylinux: [manylinux2014] #, manylinux_2_28]
26 26
27 27
@@ -31,7 +31,7 @@ jobs: @@ -31,7 +31,7 @@ jobs:
31 # see https://cibuildwheel.readthedocs.io/en/stable/changelog/ 31 # see https://cibuildwheel.readthedocs.io/en/stable/changelog/
32 # for a list of versions 32 # for a list of versions
33 - name: Build wheels 33 - name: Build wheels
34 - uses: pypa/cibuildwheel@v2.16.5 34 + uses: pypa/cibuildwheel@v2.21.3
35 env: 35 env:
36 CIBW_BEFORE_ALL: | 36 CIBW_BEFORE_ALL: |
37 git clone --depth 1 --branch v1.2.12 https://github.com/alsa-project/alsa-lib 37 git clone --depth 1 --branch v1.2.12 https://github.com/alsa-project/alsa-lib
@@ -21,13 +21,13 @@ jobs: @@ -21,13 +21,13 @@ jobs:
21 fail-fast: false 21 fail-fast: false
22 matrix: 22 matrix:
23 os: [macos-13] 23 os: [macos-13]
24 - python-version: ["cp38", "cp39", "cp310", "cp311", "cp312"] 24 + python-version: ["cp38", "cp39", "cp310", "cp311", "cp312", "cp313"]
25 25
26 steps: 26 steps:
27 - uses: actions/checkout@v4 27 - uses: actions/checkout@v4
28 28
29 - name: Build wheels 29 - name: Build wheels
30 - uses: pypa/cibuildwheel@v2.15.0 30 + uses: pypa/cibuildwheel@v2.21.3
31 env: 31 env:
32 CIBW_BUILD: "${{ matrix.python-version}}-* " 32 CIBW_BUILD: "${{ matrix.python-version}}-* "
33 CIBW_ENVIRONMENT: SHERPA_ONNX_CMAKE_ARGS="-DCMAKE_OSX_ARCHITECTURES='arm64'" 33 CIBW_ENVIRONMENT: SHERPA_ONNX_CMAKE_ARGS="-DCMAKE_OSX_ARCHITECTURES='arm64'"
@@ -21,13 +21,13 @@ jobs: @@ -21,13 +21,13 @@ jobs:
21 fail-fast: false 21 fail-fast: false
22 matrix: 22 matrix:
23 os: [macos-latest] 23 os: [macos-latest]
24 - python-version: ["cp38", "cp39", "cp310", "cp311", "cp312"] 24 + python-version: ["cp38", "cp39", "cp310", "cp311", "cp312", "cp313"]
25 25
26 steps: 26 steps:
27 - uses: actions/checkout@v4 27 - uses: actions/checkout@v4
28 28
29 - name: Build wheels 29 - name: Build wheels
30 - uses: pypa/cibuildwheel@v2.15.0 30 + uses: pypa/cibuildwheel@v2.21.3
31 env: 31 env:
32 CIBW_BUILD: "${{ matrix.python-version}}-* " 32 CIBW_BUILD: "${{ matrix.python-version}}-* "
33 CIBW_ENVIRONMENT: SHERPA_ONNX_CMAKE_ARGS="-DCMAKE_OSX_ARCHITECTURES='arm64;x86_64'" 33 CIBW_ENVIRONMENT: SHERPA_ONNX_CMAKE_ARGS="-DCMAKE_OSX_ARCHITECTURES='arm64;x86_64'"
@@ -21,7 +21,7 @@ jobs: @@ -21,7 +21,7 @@ jobs:
21 fail-fast: false 21 fail-fast: false
22 matrix: 22 matrix:
23 os: [macos-13] 23 os: [macos-13]
24 - python-version: ["cp37", "cp38", "cp39", "cp310", "cp311", "cp312"] 24 + python-version: ["cp37", "cp38", "cp39", "cp310", "cp311", "cp312", "cp313"]
25 25
26 steps: 26 steps:
27 - uses: actions/checkout@v4 27 - uses: actions/checkout@v4
@@ -42,7 +42,7 @@ jobs: @@ -42,7 +42,7 @@ jobs:
42 42
43 - name: Build wheels 43 - name: Build wheels
44 if: matrix.python-version != 'cp37' 44 if: matrix.python-version != 'cp37'
45 - uses: pypa/cibuildwheel@v2.15.0 45 + uses: pypa/cibuildwheel@v2.21.3
46 env: 46 env:
47 CIBW_BUILD: "${{ matrix.python-version}}-* " 47 CIBW_BUILD: "${{ matrix.python-version}}-* "
48 CIBW_ENVIRONMENT: SHERPA_ONNX_CMAKE_ARGS="-DCMAKE_OSX_ARCHITECTURES='x86_64'" 48 CIBW_ENVIRONMENT: SHERPA_ONNX_CMAKE_ARGS="-DCMAKE_OSX_ARCHITECTURES='x86_64'"
@@ -21,7 +21,7 @@ jobs: @@ -21,7 +21,7 @@ jobs:
21 fail-fast: false 21 fail-fast: false
22 matrix: 22 matrix:
23 os: [windows-latest] 23 os: [windows-latest]
24 - python-version: ["cp37", "cp38", "cp39", "cp310", "cp311", "cp312"] 24 + python-version: ["cp37", "cp38", "cp39", "cp310", "cp311", "cp312", "cp313"]
25 25
26 steps: 26 steps:
27 - uses: actions/checkout@v4 27 - uses: actions/checkout@v4
@@ -29,7 +29,7 @@ jobs: @@ -29,7 +29,7 @@ jobs:
29 # see https://cibuildwheel.readthedocs.io/en/stable/changelog/ 29 # see https://cibuildwheel.readthedocs.io/en/stable/changelog/
30 # for a list of versions 30 # for a list of versions
31 - name: Build wheels 31 - name: Build wheels
32 - uses: pypa/cibuildwheel@v2.16.5 32 + uses: pypa/cibuildwheel@v2.21.3
33 env: 33 env:
34 CIBW_ENVIRONMENT: SHERPA_ONNX_CMAKE_ARGS="-A Win32" 34 CIBW_ENVIRONMENT: SHERPA_ONNX_CMAKE_ARGS="-A Win32"
35 CIBW_BUILD: "${{ matrix.python-version}}-* " 35 CIBW_BUILD: "${{ matrix.python-version}}-* "
@@ -21,7 +21,7 @@ jobs: @@ -21,7 +21,7 @@ jobs:
21 fail-fast: false 21 fail-fast: false
22 matrix: 22 matrix:
23 os: [windows-2019] 23 os: [windows-2019]
24 - python-version: ["3.7", "3.8", "3.9", "3.10", "3.11", "3.12"] 24 + python-version: ["3.7", "3.8", "3.9", "3.10", "3.11", "3.12", "3.13"]
25 25
26 steps: 26 steps:
27 - uses: actions/checkout@v4 27 - uses: actions/checkout@v4
@@ -21,7 +21,7 @@ jobs: @@ -21,7 +21,7 @@ jobs:
21 fail-fast: false 21 fail-fast: false
22 matrix: 22 matrix:
23 os: [windows-2019] 23 os: [windows-2019]
24 - python-version: ["3.7", "3.8", "3.9", "3.10", "3.11", "3.12"] 24 + python-version: ["3.7", "3.8", "3.9", "3.10", "3.11", "3.12", "3.13"]
25 25
26 steps: 26 steps:
27 - uses: actions/checkout@v4 27 - uses: actions/checkout@v4
@@ -54,6 +54,9 @@ jobs: @@ -54,6 +54,9 @@ jobs:
54 - os: macos-latest 54 - os: macos-latest
55 python-version: "3.12" 55 python-version: "3.12"
56 56
  57 + - os: macos-latest
  58 + python-version: "3.13"
  59 +
57 steps: 60 steps:
58 - uses: actions/checkout@v4 61 - uses: actions/checkout@v4
59 with: 62 with:
@@ -53,6 +53,8 @@ jobs: @@ -53,6 +53,8 @@ jobs:
53 python-version: "3.11" 53 python-version: "3.11"
54 - os: ubuntu-22.04 54 - os: ubuntu-22.04
55 python-version: "3.12" 55 python-version: "3.12"
  56 + - os: ubuntu-22.04
  57 + python-version: "3.13"
56 58
57 steps: 59 steps:
58 - uses: actions/checkout@v4 60 - uses: actions/checkout@v4
@@ -140,6 +140,7 @@ jobs: @@ -140,6 +140,7 @@ jobs:
140 export PATH=/c/hostedtoolcache/windows/Python/3.10.11/x64/bin:$PATH 140 export PATH=/c/hostedtoolcache/windows/Python/3.10.11/x64/bin:$PATH
141 export PATH=/c/hostedtoolcache/windows/Python/3.11.9/x64/bin:$PATH 141 export PATH=/c/hostedtoolcache/windows/Python/3.11.9/x64/bin:$PATH
142 export PATH=/c/hostedtoolcache/windows/Python/3.12.7/x64/bin:$PATH 142 export PATH=/c/hostedtoolcache/windows/Python/3.12.7/x64/bin:$PATH
  143 + export PATH=/c/hostedtoolcache/windows/Python/3.13.0/x64/bin:$PATH
143 144
144 which sherpa-onnx 145 which sherpa-onnx
145 sherpa-onnx --help 146 sherpa-onnx --help
@@ -42,6 +42,8 @@ jobs: @@ -42,6 +42,8 @@ jobs:
42 python-version: "3.11" 42 python-version: "3.11"
43 - os: ubuntu-22.04 43 - os: ubuntu-22.04
44 python-version: "3.12" 44 python-version: "3.12"
  45 + - os: ubuntu-22.04
  46 + python-version: "3.13"
45 47
46 - os: macos-12 48 - os: macos-12
47 python-version: "3.8" 49 python-version: "3.8"
@@ -55,6 +57,8 @@ jobs: @@ -55,6 +57,8 @@ jobs:
55 57
56 - os: macos-14 58 - os: macos-14
57 python-version: "3.12" 59 python-version: "3.12"
  60 + - os: macos-14
  61 + python-version: "3.13"
58 62
59 - os: windows-2019 63 - os: windows-2019
60 python-version: "3.7" 64 python-version: "3.7"
@@ -69,6 +73,8 @@ jobs: @@ -69,6 +73,8 @@ jobs:
69 python-version: "3.11" 73 python-version: "3.11"
70 - os: windows-2022 74 - os: windows-2022
71 python-version: "3.12" 75 python-version: "3.12"
  76 + - os: windows-2022
  77 + python-version: "3.13"
72 78
73 steps: 79 steps:
74 - uses: actions/checkout@v4 80 - uses: actions/checkout@v4
@@ -105,6 +111,7 @@ jobs: @@ -105,6 +111,7 @@ jobs:
105 export PATH=/c/hostedtoolcache/windows/Python/3.10.11/x64/bin:$PATH 111 export PATH=/c/hostedtoolcache/windows/Python/3.10.11/x64/bin:$PATH
106 export PATH=/c/hostedtoolcache/windows/Python/3.11.9/x64/bin:$PATH 112 export PATH=/c/hostedtoolcache/windows/Python/3.11.9/x64/bin:$PATH
107 export PATH=/c/hostedtoolcache/windows/Python/3.12.7/x64/bin:$PATH 113 export PATH=/c/hostedtoolcache/windows/Python/3.12.7/x64/bin:$PATH
  114 + export PATH=/c/hostedtoolcache/windows/Python/3.13.0/x64/bin:$PATH
108 115
109 sherpa-onnx --help 116 sherpa-onnx --help
110 sherpa-onnx-keyword-spotter --help 117 sherpa-onnx-keyword-spotter --help