mirror of https://github.com/coqui-ai/TTS.git
Merge pull request #95 from idiap/cibuildwheel
ci(release): switch to cibuildwheel
This commit is contained in:
commit
073f8de652
|
@ -8,6 +8,7 @@ defaults:
|
||||||
bash
|
bash
|
||||||
jobs:
|
jobs:
|
||||||
build-sdist:
|
build-sdist:
|
||||||
|
name: Build source distribution
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
|
@ -23,37 +24,31 @@ jobs:
|
||||||
with:
|
with:
|
||||||
python-version: 3.9
|
python-version: 3.9
|
||||||
- run: |
|
- run: |
|
||||||
python -m pip install -U pip setuptools wheel build
|
python -m pip install -U pip setuptools build
|
||||||
- run: |
|
- run: |
|
||||||
python -m build
|
python -m build
|
||||||
- run: |
|
- run: |
|
||||||
pip install dist/*.tar.gz
|
pip install dist/*.tar.gz
|
||||||
- uses: actions/upload-artifact@v4
|
- uses: actions/upload-artifact@v4
|
||||||
with:
|
with:
|
||||||
name: sdist
|
name: build-sdist
|
||||||
path: dist/*.tar.gz
|
path: dist/*.tar.gz
|
||||||
build-wheels:
|
build-wheels:
|
||||||
runs-on: ubuntu-latest
|
name: Build wheels on ${{ matrix.os }}
|
||||||
|
runs-on: ${{ matrix.os }}
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
python-version: ["3.9", "3.10", "3.11", "3.12"]
|
os: [ubuntu-latest, windows-latest, macos-latest]
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
- uses: actions/setup-python@v5
|
- name: Build wheels
|
||||||
with:
|
uses: pypa/cibuildwheel@v2.21.1
|
||||||
python-version: ${{ matrix.python-version }}
|
|
||||||
- name: Install build requirements
|
|
||||||
run: |
|
|
||||||
python -m pip install -U pip setuptools wheel build numpy cython
|
|
||||||
- name: Setup and install manylinux1_x86_64 wheel
|
|
||||||
run: |
|
|
||||||
python setup.py bdist_wheel --plat-name=manylinux1_x86_64
|
|
||||||
python -m pip install dist/*-manylinux*.whl
|
|
||||||
- uses: actions/upload-artifact@v4
|
- uses: actions/upload-artifact@v4
|
||||||
with:
|
with:
|
||||||
name: wheel-${{ matrix.python-version }}
|
name: build-wheels-${{ matrix.os }}
|
||||||
path: dist/*-manylinux*.whl
|
path: ./wheelhouse/*.whl
|
||||||
publish-artifacts:
|
publish-artifacts:
|
||||||
|
name: Publish to PyPI
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
needs: [build-sdist, build-wheels]
|
needs: [build-sdist, build-wheels]
|
||||||
environment:
|
environment:
|
||||||
|
@ -62,28 +57,11 @@ jobs:
|
||||||
permissions:
|
permissions:
|
||||||
id-token: write
|
id-token: write
|
||||||
steps:
|
steps:
|
||||||
- run: |
|
|
||||||
mkdir dist
|
|
||||||
- uses: actions/download-artifact@v4
|
- uses: actions/download-artifact@v4
|
||||||
with:
|
with:
|
||||||
name: "sdist"
|
path: dist
|
||||||
path: "dist/"
|
pattern: build-*
|
||||||
- uses: actions/download-artifact@v4
|
merge-multiple: true
|
||||||
with:
|
|
||||||
name: "wheel-3.9"
|
|
||||||
path: "dist/"
|
|
||||||
- uses: actions/download-artifact@v4
|
|
||||||
with:
|
|
||||||
name: "wheel-3.10"
|
|
||||||
path: "dist/"
|
|
||||||
- uses: actions/download-artifact@v4
|
|
||||||
with:
|
|
||||||
name: "wheel-3.11"
|
|
||||||
path: "dist/"
|
|
||||||
- uses: actions/download-artifact@v4
|
|
||||||
with:
|
|
||||||
name: "wheel-3.12"
|
|
||||||
path: "dist/"
|
|
||||||
- run: |
|
- run: |
|
||||||
ls -lh dist/
|
ls -lh dist/
|
||||||
- name: Publish package distributions to PyPI
|
- name: Publish package distributions to PyPI
|
||||||
|
|
|
@ -12,7 +12,7 @@ include = ["TTS*"]
|
||||||
|
|
||||||
[project]
|
[project]
|
||||||
name = "coqui-tts"
|
name = "coqui-tts"
|
||||||
version = "0.24.1"
|
version = "0.24.2"
|
||||||
description = "Deep learning for Text to Speech."
|
description = "Deep learning for Text to Speech."
|
||||||
readme = "README.md"
|
readme = "README.md"
|
||||||
requires-python = ">=3.9, <3.13"
|
requires-python = ">=3.9, <3.13"
|
||||||
|
@ -205,3 +205,7 @@ target-version = ['py39']
|
||||||
[tool.coverage.run]
|
[tool.coverage.run]
|
||||||
parallel = true
|
parallel = true
|
||||||
source = ["TTS"]
|
source = ["TTS"]
|
||||||
|
|
||||||
|
[tool.cibuildwheel]
|
||||||
|
build = "cp*"
|
||||||
|
skip = "*-win32 *i686 *musllinux*"
|
||||||
|
|
Loading…
Reference in New Issue