generated from ansys/template
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpyproject.toml
211 lines (181 loc) · 4.92 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
[build-system]
requires = ["poetry-core>=1.0.0"]
build-backend = "poetry.core.masonry.api"
[tool.poetry]
name = "ansys-openapi-common"
description = "Provides a helper to create sessions for use with Ansys OpenAPI clients."
version = "2.3.0"
license = "MIT"
authors = ["ANSYS, Inc. <[email protected]>"]
maintainers = ["ANSYS, Inc. <[email protected]>"]
repository = "https://github.com/ansys/openapi-common"
documentation = "https://openapi.docs.pyansys.com"
readme = "README.rst"
keywords = [
"Ansys",
"OpenAPI"
]
classifiers = [
"License :: OSI Approved :: MIT License",
"Development Status :: 5 - Production/Stable",
"Intended Audience :: Science/Research",
"Topic :: Scientific/Engineering :: Information Analysis",
"Operating System :: Microsoft :: Windows",
"Operating System :: POSIX",
"Operating System :: MacOS",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
]
packages = [
{ include = "**/*.py", from = "src" },
{ include = "**/py.typed", from = "src" }
]
[tool.poetry.dependencies]
python = "^3.10"
# Packages for core library
requests = "^2.26"
requests-negotiate-sspi = { version = "^0.5.2", markers = "sys_platform == 'win32'"}
requests-ntlm = "^1.1.0"
pyparsing = "^3.0.8"
python-dateutil ="^2.9"
# Packages for oidc extra
requests_auth = { version = "^8.0.0", optional = true }
keyring = { version = ">=22,<26", optional = true }
# Packages for linux-kerberos extra
requests-kerberos = {version = ">=0.13,<0.16", markers = "sys_platform == 'linux'", optional = true }
[tool.poetry.group.dev.dependencies]
# Test packages
pytest = { version = "*" }
pytest-cov = { version = "*" }
uvicorn = { version = "*" }
fastapi = { version = "*" }
pydantic = { version = "*" }
requests-mock = { version = "*" }
pytest-mock = { version = "*" }
covertable = { version = "*" }
mypy = "^1.8.0"
types-requests = { version = "*" }
types-python-dateutil = { version = "*" }
requests_auth = { version = "*" }
keyring = { version = "*" }
sphinx-design = "^0.6.0"
[tool.poetry.group.dev-linux]
optional = true
[tool.poetry.group.dev-linux.dependencies]
asgi_gssapi = { version = "*", markers = "sys_platform == 'linux'" }
[tool.poetry.group.doc]
optional = true
[tool.poetry.group.doc.dependencies]
# Doc packages
ansys-sphinx-theme = { version = "1.2.6" }
numpydoc = { version = "1.8.0" }
sphinx = { version = "8.1.3" }
sphinx-notfound-page = { version = "1.0.4" }
sphinx-copybutton = { version = "0.5.2" }
[tool.poetry.extras]
oidc = [
"requests_auth",
"keyring"
]
linux-kerberos = [
"requests-kerberos"
]
[tool.tox]
legacy_tox_ini = """
[tox]
envlist = py310,py311,py312,py313
isolated_build = True
requires =
tox-gh-actions==2.9.1
[gh-actions]
python =
3.10: py310
3.11: py311
3.12: py312
3.13: py313
[testenv]
whitelist_externals = poetry
commands_pre =
poetry install --no-root --with dev-linux --extras "oidc linux-kerberos"
extras =
oidc
linux-kerberos
commands = poetry run pytest --cov=ansys.openapi.common --cov-report=xml {posargs}
"""
[tool.black]
line-length = 100
[tool.isort]
profile = "black"
force_sort_within_sections = true
line_length = 100
default_section = "THIRDPARTY"
src_paths = ["doc", "src", "tests"]
[tool.coverage.run]
omit = [
"**/_base/*"
]
[tool.coverage.report]
show_missing = true
[tool.pytest.ini_options]
testpaths = [
"tests",
]
[tool.pydocstyle]
convention = "numpy"
[tool.mypy]
warn_return_any = true
warn_unused_configs = true
warn_redundant_casts = true
warn_unused_ignores = true
disallow_untyped_defs = true
no_implicit_optional = true
check_untyped_defs = true
show_error_codes = true
files = "src"
explicit_package_bases = true
mypy_path = "$MYPY_CONFIG_FILE_DIR/src"
namespace_packages = true
[tool.towncrier]
package = "ansys.openapi.common"
directory = "doc/changelog.d"
filename = "CHANGELOG.md"
start_string = "<!-- towncrier release notes start -->\n"
underlines = ["", "", ""]
template = "doc/changelog.d/changelog_template.jinja"
title_format = "## [{version}](https://github.com/ansys/openapi-common/releases/tag/v{version}) - {project_date}"
issue_format = "[#{issue}](https://github.com/ansys/openapi-common/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