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()
|
|
|
|
|
|
|
|
setuptools.setup(
|
2021-06-05 14:46:14 +00:00
|
|
|
name="edge-tts",
|
2021-06-05 15:20:20 +00:00
|
|
|
version="0.0.2",
|
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",
|
|
|
|
)
|