-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathpyproject.toml
More file actions
148 lines (130 loc) · 3.72 KB
/
pyproject.toml
File metadata and controls
148 lines (130 loc) · 3.72 KB
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
[build-system]
requires = ["scikit-build-core>=0.11", "pybind11>=2.13"]
build-backend = "scikit_build_core.build"
[project]
name = "opensomeip"
version = "0.1.3"
description = "Python bindings for the opensomeip C++ SOME/IP stack"
readme = "README.md"
license = "Apache-2.0"
requires-python = ">=3.10"
authors = [{ name = "opensomeip-python contributors" }]
classifiers = [
"Development Status :: 3 - Alpha",
"Intended Audience :: Developers",
"Operating System :: POSIX :: Linux",
"Operating System :: MacOS",
"Operating System :: Microsoft :: Windows",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Programming Language :: Python :: 3.14",
"Programming Language :: C++",
"Topic :: System :: Networking",
"Topic :: Software Development :: Libraries :: Python Modules",
"Typing :: Typed",
]
keywords = ["someip", "automotive", "networking", "protocol", "bindings"]
[project.optional-dependencies]
dev = [
"pytest>=7.0",
"pytest-cov>=4.0",
"pytest-asyncio>=0.23",
"hypothesis>=6.0",
"ruff>=0.4",
"mypy>=1.10",
"typing_extensions>=4.0",
]
docs = [
"sphinx>=7.0",
"sphinx-rtd-theme>=2.0",
"sphinx-autodoc-typehints>=2.0",
]
[project.urls]
Homepage = "https://github.com/vtz/opensomeip-python"
Repository = "https://github.com/vtz/opensomeip-python"
Issues = "https://github.com/vtz/opensomeip-python/issues"
Documentation = "https://opensomeip-python.readthedocs.io"
[tool.scikit-build]
minimum-version = "build-system.requires"
build-dir = "build/{wheel_tag}"
wheel.packages = ["src/opensomeip"]
cmake.build-type = "Release"
[tool.scikit-build.cmake.define]
OPENSOMEIP_PYTHON_VERSION = "0.1.3"
[tool.pytest.ini_options]
testpaths = ["tests"]
asyncio_mode = "auto"
markers = [
"multicast: tests requiring multicast support (may be skipped in CI)",
"integration: integration tests requiring network access",
]
[tool.ruff]
target-version = "py310"
line-length = 99
[tool.ruff.lint]
select = [
"E", "W", # pycodestyle
"F", # pyflakes
"I", # isort
"N", # pep8-naming
"UP", # pyupgrade
"B", # flake8-bugbear
"SIM", # flake8-simplify
"RUF", # ruff-specific
]
ignore = [
"RUF022", # __all__ sorting is not required
"UP035", # allow typing imports for compat
"SIM105", # contextlib.suppress less readable for C++ fallback guards
]
[tool.mypy]
python_version = "3.10"
strict = true
warn_return_any = true
warn_unused_configs = true
disallow_untyped_defs = true
[[tool.mypy.overrides]]
module = "_opensomeip.*"
ignore_missing_imports = true
[tool.coverage.run]
source = ["opensomeip"]
omit = ["tests/*"]
[tool.coverage.report]
fail_under = 90
show_missing = true
exclude_also = [
"pragma: no cover",
"if self\\._cpp is not None",
"if ext is not None",
"require_native\\(",
"def _on_response\\(",
"def _cpp_handler\\(",
]
[tool.towncrier]
package = "opensomeip"
directory = "changes"
filename = "CHANGELOG.md"
start_string = "<!-- towncrier release notes start -->\n"
underlines = ["", "", ""]
title_format = "## [{version}](https://github.com/vtz/opensomeip-python/releases/tag/v{version}) - {project_date}"
[[tool.towncrier.type]]
directory = "feature"
name = "Features"
showcontent = true
[[tool.towncrier.type]]
directory = "bugfix"
name = "Bug Fixes"
showcontent = true
[[tool.towncrier.type]]
directory = "breaking"
name = "Breaking Changes"
showcontent = true
[[tool.towncrier.type]]
directory = "misc"
name = "Miscellaneous"
showcontent = false
[tool.opensomeip]
opensomeip-version = "0.1.3"