Debian Codegraph @

pyproject.toml

raw ◀ ▶
Source reconstructed at patch state 0 of 3 — not the installed (fully patched) source.
3 Debian patches touch this file
1 [build-system]
2 requires = ["scikit-build-core", "numpy>=2.0.0"]
3 build-backend = "scikit_build_core.build"
4
5 [project]
6 name = "asammdf"
7 description = "ASAM MDF measurement data file parser"
8 readme = "README.md"
9 requires-python = ">=3.10"
10 license = { text = "LGPLv3+" }
11 authors = [{ name = "Daniel Hrisca", email = "[email protected]" }]
12 dynamic = ["version"]
13 classifiers = [
14 "Development Status :: 5 - Production/Stable",
15 "Intended Audience :: Developers",
16 "Topic :: Software Development",
17 "Topic :: Scientific/Engineering",
18 "License :: OSI Approved :: GNU Lesser General Public License v3 or later (LGPLv3+)",
19 "Programming Language :: Python :: 3.10",
20 "Programming Language :: Python :: 3.11",
21 "Programming Language :: Python :: 3.12",
22 "Programming Language :: Python :: 3.13",
23 "Programming Language :: Python :: 3.14",
24 "Programming Language :: Python :: 3.15",
25 ]
26 keywords = [
27 "read",
28 "reader",
29 "edit",
30 "editor",
31 "parse",
32 "parser",
33 "asam",
34 "mdf",
35 "measurement",
36 ]
37 dependencies = [
38 "chardet>=7.0.0",
39 "canmatrix[arxml,dbc]>=1.2",
40 "isal; platform_machine == 'x86_64' or platform_machine == 'AMD64'",
41 "deflate; platform_machine == 'x86_64' or platform_machine == 'AMD64'",
42 "lxml>=4.9.3",
43 "lz4",
44 "numexpr>=2.10.0",
45 "numpy>=2.0.0",
46 "pandas>=2.2.2",
47 "python-dateutil",
48 "typing-extensions>=4.10",
49 "zstd",
50 ]
51
52 [project.optional-dependencies]
53 decode = ["chardet>=7.0.0"]
54 export = [
55 "pyarrow>=17.0.0",
56 "h5py>=3.11",
57 "hdf5storage>=0.1.19",
58 "python-snappy",
59 "polars>=1.1.0",
60 ]
61 export-matlab-v5 = ["scipy>=1.13.0"]
62 gui = [
63 "natsort",
64 "PySide6>=6.7.0,!=6.9.1",
65 "pyqtgraph>=0.13.4",
66 "pyqtlet2[PySide6]",
67 "packaging",
68 ]
69 encryption = ["cryptography", "keyring"]
70 plot = ["matplotlib"]
71 symbolic-math = ["sympy>=1.13.0"]
72 filesystem = ["fsspec"]
73
74 [project.scripts]
75 asammdf = "asammdf.app.asammdfgui:main [gui]"
76
77 [project.urls]
78 Documentation = "https://asammdf.readthedocs.io/en/master"
79 Issues = "https://github.com/danielhrisca/asammdf/issues"
80 Source = "https://github.com/danielhrisca/asammdf"
81
82 [tool.scikit-build]
83 cmake.version = ">=3.26,<4.2"
84 metadata.version.provider = "scikit_build_core.metadata.regex"
85 metadata.version.input = "src/asammdf/version.py"
86 sdist.include = ["ext"]
87 wheel.packages = ["src/asammdf"]
88 wheel.py-api = "cp310"
89
90 [tool.coverage]
91 run.relative_files = true
92 run.source_pkgs = ["asammdf"]
93 paths.source = ["src", "*/site-packages"]
94 report.omit = ["*/asammdf/gui/ui/*"]
95
96 [tool.cibuildwheel]
97 manylinux-x86_64-image = "manylinux_2_28"
98 test-requires = "pytest"
99 test-command = "pytest {project}/test"
100 build-frontend = "build"
101 archs = ["auto64"] # only build for 64bit architectures
102 # skip pypy and irrelevant architectures
103 skip = ["pp*", "*_ppc64le", "*-musllinux*", "*_s390x", "cp315*", "cp314t*"]
104
105 [tool.mypy]
106 files = "."
107 exclude = ["build/", "ci/", "dist/", "doc/_build/", "ext/", "test/asammdf/gui/"]
108 python_version = "3.10"
109 enable_error_code = ["deprecated"]
110 strict = true
111
112 [[tool.mypy.overrides]]
113 module = [
114 "canmatrix.*",
115 "cmerg.*",
116 "fsspec.*",
117 "h5py.*",
118 "hdf5storage.*",
119 "isal.*",
120 "lz4.*",
121 "mdfreader.*",
122 "mfile.*",
123 "mpl_toolkits.*",
124 "numexpr.*",
125 "pyqtgraph.*",
126 "pyqtlet2.*",
127 "snappy.*",
128 "sympy.*",
129 "xmlrunner.*",
130 ]
131 ignore_missing_imports = true
132
133 [[tool.mypy.overrides]]
134 module = ["asammdf.app.asammdfgui", "asammdf.gui.*"]
135 ignore_errors = true
136
137 [tool.black]
138 line-length = 120
139 target-version = ['py310']
140 extend-exclude = "src/asammdf/gui/ui.*|ext.*"
141
142 [tool.ruff]
143 line-length = 120
144 target-version = "py310"
145 extend-exclude = ["./src/asammdf/gui/ui*", "./ext*"]
146 force-exclude = true
147
148 [tool.ruff.lint]
149 select = [
150 "B", # flake8-bugbear
151 "C4", # flake8-comprehensions
152 "F", # pyflakes
153 "UP", # pyupgrade
154 "I", # isort
155 "PIE", # flake8-pie
156 "PL", # pylint
157 "RUF", # Ruff-specific rules
158 ]
159 ignore = [
160 "B007", # unused-loop-control-variable
161 "F841", # unused-variable
162 "PLC0414", # useless-import-alias
163 "PLC0415", # import-outside-top-level
164 "PLR09", # too-many-this, too-many-that
165 "PLR2004", # magic-value-comparison
166 "PLR5501", # collapsible-else-if
167 "PLW0603", # global-statement
168 "PLW2901", # redefined-loop-name
169 "RUF012", # mutable-class-default
170 "RUF015", # unnecessary-iterable-allocation-for-first-element
171 "UP038", # non-pep604-isinstance
172 ]
173
174 [tool.ruff.lint.isort]
175 known-first-party = ["asammdf"]
176 order-by-type = false
177 force-sort-within-sections = true