-
Notifications
You must be signed in to change notification settings - Fork 26
/
setup.py
73 lines (64 loc) · 2.32 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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
"""A setuptools based setup module for Grapetree.
See:
https://packaging.python.org/en/latest/distributing.html
https://github.com/pypa/sampleproject
"""
from setuptools import setup, find_packages
from codecs import open
from os import path, walk
__licence__ = 'GPLv3'
__author__ = 'EnteroBase development team'
__author_email__ = 'zhemin.zhou@warwick.ac.uk'
__version__ = '2.2'
def package_files(directory):
paths = []
for (pathz, directories, filenames) in walk(directory):
for filename in filenames:
paths.append(path.join('..', pathz, filename))
return paths
here = path.abspath(path.dirname(__file__))
with open(path.join(here, 'README.md'), encoding='utf-8') as f:
long_description = f.read()
def recursive(folder) :
return [path.join(p, fn) for (p, directories, filenames) in walk('static') for fn in filenames ]
setup(
name='grapetree',
version= __version__,
description='Web interface of GrapeTree, which is a program for phylogenetic analysis.',
long_description=long_description,
long_description_content_type='text/markdown',
url='https://github.com/achtman-lab/GrapeTree',
author= __author__,
author_email= __author_email__,
classifiers=[ # Optional
'Development Status :: 5 - Production/Stable',
'License :: OSI Approved :: GNU General Public License v3 (GPLv3)',
# 'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3.5',
'Programming Language :: Python :: 3.6',
'Programming Language :: Python :: 3.7',
'Programming Language :: Python :: 3.8',
],
entry_points={
'console_scripts': [
'grapetree = grapetree.grapetree:main',
],
},
keywords=['bioinformatics', 'microbial', 'genomics', 'MLST', 'visulisation'],
package_data={'grapetree':[
'MSTree_holder.html',
'GT_icon*',
'README*',
'LICENSE',
'module/*',
'binaries/*',
]+recursive('static')},
packages = ['grapetree'],
package_dir = {'grapetree':'.'},
install_requires=['ete3', 'numpy', 'Flask', 'networkx', 'psutil', 'numba', 'unidecode'],
include_package_data=True,
project_urls={
'Bug Reports': 'https://github.com/achtman-lab/GrapeTree/issues',
'Source': 'https://github.com/achtman-lab/GrapeTree',
},
)