generated from ansys/template
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpyproject.toml
144 lines (126 loc) · 3.34 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
[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 = "1.4.0"
license = "MIT"
authors = ["ANSYS, Inc. <pyansys.core@ansys.com>"]
maintainers = ["ANSYS, Inc. <pyansys.core@ansys.com>"]
repository = "https://github.com/pyansys/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.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
]
packages = [
{ include = "**/*.py", from = "src" }
]
[tool.poetry.dependencies]
python = "^3.9"
# 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.6.1"
# Packages for oidc extra
requests_auth = { version = ">=6,<8", optional = true }
keyring = { version = ">=22,<25", optional = true }
# Packages for linux-kerberos extra
requests-kerberos = {version = "^0.13", 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 = "*" }
asgi_gssapi = { version = "*", markers = "sys_platform == 'linux'" }
[tool.poetry.group.docs]
optional = true
[tool.poetry.group.docs.dependencies]
# Doc packages
ansys-sphinx-theme = { version = "0.13.2" }
numpydoc = { version = "1.6.0" }
sphinx = { version = "7.2.6" }
sphinx-notfound-page = { version = "1.0.0" }
sphinx-copybutton = { version = "0.5.2" }
[tool.poetry.extras]
oidc = [
"requests_auth",
"keyring"
]
linux-kerberos = [
"requests-kerberos"
]
[tool.tox]
legacy_tox_ini = """
[tox]
envlist = py39,py310,py311,py312
isolated_build = True
requires =
tox-gh-actions==2.9.1
[gh-actions]
python =
3.9: py39
3.10: py310
3.11: py311
3.12: py312
[testenv]
whitelist_externals = poetry
commands_pre =
poetry install --no-root --extras "oidc linux-kerberos"
extras =
oidc
linux-kerberos
commands = poetry run pytest --cov=ansys.openapi.common --cov-report=xml {posargs}
[testenv:lint]
deps =
black
mypy==1.5.1
types-requests
types-urllib3
types-python-dateutil
codespell==2.1.0
commands =
codespell ./src ./tests ./doc/source
black --check ./tests ./src
mypy ./src
"""
[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
[tool.coverage.run]
omit = [
"**/_base/*"
]
[tool.pytest.ini_options]
testpaths = [
"tests",
]