-
Notifications
You must be signed in to change notification settings - Fork 77
Expand file tree
/
Copy pathsetup.py
More file actions
52 lines (44 loc) · 1.63 KB
/
setup.py
File metadata and controls
52 lines (44 loc) · 1.63 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
# -*- coding: utf-8 -*-
# Project : Fast-Spark-TTS
# Time : 2025/4/25 12:43
# Author : Hui Huang
import os
from setuptools import setup, find_packages
here = os.path.abspath(os.path.dirname(__file__))
def get_requires() -> list[str]:
with open("requirements.txt", encoding="utf-8") as f:
file_content = f.read()
lines = [line.strip() for line in file_content.strip().split("\n") if not line.startswith("#")]
return lines
def get_readme() -> str:
with open(os.path.join(here, 'README.MD'), encoding='utf-8') as f:
long_description = f.read()
return long_description
setup(
name='flashtts',
version='0.1.7',
description='A Fast TTS toolkit',
long_description=get_readme(),
long_description_content_type='text/markdown',
keywords=["flashtts", "tts", "sparktts", "spark-tts", "megatts3", "orpheus-tts", "vllm", "sglang", "llama-cpp"],
author='HuangHui',
author_email='m13021933043@163.com',
url='https://github.com/HuiResearch/FlashTTS',
license='MIT',
packages=find_packages(),
include_package_data=True,
package_data={
# 把 templates 目录下的静态文件也一起打包
'flashtts.server.templates': ['*.html', '*.ico'],
},
install_requires=get_requires(),
classifiers=[
'Development Status :: 4 - Beta',
'Intended Audience :: Developers',
'Programming Language :: Python :: 3',
'License :: OSI Approved :: MIT License',
'Operating System :: OS Independent',
],
python_requires='>=3.10',
entry_points={"console_scripts": ["flashtts = flashtts.commands.flashtts_cli:main"]},
)