forked from CancerRxGene/gdsctools
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
executable file
·103 lines (82 loc) · 3.41 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
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
# -*- coding: utf-8 -*-
__revision__ = "$Id$"
import sys
import os
from setuptools import setup, find_packages
import glob
_MAJOR = 0
_MINOR = 11
_MICRO = 3
version = '%d.%d.%d' % (_MAJOR, _MINOR, _MICRO)
release = '%d.%d' % (_MAJOR, _MINOR)
metainfo = {
'authors': {
'Cokelaer':('Thomas Cokelaer','[email protected]'),
},
'version': version,
'license' : 'BSD',
'download_url' : ['http://pypi.python.org/pypi/gdsctools'],
'url' : ['http://pypi.python.org/pypi/gdsctools'],
'description':'Set of tools and pipelines to analyse GDSC data (cancerrxgene.org)' ,
'platforms' : ['Linux', 'Unix', 'MacOsX', 'Windows'],
'keywords' : ['gdsc', 'drug response', 'anova', 'genomic features'],
'classifiers' : [
'Development Status :: 1 - Planning',
'Intended Audience :: Developers',
'Intended Audience :: Science/Research',
'License :: OSI Approved :: BSD License',
'Operating System :: OS Independent',
'Programming Language :: Python :: 2.7',
'Topic :: Software Development :: Libraries :: Python Modules',
'Topic :: Scientific/Engineering :: Bio-Informatics',
'Topic :: Scientific/Engineering :: Information Analysis',
'Topic :: Scientific/Engineering :: Mathematics',
'Topic :: Scientific/Engineering :: Physics']
}
with open('README.rst') as f:
readme = f.read()
from distutils.core import setup, Extension
on_rtd = os.environ.get('READTHEDOCS', None) == 'True'
# on rtd, pandas is 1.3.1 cannot use something better for now (march 2016)
if on_rtd is True: # only import and set the theme if we're building docs
install_requires = ['colormap', 'easydev']
else:
install_requires = ['numpy', 'matplotlib>=1.4.3',
'pandas>=0.16.2', 'easydev>=0.9.5', 'scipy', "colormap>=0.9.7",
'mpld3', 'jinja2', 'statsmodels', "scikit-learn", "reports>=0.1.8"],
packages = find_packages()
packages = [this for this in packages if this not in ['test']]
setup(
name = 'gdsctools',
version = version,
maintainer = metainfo['authors']['Cokelaer'][0],
maintainer_email = metainfo['authors']['Cokelaer'][1],
author = metainfo['authors']['Cokelaer'][0],
author_email = metainfo['authors']['Cokelaer'][1],
long_description = readme,
keywords = metainfo['keywords'],
description = metainfo['description'],
license = metainfo['license'],
platforms = metainfo['platforms'],
url = metainfo['url'],
download_url = metainfo['download_url'],
classifiers = metainfo['classifiers'],
packages = packages,
# here below '': pattern means include that pattern in all packages
# so '' :['README.rst'] will include all README.rst recursively
package_data = {
'': ["*css", "*js", "*txt", "*csv", "*tsv", "*gz"],
#'gdsctools.data' : ['*'],
'gdsctools.data.images' : ['*.png', '*.ico'],
'gdsctools.data.templates' : ['*.html'],
'gdsctools.data.javascript' : ['*.js'],
},
# comment the requirements otherwise RTD fails
# but we then need a requirements.txt file !
install_requires = install_requires,
zip_safe=False,
entry_points = {
'console_scripts': [
'gdsctools_anova=gdsctools.pipelines:anova_pipeline',]
},
)