forked from brentp/crystal
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
52 lines (47 loc) · 1.59 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
import os
# for travis
os.environ["MPLCONFIGDIR"] = "."
try:
from ez_setup import use_setuptools
use_setuptools()
except ImportError:
pass
from setuptools import setup, find_packages
# from mpld3
def get_version(f):
"""Get the version info from the mpld3 package without importing it"""
import ast
with open(f) as init_file:
module = ast.parse(init_file.read())
version = (ast.literal_eval(node.value) for node in ast.walk(module)
if isinstance(node, ast.Assign)
and node.targets[0].id == "__version__")
try:
return next(version)
except StopIteration:
raise ValueError("version could not be located")
setup(name='crystal',
version=get_version("crystal/__init__.py"),
description="statistical models on clusters of correlated genomic data",
packages=find_packages(),
url="https://github.com/brentp/crystal/",
long_description=open('README.md').read(),
platforms='any',
classifiers=[
'Topic :: Scientific/Engineering :: Bio-Informatics',
'Programming Language :: Python :: 2.7',
],
keywords='bioinformatics methylation correlation',
author='brentp',
author_email='[email protected]',
license='MIT License',
include_package_data=True,
tests_require=['nose'],
test_suite='nose.collector',
zip_safe=False,
install_requires=['numpy', 'scipy', 'pandas', 'patsy', 'aclust', 'toolshed', 'statsmodels',
'seaborn>=0.4', 'sphinx', 'numpydoc', 'interlap'],
#scripts=[],
entry_points={
},
)