-
Notifications
You must be signed in to change notification settings - Fork 14
Expand file tree
/
Copy pathsetup.py
More file actions
48 lines (42 loc) · 1.54 KB
/
Copy pathsetup.py
File metadata and controls
48 lines (42 loc) · 1.54 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
from setuptools import find_packages, setup
# Read the contents of the README file
with open("README.md", "r", encoding="utf-8") as fh:
long_description = fh.read()
# Function to read requirements from a file
def read_requirements(filename):
return [line.strip() for line in open(filename) if line.strip() and not line.startswith("#")]
# Read core requirements
install_requires = read_requirements("requirements.txt")
# Define extras and their requirements
extras_require = {
"whisper": read_requirements("requirements-whisper.txt"),
}
# Add an "all" extra that includes all optional dependencies
extras_require["all"] = [req for reqs in extras_require.values() for req in reqs]
setup(
name="tstbtc",
version="1.0.0",
author="Andreas Kouloumos",
author_email="kouloumosa@gmail.com",
license="MIT",
description="Transcribes audios and videos for bitcointranscripts",
long_description=long_description,
long_description_content_type="text/markdown",
url="https://github.com/bitcointranscripts/tstbtc",
py_modules=["transcriber","server","transcriber_server"],
packages=find_packages(),
install_requires=[install_requires],
extras_require=extras_require,
python_requires=">=3.10",
classifiers=[
"Programming Language :: Python :: 3.10",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
],
entry_points={
"console_scripts": [
"tstbtc=transcriber:cli",
"tstbtc-server=transcriber_server:run"
],
},
)