-
Notifications
You must be signed in to change notification settings - Fork 1
/
setup.py
48 lines (40 loc) · 1.19 KB
/
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
37
38
39
40
41
42
43
44
45
46
47
48
from setuptools import setup
import os,re
NAME = 'TCGAdnloader'
PACKAGE = [NAME]
VERSION = __import__(NAME).__version__
try:
f = open("requirements.txt", "rb")
REQUIRES = [i.strip() for i in f.read().decode("utf-8").split("\n")]
f.close()
except:
print("'requirements.txt' not found!")
REQUIRES = []
DESCRIPTION='''
Data Collection
'''
def path_files(directory):
paths = []
for (path, _, filenames) in os.walk(directory):
for filename in filenames:
if filename[0] is not '.': # filter hidden files
paths.append(os.path.join(
re.sub(NAME+'/', '', path), filename))
return paths
package_files = path_files(NAME+'/data')
def main():
setup(name=NAME,
version=VERSION,
description=DESCRIPTION,
url='https://github.com/jingxinfu/TCGAdnloader',
author='Jingxin Fu',
author_email='jingxinfu.tj@gmail.com',
packages=PACKAGE,
package_data={NAME: package_files},
install_requires=REQUIRES,
license=open('LICENSE').read(),
scripts=['bin/tcgaDnloader'],
include_package_data=True,
zip_safe=False)
if __name__ == '__main__':
main()