forked from IDAES/idaes-pse
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
153 lines (142 loc) · 4.24 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
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
#!/usr/bin/env python
"""
Institute for the Design of Advanced Energy Systems
"""
from pathlib import Path
import os
import sys
from setuptools import setup, find_namespace_packages
def warn(s):
sys.stderr.write("*** WARNING *** {}\n".format(s))
def get_version():
code_file = os.path.join("idaes", "ver.py")
code = open(code_file).read()
local_namespace = {}
exec(code, {}, local_namespace)
return local_namespace["__version__"]
NAME = "idaes-pse"
VERSION = get_version()
README = open("README.md").read()
README = README[README.find("#"):] # ignore everything before title
def rglob(path, glob):
"""Return list of paths from `path` matching `glob`.
"""
p = Path(path)
return list(map(str, p.rglob(glob)))
kwargs = dict(
zip_safe=False,
name=NAME,
version=VERSION,
packages=find_namespace_packages(),
# Put abstract (non-versioned) deps here.
# Concrete dependencies go in requirements[-dev].txt
install_requires=[
# idaes core / dmf
"backports.shutil_get_terminal_size",
"bunch",
"click",
"colorama",
"flask", # for ui/fsvis
"flask-cors",
"jupyter",
"lxml",
"matplotlib",
"mock",
"nbconvert",
"nbformat",
"numpy",
"networkx",
"pandas",
"pint",
"psutil",
"pyutilib>=6.0.0",
"pyomo>=5.7.1",
"pytest",
"pyyaml",
"requests", # for ui/fsvis
"python-slugify", # for ui/fsvis
"sympy",
"tinydb",
"rbfopt",
],
entry_points={
"console_scripts": [
"dmf = idaes.dmf.cli:base_command",
"idaes = idaes.commands.base:command_base",
]
},
extras_require={
# For developers. Only installed if [dev] is added to package name
"dev": [
"alabaster>=0.7.7",
# temporarily hold coverage version due to avoid bug in coveralls
# -alee 12/20/2019
"coverage==4.5.4",
"flake8",
"flask>=1.0",
"flask-bower",
"flask-restful",
"jsonschema",
"jupyter_contrib_nbextensions",
"mock",
"pylint",
"pytest-cov",
"python-coveralls",
"snowballstemmer==1.2.1",
# temporarily hold sphinx version to avoid bug with 3.x
# -dang 4/22/2020
"sphinx<3.0.0",
# note: 4/22/2020, removed the version requirement here
"sphinx-rtd-theme",
"sphinxcontrib-napoleon>=0.5.0",
"sphinx-argparse",
]
},
package_data={
# If any package contains these files, include them:
"": [
"*.template",
"*.json",
"*.yaml",
"*.svg",
"*.png",
"*.jpg",
"*.csv",
"*.ipynb",
"*.txt",
"*.js",
"*.css",
"*.html",
]
},
include_package_data=True,
data_files=[],
maintainer="Keith Beattie",
maintainer_email="[email protected]",
url="https://idaes.org",
license="BSD ",
platforms=["any"],
description="IDAES Process Systems Engineering Framework",
long_description=README,
long_description_content_type="text/markdown",
keywords=[NAME, "energy systems", "chemical engineering", "process modeling"],
classifiers=[
"Development Status :: 5 - Production/Stable",
"Intended Audience :: End Users/Desktop",
"Intended Audience :: Science/Research",
"License :: OSI Approved :: BSD License",
"Natural Language :: English",
"Operating System :: MacOS",
"Operating System :: Microsoft :: Windows",
"Operating System :: Unix",
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.6",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: Implementation :: CPython",
"Topic :: Scientific/Engineering :: Mathematics",
"Topic :: Scientific/Engineering :: Chemistry",
"Topic :: Software Development :: Libraries :: Python Modules",
],
)
setup(**kwargs)