forked from ADicksonLab/wepy
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
111 lines (92 loc) · 2.47 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
102
103
104
105
106
107
108
109
110
111
#!/usr/bin/env python
# -*- encoding: utf-8 -*-
from __future__ import absolute_import
from __future__ import print_function
import io
import re
from glob import glob
from os.path import basename
from os.path import dirname
from os.path import join
from os.path import splitext
from setuptools import setup, find_packages
import itertools as it
import versioneer
# setuptools only specifies abstract requirements. For the concrete
# requirements i.e. index or repo URL see requirements.txt
base_requirements = [
'numpy',
'h5py<3',
'networkx==2.3',
'pandas',
'dill',
'click',
'scipy',
'geomm',
'matplotlib',
'tabulate',
'jinja2',
'pint',
'multiprocessing_logging',
'eliot',
]
# extras requirements list
md_requirements = [
'mdtraj',
'openmm_systems==0.0.0',
]
distributed_requirements = ['dask[bag]']
prometheus_requirements = [
'prometheus_client',
'pympler',
]
# # combination of all the extras requirements
all_requirements = list(it.chain.from_iterable([
base_requirements,
md_requirements,
distributed_requirements,
prometheus_requirements,
]))
setup(
name='wepy',
version=versioneer.get_version(),
author="Samuel D. Lotz",
author_email="samuel.lotz@salotz.info",
description="Weighted Ensemble Framework",
#long_description=open('README.org').read(),
license="MIT",
url="https://github.com/ADicksonLab/wepy",
classifiers=[
"Topic :: Utilities",
"License :: OSI Approved :: MIT License",
'Programming Language :: Python :: 3'
],
# building/dev
setup_requires=['pytest-runner'],
tests_require=['pytest', 'nox'],
cmdclass=versioneer.get_cmdclass(),
# package
packages=find_packages(where='src'),
package_dir={'' : 'src'},
# if this is true then the package_data won't be included in the
# dist. Use MANIFEST.in for this
include_package_data=True,
# pymodules is for single file standalone modules not part of the
# package
py_modules=[splitext(basename(path))[0] for path in glob('src/*.py')],
entry_points={
'console_scripts' : [
'wepy=wepy.__main__:cli',
],
'pytest11' : [
'pytest-wepy=pytest_wepy',
],
},
install_requires=base_requirements,
extras_require={
'md' : md_requirements,
'distributed' : distributed_requirements,
'prometheus' : prometheus_requirements,
'all' : all_requirements,
}
)