forked from fgolemo/mcdp
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
103 lines (92 loc) · 3.1 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
from setuptools import find_packages, setup
def get_version(filename):
import ast
version = None
with open(filename) as f:
for line in f:
if line.startswith('__version__'):
version = ast.parse(line).body[0].value.s
break
else:
raise ValueError('No version found in %r.' % filename)
if version is None:
raise ValueError(filename)
return version
mcdp_version = get_version(filename='src/mcdp/branch_info.py')
setup(name='PyMCDP',
url='http://github.com/AndreaCensi/mcdp',
maintainer="Andrea Censi",
maintainer_email="[email protected]",
description='PyMCDP is an interpreter and solver for Monotone Co-Design Problems',
long_description='',
keywords="Optimization",
classifiers=[
'Development Status :: 4 - Beta',
],
version=mcdp_version,
download_url='http://github.com/AndreaCensi/mcdp/tarball/%s' % mcdp_version,
package_dir={'': 'src'},
packages=find_packages('src'),
install_requires=[
'pint',
'watchdog',
'decorator',
'networkx>=1.11,<2',
'pygments',
'pyramid',
'pyramid_jinja2',
'pyramid_debugtoolbar',
'nose',
'beautifulsoup4>=4.6',
'PyContracts>=1.8.3,<2',
'ConfTools>=1.7,<2',
'comptests>=1.4.23,<2',
'RepRep>=2.9.3,<3',
'DecentLogs>=1.1.2,<2',
'QuickApp>=1.3.10,<2',
'compmake>=3.5.28,<4',
'networkx>=1.11,<2',
'psutil',
'setproctitle',
'markdown',
'bcrypt',
'waitress',
'lxml',
'junit_xml',
'gitpython',
'authomatic',
'ruamel.yaml',
'python-dateutil',
'chardet',
'pillow',
'ruamel.yaml',
'pygments_markdown_lexer',
'circleclient',
],
tests_require=[
'webtest',
'nose>=1.1.2,<2',
'selenium>=3.3.1,<4f',
],
# This avoids creating the egg file, which is a zip file, which makes our data
# inaccessible by dir_from_package_name()
zip_safe=False,
# without this, the stuff is included but not installed
include_package_data=True,
entry_points={
'paste.app_factory': ['app=mcdp_web:app_factory'],
'console_scripts': [
'mcdp-plot = mcdp_cli:mcdp_plot_main',
'mcdp-solve = mcdp_cli:mcdp_solve_main',
'mcdp-web = mcdp_web:mcdp_web_main',
'mcdp-eval = mcdp_cli:mcdp_eval_main',
'mcdp-render = mcdp_docs:mcdp_render_main',
'mcdp-render-manual = mcdp_docs:mcdp_render_manual_main',
'mcdp-depgraph = mcdp_depgraph:mcdp_depgraph_main',
'mcdp-load-all = mcdp_hdb_mcdp:mcdp_load_all_main',
'mcdp-split = mcdp_docs.split:split_main',
'mcdp-docs-compose = mcdp_docs.composing:compose_main',
'mcdp-prerender = mcdp_docs.prerender_math:prerender_main',
]
}
)