-
Notifications
You must be signed in to change notification settings - Fork 121
/
pyproject.toml
279 lines (257 loc) · 9.71 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
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
[build-system]
requires = ["flit_core >=3.2,<4"]
build-backend = "flit_core.buildapi"
[project]
# Check https://flit.readthedocs.io/en/latest/pyproject_toml.html for all available sections
name = "ansys-mapdl-core"
version = "0.69.dev0"
description = "A Python wrapper for Ansys MAPDL."
readme = "README.md"
requires-python = ">=3.10,<3.13" # Update also 'MINIMUM_PYTHON_VERSION' in src/ansys/mapdl/core/__init__.py
license = {file = "LICENSE"}
authors = [{ name = "ANSYS, Inc.", email = "pyansys.core@ansys.com" }]
maintainers = [{ name = "ANSYS, Inc.", email = "pyansys.core@ansys.com" }]
dependencies = [
"ansys-api-mapdl==0.5.2", # supports at least 2020R2 - 2022R1
"ansys-mapdl-reader>=0.51.7",
"ansys-math-core>=0.1.2",
"ansys-platform-instancemanagement~=1.0",
"ansys-tools-visualization-interface>=0.2.6",
"ansys-tools-path>=0.3.1",
"click>=8.1.3", # for CLI interface
"grpcio>=1.30.0", # tested up to grpcio==1.35
"matplotlib>=3.0.0", # for colormaps for pyvista
"numpy>=1.14.0,<1.25.0; python_version < '3.9'",
"numpy>=1.14.0,<3.0.0; python_version >= '3.9'",
"pexpect>=4.8.0 ; platform_system=='Linux'",
"platformdirs>=3.6.0",
"protobuf>=3.12.2", # minimum required based on latest ansys-grpc-mapdl
"psutil>=5.9.4",
"pyansys-tools-versioning>=0.3.3",
"pyiges[full]>=0.3.1", # Since v0.3.0, the 'full' flag is needed in order to install 'geomdl'
"scipy>=1.3.0", # for sparse (consider optional?)
"tabulate>=0.8.0", # for cli plotting
"tqdm>=4.45.0",
"vtk>=9.0.0",
]
classifiers = [
"Development Status :: 4 - Beta",
"Intended Audience :: Science/Research",
"Topic :: Scientific/Engineering :: Information Analysis",
"License :: OSI Approved :: MIT License",
"Operating System :: Microsoft :: Windows",
"Operating System :: POSIX",
"Operating System :: MacOS",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
]
[project.optional-dependencies]
jupyter = [
"jupyterlab>=3",
"ipywidgets",
]
tests = [
"ansys-dpf-core==0.10.1",
"ansys-tools-visualization-interface==0.5.0",
"autopep8==2.3.1",
"matplotlib==3.9.2",
"pandas==2.2.3",
"pyansys-tools-report==0.8.1",
"pyfakefs==5.7.1",
"pyiges[full]==0.3.1",
"pytest-cov==6.0.0",
"pytest-memprof<0.3.0",
"pytest-pyvista==0.1.9",
"pytest-rerunfailures==14.0",
"pytest==8.3.3",
"scipy==1.14.1",
"vtk==9.3.1",
]
doc = [
"ansys-dpf-core==0.10.1",
"ansys-mapdl-reader==0.54.1",
"ansys-tools-visualization-interface==0.5.0",
"ansys-sphinx-theme==1.2.1",
"grpcio==1.67.1",
"imageio-ffmpeg==0.5.1",
"imageio==2.36.0",
"jupyter==1.1.1",
"jupyter_sphinx==0.5.3",
"jupyterlab>=3.2.8",
"matplotlib==3.9.2",
"nbformat==5.10.4",
"numpydoc==1.8.0",
"pandas==2.2.3",
"plotly==5.24.1",
"pyiges[full]==0.3.1",
"pypandoc==1.14",
"pytest-sphinx==0.6.3",
"pythreejs==2.4.2",
"sphinx-autobuild==2024.10.3",
"sphinx-autodoc-typehints==1.25.2",
"sphinx-copybutton==0.5.2",
"sphinx-design==0.6.1",
"sphinx-gallery==0.18.0",
"sphinx-jinja==2.0.2",
"sphinx-notfound-page==1.0.4",
"sphinx==8.1.3",
"sphinxcontrib-websupport==2.0.0",
"sphinxemoji==0.3.1",
"vtk==9.3.1",
]
[tool.flit.module]
name = "ansys.mapdl.core"
[project.urls]
Source = "https://github.com/ansys/pymapdl"
Issues = "https://github.com/ansys/pymapdl/issues"
Documentation = "https://mapdl.docs.pyansys.com"
Tracker = "https://github.com/ansys/pymapdl/issues"
[project.scripts]
pymapdl_convert_script = "ansys.mapdl.core.cli:old_pymapdl_convert_script_entry_point"
pymapdl = "ansys.mapdl.core.cli:main"
[tool.pytest.ini_options]
addopts = "-rxXsa -vvv --maxfail=10"
junit_family = "legacy"
filterwarnings = [
"ignore::FutureWarning",
"ignore::PendingDeprecationWarning",
"ignore::DeprecationWarning",
# bogus numpy ABI warning (see numpy/#432)
"ignore:.*numpy.dtype size changed.*:RuntimeWarning",
"ignore:.*numpy.ufunc size changed.*:RuntimeWarning",
"ignore::UserWarning",
]
markers = [
"skip_grpc: skip tests using grpc",
"gui: skip tests that launch the GUI interface",
]
testpaths = "tests"
image_cache_dir = "tests/.image_cache"
[tool.isort]
profile = "black"
force_sort_within_sections = true
default_section = "THIRDPARTY"
skip_glob = ["__init__.py"]
src_paths = ["doc", "src", "tests"]
[tool.coverage.run]
source = ["ansys/pymapdl"]
omit = [
# ignore legacy interfaces
"ansys/mapdl/core/mapdl_console.py",
"ansys/mapdl/core/jupyter.py",
# ignore non exposed interfaces
"ansys/mapdl/core/mapdl_inprocess.py",
]
[tool.coverage.report]
show_missing = true
[tool.codespell]
skip = '*.pyc,*.txt,*.gif,*.png,*.jpg,*.js,*.html,*.doctree,*.ttf,*.woff,*.woff2,*.eot,*.mp4,*.inv,*.pickle,*.ipynb,flycheck*,./.git/*,./.hypothesis/*,*.yml,./doc/build/*,./doc/images/*,./dist/*,*~,.hypothesis*,./doc/source/examples/*,*cover,*.dat,*.mac,*.cdb,*.CDB,build,./docker/mapdl/v*,./factory/*,./ansys/mapdl/core/mapdl_functions.py,PKG-INFO,*.mypy_cache/*,./docker/mapdl/*,./_unused/*'
quiet-level = 3
ignore-regex=".*codespell-ignore$|NORML|POIN"
ignore-words = "doc/styles/config/vocabularies/ANSYS/accept.txt"
[tool.numpydoc_validation]
checks = [
#"all", # report on all checks, except the below
# "GL01", # "Docstring text (summary) should start in the line immediately "
# "after the opening quotes (not in the same line, or leaving a "
# "blank line in between)",
# "GL02", # "Closing quotes should be placed in the line after the last text "
# "in the docstring (do not close the quotes in the same line as "
# "the text, or leave a blank line between the last text and the "
# "quotes)",
# "GL03", # "Double line break found; please use only one blank line to "
# "separate sections or paragraphs, and do not leave blank lines "
# "at the end of docstrings",
"GL05", # 'Tabs found at the start of line "{line_with_tabs}", please use '
# "whitespace only",
# "GL06", # 'Found unknown section "{section}". Allowed sections are: '
# "{allowed_sections}",
# "GL07", # "Sections are in the wrong order. Correct order is: {correct_sections}",
# "GL08", # "The object does not have a docstring",
# "GL09", # "Deprecation warning should precede extended summary",
"GL10", # "reST directives {directives} must be followed by two colons",
# "SS01", # "No summary found (a short summary in a single line should be "
# "present at the beginning of the docstring)",
"SS02", # "Summary does not start with a capital letter",
# "SS03", # "Summary does not end with a period",
"SS04", # "Summary contains heading whitespaces",
# "SS05", # "Summary must start with infinitive verb, not third person "
# '(e.g. use "Generate" instead of "Generates")',
# "SS06", # "Summary should fit in a single line",
# "ES01", # "No extended summary found",
# "PR01", # "Parameters {missing_params} not documented",
# "PR02", # "Unknown parameters {unknown_params}",
"PR03", # "Wrong parameters order. Actual: {actual_params}. "
# "Documented: {documented_params}",
# "PR04", # 'Parameter "{param_name}" has no type',
"PR05", # 'Parameter "{param_name}" type should not finish with "."',
"PR06", # 'Parameter "{param_name}" type should use "{right_type}" instead '
# 'of "{wrong_type}"',
"PR07", # 'Parameter "{param_name}" has no description',
# "PR08", # 'Parameter "{param_name}" description should start with a '
# "capital letter",
# "PR09", # 'Parameter "{param_name}" description should finish with "."',
# "PR10", # 'Parameter "{param_name}" requires a space before the colon '
# "separating the parameter name and type",
# "RT01", # "No Returns section found",
# "RT02", # "The first line of the Returns section should contain only the "
# "type, unless multiple values are being returned",
# "RT03", # "Return value has no description",
# "RT04", # "Return value description should start with a capital letter",
# "RT05", # 'Return value description should finish with "."',
"YD01", # "No Yields section found",
# "SA01", # "See Also section not found",
"SA02", # "Missing period at end of description for See Also "
# '"{reference_name}" reference',
"SA03", # "Description should be capitalized for See Also "
# '"{reference_name}" reference',
"SA04", # 'Missing description for See Also "{reference_name}" reference',
# "EX01", # "No examples section found",
]
override_SS05 = [ # override SS05 to allow docstrings starting with these words
# '^Process ',
# '^Assess ',
# '^Access ',
]
[tool.towncrier]
package = "ansys.mapdl.core"
directory = "doc/changelog.d"
filename = "doc/source/changelog.rst"
template = "doc/changelog.d/changelog_template.jinja"
start_string = ".. towncrier release notes start\n"
title_format = "`{version} <https://github.com/ansys/pymapdl/releases/tag/v{version}>`_ - {project_date}"
issue_format = "`#{issue} <https://github.com/ansys/pymapdl/pull/{issue}>`_"
[[tool.towncrier.type]]
directory = "added"
name = "Added"
showcontent = true
[[tool.towncrier.type]]
directory = "changed"
name = "Changed"
showcontent = true
[[tool.towncrier.type]]
directory = "fixed"
name = "Fixed"
showcontent = true
[[tool.towncrier.type]]
directory = "dependencies"
name = "Dependencies"
showcontent = true
[[tool.towncrier.type]]
directory = "miscellaneous"
name = "Miscellaneous"
showcontent = true
[[tool.towncrier.type]]
directory = "documentation"
name = "Documentation"
showcontent = true
[[tool.towncrier.type]]
directory = "maintenance"
name = "Maintenance"
showcontent = true
[[tool.towncrier.type]]
directory = "test"
name = "Test"
showcontent = true