mirror of https://github.com/coqui-ai/TTS.git
fixing dome pypi issues
This commit is contained in:
parent
60c1bb93d9
commit
57b668fd86
|
@ -0,0 +1,4 @@
|
||||||
|
include README.md
|
||||||
|
include LICENSE.txt
|
||||||
|
include requirements.txt
|
||||||
|
include TTS/.models.json
|
|
@ -91,7 +91,7 @@ Please use our dedicated channels for questions and discussion. Help is much mor
|
||||||
You can also help us implement more models. Some TTS related work can be found [here](https://github.com/erogol/TTS-papers).
|
You can also help us implement more models. Some TTS related work can be found [here](https://github.com/erogol/TTS-papers).
|
||||||
|
|
||||||
## Install TTS
|
## Install TTS
|
||||||
TTS supports **python >= 3.6**.
|
TTS supports **python >= 3.6, <3.9**.
|
||||||
|
|
||||||
```pip install .``` or ```pip install -e .``` to keep your installation in your working directory.
|
```pip install .``` or ```pip install -e .``` to keep your installation in your working directory.
|
||||||
|
|
||||||
|
|
23
setup.py
23
setup.py
|
@ -7,7 +7,7 @@ import subprocess
|
||||||
import sys
|
import sys
|
||||||
import numpy
|
import numpy
|
||||||
|
|
||||||
from setuptools import setup, find_packages, Extension
|
from setuptools import setup, find_packages
|
||||||
import setuptools.command.develop
|
import setuptools.command.develop
|
||||||
import setuptools.command.build_py
|
import setuptools.command.build_py
|
||||||
|
|
||||||
|
@ -33,7 +33,7 @@ args, unknown_args = parser.parse_known_args()
|
||||||
# Remove our arguments from argv so that setuptools doesn't see them
|
# Remove our arguments from argv so that setuptools doesn't see them
|
||||||
sys.argv = [sys.argv[0]] + unknown_args
|
sys.argv = [sys.argv[0]] + unknown_args
|
||||||
|
|
||||||
version = '0.0.9a0'
|
version = '0.0.9a4'
|
||||||
cwd = os.path.dirname(os.path.abspath(__file__))
|
cwd = os.path.dirname(os.path.abspath(__file__))
|
||||||
|
|
||||||
# Handle Cython code
|
# Handle Cython code
|
||||||
|
@ -91,11 +91,7 @@ def pip_install(package_name):
|
||||||
subprocess.call([sys.executable, '-m', 'pip', 'install', package_name])
|
subprocess.call([sys.executable, '-m', 'pip', 'install', package_name])
|
||||||
|
|
||||||
|
|
||||||
reqs_from_file = open('requirements.txt').readlines()
|
requirements = open(os.path.join(cwd, 'requirements.txt'), 'r').readlines()
|
||||||
# reqs_without_tf = [r for r in reqs_from_file if not r.startswith('tensorflow')]
|
|
||||||
# tf_req = [r for r in reqs_from_file if r.startswith('tensorflow')]
|
|
||||||
# requirements = {'install_requires': reqs_without_tf, 'pip_install': tf_req}
|
|
||||||
|
|
||||||
with open('README.md', "r", encoding="utf-8") as readme_file:
|
with open('README.md', "r", encoding="utf-8") as readme_file:
|
||||||
README = readme_file.read()
|
README = readme_file.read()
|
||||||
|
|
||||||
|
@ -106,7 +102,8 @@ setup(
|
||||||
author='Eren Gölge',
|
author='Eren Gölge',
|
||||||
author_email='egolge@mozilla.com',
|
author_email='egolge@mozilla.com',
|
||||||
description='Text to Speech with Deep Learning',
|
description='Text to Speech with Deep Learning',
|
||||||
# long_description=README,
|
long_description=README,
|
||||||
|
long_description_content_type="text/markdown",
|
||||||
license='MPL-2.0',
|
license='MPL-2.0',
|
||||||
ext_modules=find_cython_extensions(),
|
ext_modules=find_cython_extensions(),
|
||||||
packages=find_packages(include=['TTS*']),
|
packages=find_packages(include=['TTS*']),
|
||||||
|
@ -120,8 +117,8 @@ setup(
|
||||||
'build_py': build_py,
|
'build_py': build_py,
|
||||||
'develop': develop,
|
'develop': develop,
|
||||||
},
|
},
|
||||||
install_requires=reqs_from_file,
|
install_requires=requirements,
|
||||||
python_requires='>=3.6.0',
|
python_requires='>=3.6.0, <3.9',
|
||||||
entry_points={
|
entry_points={
|
||||||
'console_scripts': [
|
'console_scripts': [
|
||||||
'tts=TTS.bin.synthesize:main',
|
'tts=TTS.bin.synthesize:main',
|
||||||
|
@ -147,9 +144,3 @@ setup(
|
||||||
"Topic :: Multimedia",
|
"Topic :: Multimedia",
|
||||||
"Topic :: Scientific/Engineering :: Artificial Intelligence"
|
"Topic :: Scientific/Engineering :: Artificial Intelligence"
|
||||||
])
|
])
|
||||||
|
|
||||||
# for some reason having tensorflow in 'install_requires'
|
|
||||||
# breaks some of the dependencies.
|
|
||||||
# if 'bdist_wheel' not in unknown_args:
|
|
||||||
# for module in requirements['pip_install']:
|
|
||||||
# pip_install(module)
|
|
||||||
|
|
Loading…
Reference in New Issue