-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
36 lines (28 loc) · 905 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
32
33
34
35
36
import os
from setuptools import setup
PATH_ROOT = os.path.dirname(__file__)
def load_requirements(
path_dir=PATH_ROOT, file_name="requirements.txt", comment_char="#"
):
with open(os.path.join(path_dir, file_name), "r") as file:
lines = [ln.strip() for ln in file.readlines()]
reqs = []
for ln in lines:
if comment_char in ln: # filer all comments
ln = ln[: ln.index(comment_char)].strip()
if ln: # if requirement is not empty
reqs.append(ln)
return reqs
reqs = load_requirements()
setup(
name="cliv",
version="0.1.0",
description="Continual learning of inter-reader variability for medical image segmentation (CLIV) project",
author="Matthias Perkonigg",
packages=["cliv"],
include_package_data=True,
zip_safe=False,
python_requires=">=3.9",
setup_requires=[],
install_requires=reqs,
)