forked from yl4579/StyleTTS2
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.py
More file actions
59 lines (50 loc) · 2.06 KB
/
setup.py
File metadata and controls
59 lines (50 loc) · 2.06 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
53
54
55
56
57
58
# import os
# from sys import platform
# from setuptools import setup, find_packages
# with open('requirements.txt') as f:
# required = f.read().splitlines()
# setup(
# name='StyleTTS2',
# version='2.0',
# description='A text-to-speech (TTS) model that leverages style diffusion and adversarial training with large speech language models (SLMs) to achieve human-level TTS synthesis.',
# license='MIT',
# package_dir={'styletts2':'./'},
# long_description=open('README.md').read(),
# install_requires=required,
# url="https://github.com/NextAudioGen/StyleTTS2.git",
# # include_package_data=True,
# package_data={
# 'styletts2': ['**/*.txt', '**/*.t7', '**/*.pth', '**/*.json', '**/*.yaml', '**/*.yml']
# }
# )
import os
from setuptools import setup, find_packages
# Reading requirements from requirements.txt
with open('requirements.txt') as f:
required = f.read().splitlines()
# Reading the long description from README.md
with open('README.md', 'r') as readme_file:
long_description = readme_file.read()
setup(
name='StyleTTS2',
version='2.0',
description='A text-to-speech (TTS) model that leverages style diffusion and adversarial training with large speech language models (SLMs) to achieve human-level TTS synthesis.',
license='MIT',
# Automatic package discovery
package_dir={'': '.'}, # Consider the root directory as the place to start package discovery
packages=find_packages(where='.'), # Automatically find all packages in the root directory
long_description=long_description,
long_description_content_type='text/markdown',
install_requires=required,
url="https://github.com/NextAudioGen/StyleTTS2.git",
include_package_data=True, # Ensuring all data files are included
package_data={
'': ['**/*.txt', '**/*.t7', '**/*.pth', '**/*.json', '**/*.yaml', '**/*.yml'],
},
# If there are scripts or executables, consider using entry_points
# entry_points={
# 'console_scripts': [
# 'script_name = module_name:main_func',
# ],
# },
)