-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathsetup.py
92 lines (79 loc) · 3.52 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
# Copyright 2016 Chr. Hansen A/S and The Novo Nordisk Foundation Center for Biosustainability, DTU.
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
# http://www.apache.org/licenses/LICENSE-2.0
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
from __future__ import absolute_import, print_function
import numpy
from Cython.Build import cythonize
from setuptools import setup, find_packages, Extension
import versioneer
requirements = ['pandas>=0.18.1',
'numpy>=1.11.1',
'bioservices>=1.4.14',
'requests>=2.11.1',
'bokeh==0.12',
'cameo>=0.11.3',
'sqlalchemy>=1.1.9',
'scikit-learn>=0.18.1',
'psycopg2>=2.7.1',
'bitarray>=0.8.1',
'Cython>=0.24',
'cement>2.10',
'pubchempy>=1.0.3 ',
'cachetools>=2.0.0',
'alembic>=0.9',
'gnomic>=1.0.1']
extra_requirements = {
'docs': ['Sphinx>=1.3.5', 'numpydoc>=0.5'],
'jupyter': ['jupyter>=1.0.0', 'ipywidgets>=4.1.1'],
'test': ['pytest>=1.3.7', 'pytest-cov>=2.4', 'pytest-benchmark>=3.0'],
'3d': ['imolecule>=0.1.13'],
'opencl': ['pyopencl>=2016.1']
}
extra_requirements['all'] = sum([list(values) for values in extra_requirements.values()], [])
ext_modules = cythonize([Extension("marsi.chemistry.common_ext",
sources=["marsi/chemistry/common_ext.pyx"],
include_dirs=[numpy.get_include()]),
Extension("marsi.nearest_neighbors.model_ext",
sources=["marsi/nearest_neighbors/model_ext.pyx"],
include_dirs=[numpy.get_include()])
])
include_dirs = [numpy.get_include()]
setup(
name='marsi',
version=versioneer.get_version(),
cmdclass=versioneer.get_cmdclass(),
packages=find_packages(exclude=("*.c",)),
package_data={'marsi': ['alembic.ini', 'alembic/*',
'chemistry/common_ext.pxd', 'chemistry/common_ext.pyx',
'nearest_neighbors/model_ext.pyx']},
install_requires=requirements,
extras_require=extra_requirements,
ext_modules=ext_modules,
# scripts=['bin/marsi'],
include_package_data=True,
author='Joao Cardoso',
author_email='joaca@biosustain.dtu.dk',
description='marsi - Metabolite Analogues for Rational Strain Improvement',
license='Apache License Version 2.0',
keywords='biology metabolism bioinformatics chemoinformatics',
url='https://github.com/biosustain/marsi',
long_description="marsi is an open-source software to created to identify non-GMO strain design targets",
classifiers=[
'Development Status :: 3 - Alpha',
'Programming Language :: Python :: 3.5',
'Programming Language :: Python :: 2.7',
'License :: OSI Approved :: Apache Software License',
'Topic :: Scientific/Engineering :: Bio-Informatics',
],
entry_points={
'console_scripts': ['marsi = marsi.cli.app:main'],
},
include_dirs=include_dirs
)