forked from EBIvariation/CMAT
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
34 lines (28 loc) · 938 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
import os
import os.path
from setuptools import setup, find_packages
def get_package_data():
package_data = []
for root, dirnames, filenames in os.walk('./eva_cttv_pipeline/evidence_string_generation/resources/json_schema'):
root = root.replace("./eva_cttv_pipeline/", "")
for filename in filenames:
new_fn = os.path.join(root, filename)
package_data.append(new_fn)
return package_data
def get_requires():
requires = []
with open("requirements.txt", "rt") as req_file:
for line in req_file:
requires.append(line.rstrip())
return requires
setup(name='eva_cttv_pipeline',
version='0.1',
packages=find_packages(),
install_requires=get_requires(),
package_data={
'eva_cttv_pipeline': get_package_data()
},
tests_require=get_requires(),
setup_requires=get_requires(),
test_suite='tests'
)