-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathsetup.py
More file actions
33 lines (26 loc) · 768 Bytes
/
setup.py
File metadata and controls
33 lines (26 loc) · 768 Bytes
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
import os
from typing import List
from setuptools import find_packages, setup
ROOT_DIR = os.path.abspath(os.path.dirname(__file__))
def read_requirements(name: str) -> List[str]:
"""
To read the requirements
"""
file = f"./{name}.txt"
fpath = os.path.join(ROOT_DIR, file)
with open(fpath) as f:
return [
line.strip()
for line in f
if line.strip() and not line.strip().startswith("#")
]
requirements = read_requirements("requirements")
setup(
url="https://github.com/lawwu/transcripts",
author="Lawrence Wu",
name="transcripts",
version="0.1.1",
packages=find_packages("src"),
package_dir={"transcripts": "src/transcripts"},
install_requires=requirements,
)