-
Notifications
You must be signed in to change notification settings - Fork 4
/
setup.py
53 lines (45 loc) · 1.72 KB
/
setup.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
import os
import pathlib
from setuptools import setup, find_packages
import ast
HERE = pathlib.Path(__file__).parent
README = (HERE / "README.md").read_text()
def read_version(fname="open_dubbing/__init__.py"):
with open(fname, encoding="utf-8") as f:
for line in f:
if line.startswith("__version__"):
return ast.literal_eval(line.split("=")[1].strip())
raise ValueError("__version__ not found in the file")
def parse_requirements(fname="requirements.txt"):
with open(HERE / fname, encoding="utf-8") as f:
return [line.strip() for line in f if line.strip() and not line.startswith("#")]
setup(
name="open-dubbing",
version=read_version(),
description="AI dubbing system which uses machine learning models to automatically translate and synchronize audio dialogue into different languages.",
long_description=README,
long_description_content_type="text/markdown",
url="https://github.com/Softcatala/open-dubbing",
author="Jordi Mas",
author_email="[email protected]",
license="Apache Software License 2.0",
classifiers=[
"License :: OSI Approved :: Apache Software License",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Topic :: Scientific/Engineering :: Artificial Intelligence",
],
packages=find_packages(),
include_package_data=True,
install_requires=parse_requirements(),
extras_require={
"dev": ["flake8==7.*", "black==24.*", "pytest==8.*", "isort==5.13"],
"coqui": ["coqui-tts == 0.24.1"],
},
entry_points={
"console_scripts": [
"open-dubbing=open_dubbing.main:main",
]
},
python_requires='>=3.10'
)