-
Notifications
You must be signed in to change notification settings - Fork 36
/
Copy pathpyproject.toml
180 lines (170 loc) · 4.67 KB
/
pyproject.toml
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
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
[build-system]
requires = [
"setuptools>=61",
"wheel",
"setuptools_scm[toml]"
]
build-backend = "setuptools.build_meta"
[project]
name = "idaes-examples"
description = "IDAES Process Systems Engineering Examples"
readme = "README.md"
version = "2.8.dev0"
license = {text="BSD"}
requires-python = ">=3.9"
authors = [
{name="The IDAES Project"},
{name="Dan Gunter", email="[email protected]"}
]
classifiers = [
"Development Status :: 3 - Alpha",
"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.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: Implementation :: CPython",
"Topic :: Scientific/Engineering :: Mathematics",
"Topic :: Scientific/Engineering :: Chemistry",
"Topic :: Software Development :: Libraries :: Python Modules",
]
dependencies = [
# Don't version setuptools, various bits complain
"setuptools",
# Pyomo
"pyomo>=6.5.0",
"jupyter",
"importlib_resources", # importlib.resources.files()
]
keywords = ["IDAES", "energy systems", "chemical engineering", "process modeling"]
[project.optional-dependencies]
omlt = [
# For Keras/OMLT
"omlt",
"tensorflow >= 2.16.1",
]
idaes = [
"idaes-pse", # installing IDAES (from release) is opt-in
]
testing = [
# parallel pytest
"pytest-xdist ~= 3.0.2",
# pytest reporting
"pytest-reportlog ~= 0.1.2",
"nbclient",
"nbmake == 1.5.*",
]
# dependencies for building documentation
docs = [
"jupyter-book ~= 0.15.0",
# "jupyter-cache ~= 0.4.3",
"jupyter-cache",
# the older version of nbmake goes with the older
# version of nbclient, which is required by jupyter-cache
# "nbclient ~= 0.5.13",
"nbclient",
"nbformat",
# markdown in Sphinx
# we don't specify these as we assume jupyter-book will install compatible versions
# "myst-nb ~= 0.17.1",
# "myst-parser ~= 0.18.0",
]
# For developers
dev = [
"idaes-examples[testing,docs]",
# For jupyter notebook testing
# this MUST match the version used in the CI checks (.github/workflows/*.yml)
"black[jupyter] == 24.3.0",
# For adding copyright headers (see addheader.yml and the readme)
"addheader >= 0.3.0",
"blessed ~= 1.20.0",
]
# For creating a package
packaging = [
"build",
"twine"
]
[project.urls]
github = "https://github.com/idaes/examples"
issues = "https://github.com/idaes/examples/issues"
[project.scripts]
idaesx = "idaes_examples.build:main"
[tool.setuptools]
include-package-data = true
zip-safe = false
[tool.setuptools.packages]
find = {namespaces = false}
[tool.setuptools.package-data]
idaes_examples = [
"*.template",
"*.json",
"*.yaml",
"*.svg",
"*.png",
"*.jpg",
"*.csv",
"*.ipynb",
"*.txt",
"*.js",
"*.css",
"*.html",
"*.json.gz",
"*.dat",
"*.h5",
"*.pb", # for Keras Surrogate folder
"*.data-00000-of-00001", # for Keras Surrogate folder
"*.index", # for Keras Surrogate folder
"*.trc",
"*.xlsx", # idaes/dmf/tests/data_files - tabular import test files
"*.yml",
"*.yaml"
]
[tool.pytest.ini_options]
minversion = "6.0"
addopts = "--strict-markers"
markers = [
"unit",
"integration",
"component",
"needs_solver"
]
testpaths = "idaes_examples"
[tool.typos.files]
extend-exclude = [
"*.svg",
"*.json",
"*.css",
"*.yml",
]
[tool.typos.default.extend-words]
# Ignore IDAES
IDAES = "IDAES"
# Ignore HDA, assumes it's on purpose and not a typo of "had"
HDA = "HDA"
# Ignore Attemp - assume it is abbreviating attemperator
Attemp = "Attemp"
# Ignore equil, assumes it's on purpose and not a typo of "equal"
equil = "equil"
# Atomic elements
Nd = "Nd"
Ba = "Ba" # ba is also used in block names in RSOFC-SOEC example
# Numpy
arange = "arange"
[tool.typos.default]
extend-ignore-re = [
# Jupyter notebooks: ignore hexadecimal values in "id" cell metadata field
'"id": "[0-9a-f]+",',
# ser is used as a variable name for pd.Series, so we exclude it when followed by a dot
# as of 2024-04-25, the false positive are all due to warnings in the output of certain notebooks
# which should be resolved regardless (see IDAES/examples#108)
"ser[.].*",
"KNO[2-3]"
]