-
Notifications
You must be signed in to change notification settings - Fork 12
/
setup.py
41 lines (38 loc) · 1.64 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
from setuptools import setup, find_packages
import treeshrink
from os import walk, listdir
from os.path import join,normpath,isfile
def recursive_list_dir(path):
listing=[]
for root, _, _ in walk(path):
if isfile(root):
listing.append(root.split(join(path, ""))[1])
for y in listdir(root):
z = normpath(join(root,y))
if isfile(z):
listing.append(z.split(join(path,""))[1])
return listing
param = {
'name': treeshrink.PROGRAM_NAME,
'version': treeshrink.PROGRAM_VERSION,
'description': treeshrink.PROGRAM_DESCRIPTION,
'author': treeshrink.PROGRAM_AUTHOR,
'url': treeshrink.PROGRAM_WEBSITE,
'license': treeshrink.PROGRAM_LICENSE,
'packages': find_packages()+['Rlib','R_scripts'],
'package_data':{'':recursive_list_dir('Rlib')+recursive_list_dir('R_scripts')},
'include_package_data': True,
'scripts' : ['run_treeshrink.py','decompose.py','make_gene_folder.py'],
'keywords': 'Phylogenetics Evolution Biology',
'long_description': """A Python implementation of the TreeShrink algorithm (Mai, Genome Biology, 2018)""",
'classifiers': ["Environment :: Console",
"Intended Audience :: Developers",
"Intended Audience :: Science/Research",
"License :: OSI Approved :: GNU General Public License (GPL)",
"Natural Language :: English",
"Operating System :: OS Independent",
"Programming Language :: Python",
"Topic :: Scientific/Engineering :: Bio-Informatics",
],
}
setup(**param)