mirror of https://github.com/coqui-ai/TTS.git
build: add python 3.12 support
This commit is contained in:
parent
5527f70d68
commit
8b1ed020ff
|
@ -36,7 +36,7 @@ jobs:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
python-version: ["3.9", "3.10", "3.11"]
|
python-version: ["3.9", "3.10", "3.11", "3.12"]
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
- uses: actions/setup-python@v5
|
- uses: actions/setup-python@v5
|
||||||
|
@ -81,6 +81,10 @@ jobs:
|
||||||
with:
|
with:
|
||||||
name: "wheel-3.11"
|
name: "wheel-3.11"
|
||||||
path: "dist/"
|
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 @@ jobs:
|
||||||
strategy:
|
strategy:
|
||||||
fail-fast: false
|
fail-fast: false
|
||||||
matrix:
|
matrix:
|
||||||
python-version: [3.9, "3.10", "3.11"]
|
python-version: [3.9, "3.10", "3.11", "3.12"]
|
||||||
subset: ["data_tests", "inference_tests", "test_aux", "test_text", "test_tts", "test_tts2", "test_vocoder", "test_xtts", "test_zoo0", "test_zoo1", "test_zoo2"]
|
subset: ["data_tests", "inference_tests", "test_aux", "test_text", "test_tts", "test_tts2", "test_vocoder", "test_xtts", "test_zoo0", "test_zoo1", "test_zoo2"]
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
|
@ -63,7 +63,7 @@ jobs:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
- uses: actions/setup-python@v5
|
- uses: actions/setup-python@v5
|
||||||
with:
|
with:
|
||||||
python-version: "3.11"
|
python-version: "3.12"
|
||||||
- uses: actions/download-artifact@v4
|
- uses: actions/download-artifact@v4
|
||||||
with:
|
with:
|
||||||
pattern: coverage-data-*
|
pattern: coverage-data-*
|
||||||
|
|
|
@ -131,7 +131,7 @@ Please use our dedicated channels for questions and discussion. Help is much mor
|
||||||
You can also help us implement more models.
|
You can also help us implement more models.
|
||||||
|
|
||||||
## Installation
|
## Installation
|
||||||
🐸TTS is tested on Ubuntu 22.04 with **python >= 3.9, < 3.12.**.
|
🐸TTS is tested on Ubuntu 22.04 with **python >= 3.9, < 3.13.**.
|
||||||
|
|
||||||
If you are only interested in [synthesizing speech](https://coqui-tts.readthedocs.io/en/latest/inference.html) with the released 🐸TTS models, installing from PyPI is the easiest option.
|
If you are only interested in [synthesizing speech](https://coqui-tts.readthedocs.io/en/latest/inference.html) with the released 🐸TTS models, installing from PyPI is the easiest option.
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
# Installation
|
# Installation
|
||||||
|
|
||||||
🐸TTS supports python >=3.9 <3.12.0 and was tested on Ubuntu 20.04 and 22.04.
|
🐸TTS supports python >=3.9 <3.13.0 and was tested on Ubuntu 22.04.
|
||||||
|
|
||||||
## Using `pip`
|
## Using `pip`
|
||||||
|
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
# These cause some compatibility issues on some systems and are not strictly necessary
|
# These cause some compatibility issues on some systems and are not strictly necessary
|
||||||
# japanese g2p deps
|
# japanese g2p deps
|
||||||
mecab-python3==1.0.6
|
mecab-python3
|
||||||
unidic-lite==1.0.8
|
unidic-lite==1.0.8
|
||||||
cutlet
|
cutlet
|
||||||
|
|
10
setup.py
10
setup.py
|
@ -28,13 +28,10 @@ import numpy
|
||||||
import setuptools.command.build_py
|
import setuptools.command.build_py
|
||||||
import setuptools.command.develop
|
import setuptools.command.develop
|
||||||
from Cython.Build import cythonize
|
from Cython.Build import cythonize
|
||||||
from packaging.version import Version
|
|
||||||
from setuptools import Extension, find_packages, setup
|
from setuptools import Extension, find_packages, setup
|
||||||
|
|
||||||
python_version = sys.version.split()[0]
|
if sys.version_info < (3, 9) or sys.version_info >= (3, 13):
|
||||||
if Version(python_version) < Version("3.9") or Version(python_version) >= Version("3.12"):
|
raise RuntimeError("Trainer requires python >= 3.6 and <3.13 " "but your Python version is {}".format(sys.version))
|
||||||
raise RuntimeError("TTS requires python >= 3.9 and < 3.12 " "but your Python version is {}".format(sys.version))
|
|
||||||
|
|
||||||
|
|
||||||
cwd = os.path.dirname(os.path.abspath(__file__))
|
cwd = os.path.dirname(os.path.abspath(__file__))
|
||||||
with open(os.path.join(cwd, "TTS", "VERSION")) as fin:
|
with open(os.path.join(cwd, "TTS", "VERSION")) as fin:
|
||||||
|
@ -121,7 +118,7 @@ setup(
|
||||||
"server": requirements_server,
|
"server": requirements_server,
|
||||||
"ja": requirements_ja,
|
"ja": requirements_ja,
|
||||||
},
|
},
|
||||||
python_requires=">=3.9.0, <3.12",
|
python_requires=">=3.9.0, <3.13",
|
||||||
entry_points={"console_scripts": ["tts=TTS.bin.synthesize:main", "tts-server = TTS.server.server:main"]},
|
entry_points={"console_scripts": ["tts=TTS.bin.synthesize:main", "tts-server = TTS.server.server:main"]},
|
||||||
classifiers=[
|
classifiers=[
|
||||||
"Programming Language :: Python",
|
"Programming Language :: Python",
|
||||||
|
@ -129,6 +126,7 @@ setup(
|
||||||
"Programming Language :: Python :: 3.9",
|
"Programming Language :: Python :: 3.9",
|
||||||
"Programming Language :: Python :: 3.10",
|
"Programming Language :: Python :: 3.10",
|
||||||
"Programming Language :: Python :: 3.11",
|
"Programming Language :: Python :: 3.11",
|
||||||
|
"Programming Language :: Python :: 3.12",
|
||||||
"Development Status :: 3 - Alpha",
|
"Development Status :: 3 - Alpha",
|
||||||
"Intended Audience :: Science/Research",
|
"Intended Audience :: Science/Research",
|
||||||
"Intended Audience :: Developers",
|
"Intended Audience :: Developers",
|
||||||
|
|
Loading…
Reference in New Issue