mirror of https://github.com/coqui-ai/TTS.git
build: move metadata from setup.py to pyproject.toml
This commit is contained in:
parent
63bfb9f8aa
commit
f4cacd7b7c
|
@ -7,6 +7,52 @@ requires = [
|
|||
"packaging",
|
||||
]
|
||||
|
||||
[tool.setuptools.packages.find]
|
||||
include = ["TTS*"]
|
||||
|
||||
[project]
|
||||
name = "coqui-tts"
|
||||
description = "Deep learning for Text to Speech."
|
||||
readme = "README.md"
|
||||
requires-python = ">=3.9, <3.13"
|
||||
license = {text = "MPL-2.0"}
|
||||
authors = [
|
||||
{name = "Eren Gölge", email = "egolge@coqui.ai"}
|
||||
]
|
||||
maintainers = [
|
||||
{name = "Enno Hermann", email = "enno.hermann@gmail.com"}
|
||||
]
|
||||
classifiers = [
|
||||
"Programming Language :: Python",
|
||||
"Programming Language :: Python :: 3",
|
||||
"Programming Language :: Python :: 3.9",
|
||||
"Programming Language :: Python :: 3.10",
|
||||
"Programming Language :: Python :: 3.11",
|
||||
"Programming Language :: Python :: 3.12",
|
||||
"Development Status :: 3 - Alpha",
|
||||
"Intended Audience :: Science/Research",
|
||||
"Intended Audience :: Developers",
|
||||
"Operating System :: POSIX :: Linux",
|
||||
"License :: OSI Approved :: Mozilla Public License 2.0 (MPL 2.0)",
|
||||
"Topic :: Software Development",
|
||||
"Topic :: Software Development :: Libraries :: Python Modules",
|
||||
"Topic :: Multimedia :: Sound/Audio :: Speech",
|
||||
"Topic :: Multimedia :: Sound/Audio",
|
||||
"Topic :: Multimedia",
|
||||
"Topic :: Scientific/Engineering :: Artificial Intelligence",
|
||||
]
|
||||
|
||||
[project.urls]
|
||||
Homepage = "https://github.com/idiap/coqui-ai-TTS"
|
||||
Documentation = "https://coqui-tts.readthedocs.io"
|
||||
Repository = "https://github.com/idiap/coqui-ai-TTS"
|
||||
Issues = "https://github.com/idiap/coqui-ai-TTS/issues"
|
||||
Discussions = "https://github.com/idiap/coqui-ai-TTS/discussions"
|
||||
|
||||
[project.scripts]
|
||||
tts = "TTS.bin.synthesize:main"
|
||||
tts-server = "TTS.server.server:main"
|
||||
|
||||
[tool.ruff]
|
||||
target-version = "py39"
|
||||
line-length = 120
|
||||
|
|
52
setup.py
52
setup.py
|
@ -28,10 +28,7 @@ import numpy
|
|||
import setuptools.command.build_py
|
||||
import setuptools.command.develop
|
||||
from Cython.Build import cythonize
|
||||
from setuptools import Extension, find_packages, setup
|
||||
|
||||
if sys.version_info < (3, 9) or sys.version_info >= (3, 13):
|
||||
raise RuntimeError("Trainer requires python >= 3.6 and <3.13 " "but your Python version is {}".format(sys.version))
|
||||
from setuptools import Extension, setup
|
||||
|
||||
cwd = os.path.dirname(os.path.abspath(__file__))
|
||||
with open(os.path.join(cwd, "TTS", "VERSION")) as fin:
|
||||
|
@ -66,9 +63,6 @@ with open(os.path.join(cwd, "requirements.ja.txt"), "r") as f:
|
|||
requirements_server = ["flask>=2.0.1"]
|
||||
requirements_all = requirements_dev + requirements_notebooks + requirements_ja + requirements_server
|
||||
|
||||
with open("README.md", "r", encoding="utf-8") as readme_file:
|
||||
README = readme_file.read()
|
||||
|
||||
exts = [
|
||||
Extension(
|
||||
name="TTS.tts.utils.monotonic_align.core",
|
||||
|
@ -76,35 +70,12 @@ exts = [
|
|||
)
|
||||
]
|
||||
setup(
|
||||
name="coqui-tts",
|
||||
version=version,
|
||||
url="https://github.com/idiap/coqui-ai-TTS",
|
||||
author="Eren Gölge",
|
||||
author_email="egolge@coqui.ai",
|
||||
maintainer="Enno Hermann",
|
||||
maintainer_email="enno.hermann@gmail.com",
|
||||
description="Deep learning for Text to Speech.",
|
||||
long_description=README,
|
||||
long_description_content_type="text/markdown",
|
||||
license="MPL-2.0",
|
||||
# cython
|
||||
include_dirs=numpy.get_include(),
|
||||
ext_modules=cythonize(exts, language_level=3),
|
||||
# ext_modules=find_cython_extensions(),
|
||||
# package
|
||||
include_package_data=True,
|
||||
packages=find_packages(include=["TTS"], exclude=["*.tests", "*tests.*", "tests.*", "*tests", "tests"]),
|
||||
package_data={
|
||||
"TTS": [
|
||||
"VERSION",
|
||||
]
|
||||
},
|
||||
project_urls={
|
||||
"Documentation": "https://coqui-tts.readthedocs.io",
|
||||
"Tracker": "https://github.com/idiap/coqui-ai-TTS/issues",
|
||||
"Repository": "https://github.com/idiap/coqui-ai-TTS",
|
||||
"Discussions": "https://github.com/idiap/coqui-ai-TTS/discussions",
|
||||
},
|
||||
cmdclass={
|
||||
"build_py": build_py,
|
||||
"develop": develop,
|
||||
|
@ -118,26 +89,5 @@ setup(
|
|||
"server": requirements_server,
|
||||
"ja": requirements_ja,
|
||||
},
|
||||
python_requires=">=3.9.0, <3.13",
|
||||
entry_points={"console_scripts": ["tts=TTS.bin.synthesize:main", "tts-server = TTS.server.server:main"]},
|
||||
classifiers=[
|
||||
"Programming Language :: Python",
|
||||
"Programming Language :: Python :: 3",
|
||||
"Programming Language :: Python :: 3.9",
|
||||
"Programming Language :: Python :: 3.10",
|
||||
"Programming Language :: Python :: 3.11",
|
||||
"Programming Language :: Python :: 3.12",
|
||||
"Development Status :: 3 - Alpha",
|
||||
"Intended Audience :: Science/Research",
|
||||
"Intended Audience :: Developers",
|
||||
"Operating System :: POSIX :: Linux",
|
||||
"License :: OSI Approved :: Mozilla Public License 2.0 (MPL 2.0)",
|
||||
"Topic :: Software Development",
|
||||
"Topic :: Software Development :: Libraries :: Python Modules",
|
||||
"Topic :: Multimedia :: Sound/Audio :: Speech",
|
||||
"Topic :: Multimedia :: Sound/Audio",
|
||||
"Topic :: Multimedia",
|
||||
"Topic :: Scientific/Engineering :: Artificial Intelligence",
|
||||
],
|
||||
zip_safe=False,
|
||||
)
|
||||
|
|
Loading…
Reference in New Issue