代码拉取完成,页面将自动刷新
同步操作将从 harold/ttskit 强制同步,此操作会覆盖自 Fork 仓库以来所做的任何修改,且无法恢复!!!
确定后同步将在后台操作,完成时将刷新页面,请耐心等待。
#!usr/bin/env python
# -*- coding: utf-8 -*-
# author: kuangdd
# date: 2019/12/15
"""
语音处理工具箱。
生成whl格式安装包:python setup.py bdist_wheel
直接上传pypi:python setup.py sdist upload
用twine上传pypi:
生成安装包:python setup.py sdist
上传安装包:twine upload [package path]
注意:需要在home目录下建立.pypirc配置文件,文件内容格式:
[distutils]
index-servers=pypi
[pypi]
repository = https://upload.pypi.org/legacy/
username: kdd
password: admin
"""
from setuptools import setup, find_packages
import os
import logging
import re
logging.basicConfig(level=logging.INFO)
logger = logging.getLogger(os.path.splitext(os.path.basename(__file__))[0])
install_requires = ['aukit>=1.4.4', 'inflect', 'cycler', 'librosa', 'matplotlib>=3.1.1,<=3.4.2', 'numba==0.48', 'numpy',
'phkit>=0.2.7', 'pydub', 'PyYAML', 'scikit_learn', 'scipy', 'setproctitle', 'SIP',
'tensorboardX', 'torch>=1.6.0,<=1.7.1', 'tqdm', 'umap_learn', 'Unidecode', 'visdom',
'webrtcvad_wheels', 'xmltodict', 'flask', 'gevent']
requires = [re.sub(r'[<>=].+', '', w) for w in install_requires]
def create_readme():
from ttskit import readme_docs
docs = []
with open("README.md", "wt", encoding="utf8") as fout:
for doc in readme_docs:
fout.write(doc.replace("\n", "\n"))
docs.append(doc)
return "".join(docs)
ttskit_doc = create_readme()
from ttskit import __version__ as ttskit_version
setup(
name="ttskit",
version=ttskit_version,
author="kuangdd",
author_email="kuangdd@foxmail.com",
description="text to speech toolkit",
long_description=ttskit_doc,
long_description_content_type="text/markdown",
url="https://github.com/KuangDD/ttskit",
packages=find_packages(exclude=['contrib', 'docs', 'test*']),
install_requires=install_requires, # 指定项目最低限度需要运行的依赖项
requires=requires,
python_requires='>=3.6', # python的依赖关系
package_data={
'ttskit': ['requirements.txt', 'README.md'],
'ttskit.templates': ['index.html', 'index.png'],
}, # 包数据,通常是与软件包实现密切相关的数据
# include_package_data=True,
classifiers=[
'Intended Audience :: Developers',
'Topic :: Software Development :: Build Tools',
'License :: OSI Approved :: MIT License',
'Programming Language :: Python :: 3.6',
'Programming Language :: Python :: 3.7',
'Programming Language :: Python :: 3.8',
"Operating System :: OS Independent",
],
entry_points={
'console_scripts': [
'tkcli = ttskit.cli_api:tts_cli',
'tkhttp = ttskit.http_server:start_sever',
]
}
)
if __name__ == "__main__":
logger.info(__file__)
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。