edge-tts/setup.py

43 lines
1.2 KiB
Python
Raw Normal View History

2021-06-05 14:39:41 +00:00
import os
import shutil
2021-06-05 14:29:16 +00:00
import setuptools
2021-06-05 14:39:41 +00:00
# make edge-tts script
scripts=['build/edge-tts']
if not os.path.exists('build'):
os.makedirs('build')
shutil.copyfile('src/edgeTTS/__init__.py', 'build/edge-tts')
if os.name == 'posix':
shutil.copyfile('edge-playback.sh', 'build/edge-playback')
scripts+=['build/edge-playback']
2021-06-05 14:29:16 +00:00
with open("README.md", "r", encoding="utf-8") as fh:
long_description = fh.read()
2021-06-05 16:02:53 +00:00
with open('requirements.txt') as f:
required = f.read().splitlines()
2021-06-05 14:29:16 +00:00
setuptools.setup(
2021-06-05 14:46:14 +00:00
name="edge-tts",
2021-06-05 16:02:53 +00:00
version="0.0.3",
2021-06-05 14:29:16 +00:00
author="rany",
author_email="ranygh@riseup.net",
description="Microsoft Edge's TTS",
long_description=long_description,
long_description_content_type="text/markdown",
url="https://github.com/rany2/edge-tts",
project_urls={
"Bug Tracker": "https://github.com/rany2/edge-tts/issues",
},
classifiers=[
"Programming Language :: Python :: 3",
2021-06-05 14:46:14 +00:00
"License :: OSI Approved :: GNU General Public License v3 (GPLv3)",
2021-06-05 14:29:16 +00:00
"Operating System :: OS Independent",
],
package_dir={"": "src"},
packages=setuptools.find_packages(where="src"),
2021-06-05 14:39:41 +00:00
scripts=scripts,
2021-06-05 14:29:16 +00:00
python_requires=">=3.6",
2021-06-05 16:02:53 +00:00
install_requires=required,
2021-06-05 14:29:16 +00:00
)