-
Notifications
You must be signed in to change notification settings - Fork 14
/
pyproject.toml
224 lines (200 loc) · 6.12 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
[build-system]
requires = ["flit_core >=3.2,<4"]
build-backend = "flit_core.buildapi"
[project]
name = "ansys-geometry-core"
version = "0.8.dev0"
description = "A python wrapper for Ansys Geometry service"
readme = "README.rst"
requires-python = ">=3.10,<4"
license = { file = "LICENSE" }
authors = [{ name = "ANSYS, Inc.", email = "pyansys.core@ansys.com" }]
maintainers = [{ name = "ANSYS, Inc.", email = "pyansys.core@ansys.com" }]
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.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
]
dependencies = [
"ansys-api-geometry==0.4.15",
"ansys-tools-path>=0.3,<1",
"ansys-tools-visualization-interface>=0.2.6,<1",
"beartype>=0.11.0,<0.20",
"grpcio>=1.35.0,<2",
"grpcio-health-checking>=1.45.0,<2",
"numpy>=1.20.3,<3",
"Pint>=0.18,<1",
"protobuf>=3.20.2,<6",
"pyvista>=0.37.0,<1",
"requests>=2,<3",
"scipy>=1.7.3,<2",
"semver>=3,<4",
"six>=1.16.0,<2",
"vtk>=9,<10",
]
[project.optional-dependencies]
all = [
"ansys-platform-instancemanagement>=1.0.3,<2",
"docker>=6.0.1,<8",
"pyvista[jupyter]>=0.38.1,<1",
]
tests = [
"ansys-platform-instancemanagement==1.1.2",
"ansys-tools-path==0.6.0",
"ansys-tools-visualization-interface==0.5.0",
"beartype==0.19.0",
"docker==7.1.0",
"grpcio==1.67.1",
"grpcio-health-checking==1.67.1",
"numpy==2.1.3",
"Pint==0.24.4",
"protobuf==5.28.3",
"pytest==8.3.3",
"pytest-cov==6.0.0",
"pytest-pyvista==0.1.9",
"pytest-xvfb==3.0.0",
"pyvista[jupyter]==0.44.1",
"requests==2.32.3",
"scipy==1.14.1",
"semver==3.0.2",
"six==1.16.0",
"vtk==9.3.1",
]
tests-minimal = [
"pytest==8.3.3",
"pytest-cov==6.0.0",
"pytest-pyvista==0.1.9",
"pytest-xvfb==3.0.0",
]
doc = [
"ansys-sphinx-theme[autoapi]==1.2.0",
"ansys-tools-path==0.6.0",
"ansys-tools-visualization-interface==0.5.0",
"beartype==0.19.0",
"docker==7.1.0",
"grpcio==1.67.1",
"grpcio-health-checking==1.67.1",
"ipyvtklink==0.2.3",
"jupyter_sphinx==0.5.3",
"jupytext==1.16.4",
"myst-parser==4.0.0",
"nbconvert==7.16.4",
"nbsphinx==0.9.5",
"notebook==7.2.2",
"numpydoc==1.8.0",
"numpy==2.1.3",
"panel==1.5.3",
"Pint==0.24.4",
"protobuf==5.28.3",
"pyvista[jupyter]==0.44.1",
"requests==2.32.3",
"scipy==1.14.1",
"semver==3.0.2",
"six==1.16.0",
"sphinx==8.1.3",
"sphinx-autodoc-typehints==2.5.0",
"sphinx-copybutton==0.5.2",
"sphinx-jinja==2.0.2",
"trame-vtk==2.8.11",
"vtk==9.3.1",
]
[project.urls]
Source = "https://github.com/ansys/pyansys-geometry"
Issues = "https://github.com/ansys/pyansys-geometry/issues"
Discussions = "https://github.com/ansys/pyansys-geometry/discussions"
Documentation = "https://geometry.docs.pyansys.com"
Releases = "https://github.com/ansys/pyansys-geometry/releases"
Changelog = "https://github.com/ansys/pyansys-geometry/blob/main/doc/source/changelog.rst"
[tool.flit.module]
name = "ansys.geometry.core"
[tool.ruff]
line-length = 100
fix = true
extend-exclude = ["tests/integration/files"]
[tool.ruff.format]
quote-style = "double"
indent-style = "space"
docstring-code-format = true
docstring-code-line-length = "dynamic"
[tool.ruff.lint]
select = [
"E", # pycodestyle, see https://docs.astral.sh/ruff/rules/#pycodestyle-e-w
"D", # pydocstyle, see https://docs.astral.sh/ruff/rules/#pydocstyle-d
"F", # pyflakes, see https://docs.astral.sh/ruff/rules/#pyflakes-f
"I", # isort, see https://docs.astral.sh/ruff/rules/#isort-i
"N", # pep8-naming, see https://docs.astral.sh/ruff/rules/#pep8-naming-n
"PTH", # flake8-use-pathlib, https://docs.astral.sh/ruff/rules/#flake8-use-pathlib-pth
"TD", # flake8-todos, https://docs.astral.sh/ruff/rules/#flake8-todos-td
]
ignore = [
"TD002", # Missing author in TODOs comment
]
[tool.ruff.lint.per-file-ignores]
# Ignore `F401` (import violations) in all `__init__.py` files.
"__init__.py" = ["F401"]
# Ignore `E402` (module level import not at top of file) in `src/ansys/geometry/core/__init__.py`.
"src/ansys/geometry/core/__init__.py" = ["E402"]
# Ignore `D` rules everywhere except for the `src/` directory.
"!src/**.py" = ["D"]
[tool.ruff.lint.pydocstyle]
convention = "numpy"
[tool.ruff.lint.isort]
combine-as-imports = true
force-sort-within-sections = true
known-first-party = ["ansys.geometry.core"]
[tool.coverage.run]
source = ["ansys.geometry"]
[tool.coverage.report]
show_missing = true
[tool.pytest.ini_options]
minversion = "7.1"
addopts = "-ra --cov=ansys.geometry --cov-report html:.cov/html --cov-report xml:.cov/xml --cov-report term -vv --image_cache_dir tests/integration/image_cache --add_missing_images"
testpaths = ["tests"]
[tool.towncrier]
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/pyansys-geometry/releases/tag/v{version}>`_ - {project_date}"
issue_format = "`#{issue} <https://github.com/ansys/pyansys-geometry/pull/{issue}>`_"
[[tool.towncrier.type]]
directory = "added"
name = "Added"
showcontent = true
[[tool.towncrier.type]]
directory = "dependencies"
name = "Dependencies"
showcontent = true
[[tool.towncrier.type]]
directory = "documentation"
name = "Documentation"
showcontent = true
[[tool.towncrier.type]]
directory = "fixed"
name = "Fixed"
showcontent = true
[[tool.towncrier.type]]
directory = "maintenance"
name = "Maintenance"
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