generated from ansys/template
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathpyproject.toml
191 lines (173 loc) · 4.36 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
[build-system]
requires = [
"flit_core>=3.2,<4"
]
build-backend = "flit_core.buildapi"
[project]
name = "ansys-pyensight-core"
version = "0.10.0-dev0"
description = "A python wrapper for Ansys EnSight"
readme = "README.rst"
requires-python = ">=3.9,<4"
license = {file = "LICENSE"}
authors = [{name = "ANSYS, Inc.", email = "[email protected]"}]
maintainers = [{name = "ANSYS, Inc.", email = "[email protected]"}]
classifiers = [
"Development Status :: 4 - Beta",
"Intended Audience :: Science/Research",
"Topic :: Scientific/Engineering :: Information Analysis",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
]
dependencies = [
"importlib-metadata>=4.0; python_version<='3.8'",
"ansys-api-pyensight==0.4.6",
"requests>=2.28.2",
"docker>=6.1.0",
"urllib3<3.0.0",
"numpy>=1.21.0,<3",
"Pillow>=9.3.0",
"pypng>=0.0.20",
"psutil>=5.9.2",
"usd-core>=24.8",
"pygltflib>=1.16.2"
]
[project.optional-dependencies]
dev = [
"build>=0.10.0",
"bump2version>=1.0.1",
"ipdb>=0.9.4",
"dill>=0.3.5.1",
"pre-commit>=3.3.3",
]
tests = [
"pytest==8.3.2",
"pytest-cov==5.0.0",
"dill>=0.3.5.1",
"pytest-mock==3.10.0",
"urllib3==2.2.2",
"requests>=2.28.2",
"docker>=6.1.0",
"pytest-xdist==3.6.1",
"pytest-rerunfailures~=14.0",
]
doc = [
"Sphinx==8.0.2",
"numpydoc==1.8.0",
"ansys-sphinx-theme==1.1.1",
"sphinx-copybutton==0.5.2",
"sphinx-gallery==0.17.1",
"sphinxcontrib-mermaid==0.9.2",
"docker>=6.1.0",
"matplotlib==3.9.1.post1",
"requests>=2.28.2",
"sphinxcontrib.jquery==4.1",
"sphinxcontrib-openapi==0.8.4",
"coverage-badge==1.1.2",
"sphinxcontrib-video==0.2.1",
"usd-core>=24.8",
"pygltflib>=1.16.2",
]
[project.urls]
Documentation = "https://ensight.docs.pyansys.com/"
Homepage = "https://github.com/ansys/pyensight"
Source = "https://github.com/ansys/pyensight"
Tracker = "https://github.com/ansys/pyensight/issues"
Changelog = "https://github.com/ansys/pyensight/blob/main/CHANGELOG.rst"
[tool.flit.module]
name = "ansys.pyensight.core"
[tool.coverage.run]
branch = true
omit = [
"*/locallauncher.py",
"*/adr.py",
"*/omniverse*.py",
"*/dsg_server.py",
"*/readers.py",
"*/omniverse/core/*.py",
"*/omniverse/dsgui/*.py",
]
[tool.coverage.report]
exclude_lines = [
"pragma: no cover",
"def __repr__",
"if selfdebug",
"raise AssertionError",
"raise NotImplementedError",
"if 0:",
"if __name__ == .__main__.:",
"@(abc.)?abstractmethod",
"if TYPE_CHECKING:",
"def _repr_pretty_",
"self._pim_instance",
"self._pim_file_service",
"def _launch_ensight_with_pim"]
ignore_errors = true
show_missing = true
[tool.coverage.html]
show_contexts = true
[tool.black]
line-length = 100
src_paths = ["src/ansys", "doc"]
[tool.pytest.ini_options]
minversion = "7.1"
testpaths = [
"tests",
]
addopts = "--setup-show --cov=ansys.pyensight.core --cov-report html:coverage-html --cov-report term --cov-config=.coveragerc --capture=tee-sys --tb=native -p no:warnings"
markers =[
"integration:Run integration tests",
"smoke:Run the smoke tests",
"unit:Run the unit tests",
]
norecursedirs = ".git .idea"
filterwarnings = "ignore:.+:DeprecationWarning"
[tool.codespell]
ignore-words-list = "ro, te, pres"
quiet-level = 3
skip = "*.pyc,*.xml,*.gif,*.png,*.jpg,*.js,*.html,*.svg,tests/ensigth_api_test_assets.txt"
[tool.isort]
profile = "black"
skip_gitignore = true
force_sort_within_sections = true
line_length = 100
default_section = "THIRDPARTY"
filter_files = true
src_paths = ["ansys", "doc", "tests"]
[tool.bandit]
level = "HIGH"
number = "3"
recursive = true
exclude = ["venv/*", "tests/*"]
[tool.mypy]
python_version = 3.9
strict = false
namespace_packages = true
explicit_package_bases = true
exclude = ["tests/", "^doc"]
no_site_packages = true
follow_imports = "skip"
[[tool.mypy.overrides]]
module = ["grpc",
"grpc_health",
"grpc_bindings",
"requests",
"ansys",
"ansys.*",
"docker",
"dill",
"IPython.display",
"enve",
"urllib3",
"ensight",
"numpy",
"PIL",
"simple_upload_server.*"
]
ignore_missing_imports = true
[pydocstyle]
convention = "numpy"