update setup.py

This commit is contained in:
rany
2021-06-05 17:39:41 +03:00
parent 91f62a84d8
commit da3b68210f

View File

@@ -1,10 +1,21 @@
import os
import shutil
import setuptools
# 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']
with open("README.md", "r", encoding="utf-8") as fh:
long_description = fh.read()
setuptools.setup(
name="edgeTTS-rany",
name="edgeTTS",
version="0.0.1",
author="rany",
author_email="ranygh@riseup.net",
@@ -22,5 +33,6 @@ setuptools.setup(
],
package_dir={"": "src"},
packages=setuptools.find_packages(where="src"),
scripts=scripts,
python_requires=">=3.6",
)