forked from unconv/captacity
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.py
More file actions
executable file
·51 lines (43 loc) · 1.48 KB
/
setup.py
File metadata and controls
executable file
·51 lines (43 loc) · 1.48 KB
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
#!/usr/bin/env python3
import os
from setuptools import find_packages, setup
def get_requirements():
requirements_path = os.path.join(os.path.dirname(__file__), "requirements.txt")
with open(requirements_path, "r", encoding="utf-8") as f:
return f.read().splitlines()
def get_version():
version_path = os.path.join(
os.path.dirname(__file__), "captametropolis", "__version__.py"
)
with open(version_path, "r", encoding="utf-8") as f:
for line in f:
if line.startswith("__version__"):
return line.split("=")[1].strip().strip('"')
return "1.0.0"
setup(
name="captametropolis",
version=get_version(),
packages=find_packages(),
install_requires=get_requirements(),
extras_require={
"local": ["openai-whisper"],
},
package_data={
"captametropolis": ["assets/**/*"],
},
include_package_data=True,
url="https://github.com/AppSolves/captametropolis",
license="MIT",
author="Original: Unconventional Coding | This Fork: AppSolves",
maintainer="AppSolves",
maintainer_email="contact@appsolves.dev",
author_email="unconventionalcoding@gmail.com",
description="Add Automatic Captions to YouTube Shorts with AI",
long_description=open("README.md", "r", encoding="utf-8").read(),
long_description_content_type="text/markdown",
entry_points={
"console_scripts": [
"captametropolis=captametropolis.__cli__:main",
],
},
)