-
Notifications
You must be signed in to change notification settings - Fork 368
/
pyproject.toml
127 lines (118 loc) · 3.54 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
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[project]
dependencies = [
"aiofiles",
"aiosqlite",
"cryptography>42.0.0",
"pyOpenSSL>23.2.0",
"python-dateutil",
"pytz",
"sortedcontainers",
"typing-extensions",
"wait_for2==0.3.2;python_version<'3.12'",
]
version = "1.1.5"
name = "asyncua"
description = "Pure Python OPC-UA client and server library"
requires-python = ">=3.9"
readme = "README.md"
license = { text = "GNU Lesser General Public License v3 or later" }
authors = [
{ name = "Olivier Roulet-Dubonnet", email = "[email protected]" },
]
classifiers = [
"Development Status :: 4 - Beta",
"Intended Audience :: Developers",
"License :: OSI Approved :: GNU Lesser General Public License v3 or later (LGPLv3+)",
"Operating System :: OS Independent",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Topic :: Software Development :: Libraries :: Python Modules",
]
[dependency-groups]
dev = [
"pytest",
"pytest-asyncio == 0.21.2",
"coverage",
"pytest-cov",
"pytest-repeat",
"pytest-mock",
"asynctest",
"types-aiofiles",
"types-pyOpenSSL",
"types-python-dateutil",
"types-pytz",
"ruff",
]
lint = ["ruff", "mypy", "pre-commit"]
[project.scripts]
uabrowse = "asyncua.tools:uals"
uacall = "asyncua.tools:uacall"
uaclient = "asyncua.tools:uaclient"
uadiscover = "asyncua.tools:uadiscover"
uageneratestructs = "asyncua.tools:uageneratestructs"
uahistoryread = "asyncua.tools:uahistoryread"
uals = "asyncua.tools:uals"
uaread = "asyncua.tools:uaread"
uaserver = "asyncua.tools:uaserver"
uasubscribe = "asyncua.tools:uasubscribe"
uawrite = "asyncua.tools:uawrite"
[project.urls]
Homepage = "http://freeopcua.github.io/"
Repository = "https://github.com/FreeOpcUa/opcua-asyncio"
[tool.hatch.build.targets.sdist]
include = ["/asyncua"]
[tool.pytest.ini_options]
log_cli = false
log_level = "INFO"
testpaths = ["tests"]
asyncio_mode = "auto"
[tool.ruff]
line-length = 120
extend-exclude = [
"docs",
"nodeset",
"schemas",
"*_auto.py",
"event_objects.py",
"standard_address_space_services.py",
]
target-version = "py37"
[tool.ruff.lint]
select = ["E", "F", "G004", "W", "UP"]
ignore = [
"E111", # conflicts with ruff format, cf doc
"E114", # conflicts with ruff format, cf doc
"E117", # conflicts with ruff format, cf doc
"E501", # conflicts with ruff format, cf doc
"UP032", # Use f-string instead of `format` call
"UP030", # Use implicit references for positional format fields
"UP027", # Replace unpacked list comprehension with a generator expression
# The following can be removed once the minimum supported Python version is 3.10
# https://github.com/astral-sh/ruff/issues/5035
"UP006", # Use `list` instead of `List` for type annotation
"UP007", # Use `X | Y` for type annotations
]
[tool.ruff.lint.per-file-ignores]
"__init__.py" = ["F401", "F403"]
"examples/*" = ["F841", "E402"]
[tool.mypy]
disable_error_code = ["misc", "arg-type", "assignment", "var-annotated"]
show_error_codes = true
check_untyped_defs = false
mypy_path = "./stubs"
[[tool.mypy.overrides]]
# Autogenerated file
module = "asyncua.ua.uaprotocol_auto.*"
disable_error_code = "literal-required"
[[tool.mypy.overrides]]
module = "asyncua.client.*"
check_untyped_defs = true
[[tool.mypy.overrides]]
module = "asynctest.*"
ignore_missing_imports = true