-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
34 lines (29 loc) · 895 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
import os
from setuptools import setup, find_packages
def get_requirements(fns):
reqs = []
for fn in fns:
if not os.path.exists(fn):
raise FileNotFoundError(f'Given file {fn} does not exists.')
with open(fn, 'r') as f:
reqs += [line.strip() for line in f.readlines()]
return reqs
setup(
name='dcmtrans',
description='Library for reading various of dicom image(s).',
setuptools_git_versioning={
'enabled': True,
'template': '{tag}',
'dev_template': '{tag}.post{ccount}',
'dirty_template': '{tag}.post{ccount}+dirty',
},
extras_require={
'all': [
'nibabel>=4.0.1',
'matplotlib',
],
},
setup_requires=['setuptools-git-versioning'],
install_requires=get_requirements(['requirements.txt']),
packages=find_packages(exclude=['test']),
)