-
Notifications
You must be signed in to change notification settings - Fork 128
/
pyproject.toml
199 lines (186 loc) · 6.15 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
[build-system]
requires = ["setuptools", "wheel"]
build-backend = "setuptools.build_meta"
[project]
name = "pyaedt"
dynamic = ["version"]
description = "High-level Python API for Ansys Electronics Desktop Framework"
readme = "README.md"
requires-python = ">=3.8,<4"
license = {file = "LICENSE"}
authors = [{name = "ANSYS, Inc.", email = "[email protected]"}]
maintainers = [{name = "ANSYS, Inc.", email = "[email protected]"}]
classifiers = [
# General classifiers
"Development Status :: 4 - Beta",
"Intended Audience :: Developers",
"Intended Audience :: Science/Research",
"Intended Audience :: Manufacturing",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Topic :: Software Development :: Libraries",
"Topic :: Scientific/Engineering :: Electronic Design Automation (EDA)",
"Topic :: Scientific/Engineering :: Information Analysis",
# Additional specific classifiers
"Operating System :: OS Independent",
]
dependencies = [
"fpdf2",
"jsonschema",
"psutil",
"pyedb>=0.4.0; python_version == '3.7'",
"pyedb>=0.24.0; python_version > '3.7'",
"pyedb!=0.28.0; python_version > '3.7'",
"pytomlpp; python_version < '3.12'",
"rpyc>=6.0.0,<6.1",
"pyyaml",
"defusedxml>=0.7,<8.0"
]
[project.optional-dependencies]
unit-tests = [
"pytest>=7.4.0,<8.4",
"pytest-cov>=4.0.0,<6.1",
"mock>=5.1.0,<5.2",
]
tests = [
"ipython>=7.30.0,<8.30",
"joblib>=1.0.0,<1.5",
"matplotlib>=3.5.0,<3.10",
"mock>=5.1.0,<5.2",
"numpy>=1.20.0,<2",
"openpyxl>=3.1.0,<3.3",
"osmnx>=1.1.0,<1.10",
"pandas>=1.1.0,<2.3",
"pytest>=7.4.0,<8.4",
"pytest-cov>=4.0.0,<6.1",
"pytest-xdist>=3.5.0,<3.7",
"pyvista[io]>=0.38.0,<0.45",
# Never directly imported but required when loading ML related file see #4713
"scikit-learn>=1.0.0,<1.6",
"scikit-rf>=0.30.0,<1.5",
"SRTM.py",
"utm",
]
dotnet = [
"ansys-pythonnet>=3.1.0rc3",
"cffi==1.17.1; platform_system=='Linux' and python_version == '3.7'",
"cffi>=1.16.0,<1.18; platform_system=='Linux' and python_version > '3.7'",
"dotnetcore2==3.1.23; platform_system=='Linux'",
"pywin32>=303; platform_system=='Windows'",
]
doc = [
"ansys-sphinx-theme>=1.0.0,<1.3",
"numpydoc>=1.5.0,<1.9",
"recommonmark",
"Sphinx>=7.1.0,<8.2",
# NOTE: latest compatible version for Python 3.8 is 2021.3.14
"sphinx-autobuild==2021.3.14; python_version == '3.8'",
"sphinx-autobuild==2024.10.3; python_version > '3.8'",
"sphinx-copybutton>=0.5.0,<0.6",
"sphinx-gallery>=0.14.0,<0.18",
"sphinx_design>=0.4.0,<0.7",
"pyvista[io]>=0.38.0,<0.45",
]
all = [
"matplotlib>=3.5.0,<3.10",
"numpy>=1.20.0,<2",
"openpyxl>=3.1.0,<3.3",
"osmnx>=1.1.0,<1.10",
"pandas>=1.1.0,<2.3",
"pyvista[io]>=0.38.0,<0.45",
"fast-simplification>=0.1.7",
# Never directly imported but required when loading ML related file see #4713
"scikit-learn>=1.0.0,<1.6",
"scikit-rf>=0.30.0,<1.5",
"SRTM.py",
"utm",
]
installer = [
"matplotlib>=3.5.0,<3.10",
"numpy>=1.20.0,<2",
"openpyxl>=3.1.0,<3.3",
"osmnx>=1.1.0,<1.10",
"pandas>=1.1.0,<2.3",
"pyvista[io]>=0.38.0,<0.45",
# Never directly imported but required when loading ML related file see #4713
"scikit-learn>=1.0.0,<1.6",
"scikit-rf>=0.30.0,<1.5",
"SRTM.py",
"utm",
"jupyterlab>=3.6.0,<4.4",
"ipython>=7.30.0,<8.30",
"ipyvtklink>=0.2.0,<0.2.4",
]
[tool.setuptools.dynamic]
version = {attr = "ansys.aedt.core.__version__"}
[project.urls]
Bugs = "https://github.com/ansys/pyaedt/issues"
Documentation = "https://aedt.docs.pyansys.com"
Source = "https://github.com/ansys/pyaedt"
Discussions = "https://github.com/ansys/pyaedt/discussions"
Releases = "https://github.com/ansys/pyaedt/releases"
[tool.black]
line-length = 120
[tool.isort]
profile = "black"
force_sort_within_sections = true
line_length = 120
default_section = "THIRDPARTY"
src_paths = ["doc", "src/ansys/aedt/core", "tests"]
[tool.codespell]
ignore-words = "ignore_words.txt"
skip = """
*.pyc,*.aedt,*.xml,*.txt,*.gif,*.png,*.jpg,*.js,*.html,*.doctree,*.ttf,*.woff,*.woff2,*.eot,*.mp4,*.inv,*.pickle,\
*.ipynb,flycheck*,./.git/*,./.hypothesis/*,*.yml,./docs/build/*,./docs/images/*,./dist/*,*~,.hypothesis*,\
./src/ansys/aedt/core/third_party,./docs/source/examples/*,*cover,*.dat,*.mac,PKG-INFO,*.mypy_cache/*,*.xml,*.aedt,*.svg
"""
enable-colors = true
[tool.coverage.run]
source = ["src/ansys/aedt/core"]
[tool.coverage.report]
show_missing = true
omit = ["src/ansys/aedt/core/rpc/*.py"]
[tool.pytest.ini_options]
markers = [
"unit",
"system",
"solvers",
"general",
]
filterwarnings = [
"ignore::UserWarning:src.ansys.aedt.core.*",
"ignore::DeprecationWarning:src.*",
"ignore::UserWarning:ansys.aedt.core.*",
"ignore::DeprecationWarning:ansys.aedt.core.*"
]
[tool.numpydoc_validation]
checks = [
"GL06", # Found unknown section
"GL07", # Sections are in the wrong order.
"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
# Return
"RT04", # Return value description should start with a capital letter"
"RT05", # Return value description should finish with "."
# Summary
"SS01", # No summary found
"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
# Parameters
"PR10", # Parameter "{param_name}" requires a space before the colon
# separating the parameter name and type",
]
exclude = [
'\.AEDTMessageManager.add_message$', # bad SS05
'\.Modeler3D\.create_choke$', # bad RT05
'\.tests', # missing docstring for tests
'HistoryProps.', # bad RT05 because of the base class named OrderedDict
]