-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
31 lines (26 loc) · 844 Bytes
/
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
from pathlib import Path
from typing import List
from setuptools import find_packages, setup
def find_requirements() -> List[str]:
requirements_txt = Path(__file__).parent / "requirement.txt"
requirements = []
if requirements_txt.exists():
with open(requirements_txt, "r", encoding="utf-8") as req_file:
for line in req_file:
requirements.append(line.strip())
return requirements
setup(
name="adas",
version="0.1",
description="ADAS",
author="Sergei Porkhun",
author_email="[email protected]",
packages=find_packages(),
install_requires=find_requirements(),
entry_points={
"console_scripts": [
"segmentation-train = adas.segmentation.train:main",
"segmentation-eval = adas.segmentation.eval:main",
]
},
)