-
-
Notifications
You must be signed in to change notification settings - Fork 65
/
pyproject.toml
209 lines (185 loc) · 5.58 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
[build-system]
requires = ["poetry-core>=1.0.0", "pybind11>=2.12.0", "pybind11[global]>=2.12.0"] # "setuptools>=68.0.0",
build-backend = "poetry.core.masonry.api"
[tool.poetry.dev-dependencies]
Pygments = ">=2.10.0"
bandit = ">=1.7.4"
black = ">=21.10b0"
coverage = {extras = ["toml"], version = ">=6.2"}
darglint = ">=1.8.1"
flake8 = ">=4.0.1"
flake8-docstrings = ">=1.6.0"
flake8-rst-docstrings = ">=0.2.5"
furo = ">=2021.11.12"
isort = ">=5.10.1"
mypy = ">=0.930"
pep8-naming = ">=0.12.1"
pre-commit = ">=2.16.0"
pre-commit-hooks = ">=4.1.0"
pytest = ">=6.2.5"
pyupgrade = ">=2.29.1"
safety = ">=1.10.3"
sphinx = ">=4.3.2"
sphinx-autobuild = ">=2021.3.14"
sphinx-click = ">=3.0.2"
typeguard = ">=2.13.3"
xdoctest = {extras = ["colors"], version = ">=0.15.10"}
myst-parser = {version = ">=0.16.1"}
[project]
name = "pyxcp"
dynamic = ["license", "readme", "authors", "requires-python", "description", "classifiers", "scripts", "dependencies", "optional-dependencies"]
[tool.poetry]
authors = ["Christoph Schueler <cpu.gems@googlemail.com>"]
name = "pyxcp"
version = "0.22.12"
readme = "README.md"
description = "Universal Calibration Protocol for Python"
keywords = ["automotive", "ecu", "xcp", "asam", "autosar"]
homepage = "https://github.com/christoph2/pyxcp"
license = "LGPLv3"
classifiers = [
"Development Status :: 5 - Production/Stable",
"Intended Audience :: Developers", "Topic :: Software Development",
"Topic :: Scientific/Engineering",
"License :: OSI Approved :: GNU Lesser General Public License v3 or later (LGPLv3+)",
"Programming Language :: Python :: 3.8",
"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"
]
build = "build_ext.py"
include = [
{ path = "pyxcp/cpp_ext/*.so", format = "wheel" },
{ path = "pyxcp/cpp_ext/*.pyd", format = "wheel" },
{ path = "pyxcp/daq_stim/*.so", format = "wheel" },
{ path = "pyxcp/daq_stim/*.pyd", format = "wheel" },
{ path = "pyxcp/recorder/*.so", format = "wheel" },
{ path = "pyxcp/recorder/*.pyd", format = "wheel" },
{ path = "pyxcp/*.exe", format = "wheel" },
{ path = "CMakeLists.txt", format = "sdist" },
{ path = "pyxcp/cpp_ext/*hpp", format = "sdist" },
{ path = "pyxcp/cpp_ext/*cpp", format = "sdist" },
{ path = "pyxcp/daq_stim/*hpp", format = "sdist" },
{ path = "pyxcp/daq_stim/*cpp", format = "sdist" },
{ path = "pyxcp/recorder/*hpp", format = "sdist" },
{ path = "pyxcp/recorder/*cpp", format = "sdist" },
]
[tool.poetry.dependencies]
python = "^3.8.1"
construct = "^2.10.68"
mako = "^1.2.4"
pyserial = "^3.5"
pyusb = "^1.2.1"
python-can = "^4.2.2"
uptime = "^3.0.1"
rich = "^13.6.0"
chardet = "^5.2.0"
traitlets = "<=5.11.2"
line-profiler-pycharm = "^1.1.0"
toml = "^0.10.2"
bandit = "^1.7.8"
tomlkit = "^0.12.5"
pytz = "^2024.1"
[tool.poetry.group.dev.dependencies]
ruff = "^0.1.0"
pre-commit-hooks = "^4.6.0"
darglint = "^1.8.1"
[tool.poetry.scripts]
pyxcp-probe-can-drivers = "pyxcp.scripts.pyxcp_probe_can_drivers:main"
xcp-id-scanner = "pyxcp.scripts.xcp_id_scanner:main"
xcp-fetch-a2l = "pyxcp.scripts.xcp_fetch_a2l:main"
xcp-info = "pyxcp.scripts.xcp_info:main"
xcp-profile = "pyxcp.scripts.xcp_profile:main"
xcp-examples = "pyxcp.scripts.xcp_examples:main"
[tool.pytest]
addopts = "--verbose --tb=short --junitxml=result.xml -o junit_family=xunit2"
testpaths = "pyxcp/tests"
[tool.isort]
profile = "black"
force_single_line = false
lines_after_imports = 2
[tool.mypy]
strict = false
warn_unreachable = true
pretty = true
show_column_numbers = true
show_error_context = true
[tool.flake8]
ignore = ["D203", "E203", "E266", "E501", "W503", "F403", "F401", "BLK100"]
exclude = '''
/(
\.git
| __pycache__
| __pypackages__
| \.mypy_cache
| \.tox
| \.venv
| \.eggs
| _build
| build
| docs
| dist
| experimental
)/
'''
max-complexity = 10
count = true
statistics = true
show-source = true
max-line-length = 132
select = ["B","C","E","F","W","T4","B9"]
# extend-select = "B950"
extend-ignore = ["E203", "E501", "E701"]
[tool.ruff]
line-length = 132
[tool.black]
line-length=132
include = '\.pyi?$'
exclude = '''
/(
\.git
| \.mypy_cache
| \.tox
| \.venv
| _build
| build
| docs
| experimental
| __pycache__
| __pypackages__
| dist
)/
'''
[tool.cibuildwheel]
build-verbosity = 3
#test-command = "pytest {package}/tests"
build = "cp3{8,9,10,11,12,13}-*"
skip = ["*-manylinux_i686", "*-musllinux_x86_64", "*-musllinux_i686", "cp38-manylinux*", "cp39-manylinux*"]
build-frontend = "build"
[tool.cibuildwheel.macos]
archs = ["x86_64", "universal2", "arm64"]
[tool.cibuildwheel.windows]
archs = ["AMD64"] # , "ARM64"
[[tool.cibuildwheel.overrides]]
select = "cp3?-*"
manylinux-x86_64-image = "manylinux_2_35"
manylinux-aarch64-image = "manylinux_2_35"
[tool.cibuildwheel.linux]
# archs = ["auto", "aarch64"]
archs = ["x86_64", "aarch64"]
before-all = "yum install -y libffi openssl openssl-devel gcc"
[tool.pyright]
include = ["pyxcp", "build_ext.py"]
ignore = ["pyxcp/recorder/converter/**", "pyxcp/recorder/simdjson/**","pyxcp/recorder/mio/**", "pyxcp/recorder/lz4/**"]
#defineConstant = { DEBUG = true }
#stubPath = "src/stubs"
reportMissingImports = true
reportMissingTypeStubs = false
#executionEnvironments = [
# { root = "src/web", pythonVersion = "3.5", pythonPlatform = "Windows", extraPaths = [ "src/service_libs" ] },
# { root = "src/sdk", pythonVersion = "3.0", extraPaths = [ "src/backend" ] },
# { root = "src/tests", extraPaths = ["src/tests/e2e", "src/sdk" ]},
# { root = "src" }
#]