54 lines
1.9 KiB
Python
54 lines
1.9 KiB
Python
#!/usr/bin/env python3
|
|
from pathlib import Path
|
|
|
|
import setuptools
|
|
from setuptools import setup
|
|
|
|
this_dir = Path(__file__).parent
|
|
module_dir = this_dir / "mimic3"
|
|
|
|
# -----------------------------------------------------------------------------
|
|
|
|
# Load README in as long description
|
|
long_description: str = ""
|
|
readme_path = this_dir / "README.md"
|
|
if readme_path.is_file():
|
|
long_description = readme_path.read_text(encoding="utf-8")
|
|
|
|
requirements = []
|
|
requirements_path = this_dir / "requirements.txt"
|
|
if requirements_path.is_file():
|
|
with open(requirements_path, "r", encoding="utf-8") as requirements_file:
|
|
requirements = requirements_file.read().splitlines()
|
|
|
|
version_path = module_dir / "VERSION"
|
|
with open(version_path, "r", encoding="utf-8") as version_file:
|
|
version = version_file.read().strip()
|
|
|
|
# -----------------------------------------------------------------------------
|
|
|
|
PLUGIN_ENTRY_POINT = "mimic3_tts_plug = mimic3.plugin:Mimic3TTSPlugin"
|
|
setup(
|
|
name="mimic3",
|
|
version=version,
|
|
description="An offline text to speech system for Mycroft",
|
|
url="http://github.com/MycroftAI/mimic3",
|
|
author="Michael Hansen",
|
|
author_email="michael.hansen@mycroft.ai",
|
|
license="Apache-2.0",
|
|
packages=setuptools.find_packages(),
|
|
package_data={"mimic3": ["VERSION", "py.typed", "templates", "css", "img"]},
|
|
install_requires=requirements,
|
|
extras_require={':python_version<"3.9"': ["importlib_resources"]},
|
|
classifiers=[
|
|
"Development Status :: 3 - Alpha",
|
|
"Intended Audience :: Developers",
|
|
"Topic :: Text Processing :: Linguistic",
|
|
"License :: OSI Approved :: Apache Software License",
|
|
"Programming Language :: Python :: 3.7",
|
|
"Programming Language :: Python :: 3.8",
|
|
"Programming Language :: Python :: 3.9",
|
|
],
|
|
keywords="mycroft plugin tts mimic",
|
|
entry_points={"mycroft.plugin.tts": PLUGIN_ENTRY_POINT},
|
|
)
|