| 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>=5.2", |
| 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>=5.2"] |
| 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" |
| 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 |
cmake.args = [ "-DWITH_SYSTEM_DEFLATE=ON", "-DCMAKE_VERBOSE_MAKEFILE=ON" ] |
| 90 |
build-dir = "./cmake-build" |
| 91 |
|
| 92 |
[tool.coverage] |
| 93 |
run.relative_files = true |
| 94 |
run.source_pkgs = ["asammdf"] |
| 95 |
paths.source = ["src", "*/site-packages"] |
| 96 |
report.omit = ["*/asammdf/gui/ui/*"] |
| 97 |
|
| 98 |
[tool.cibuildwheel] |
| 99 |
manylinux-x86_64-image = "manylinux_2_28" |
| 100 |
test-requires = "pytest" |
| 101 |
test-command = "pytest {project}/test" |
| 102 |
build-frontend = "build" |
| 103 |
archs = ["auto64"] # only build for 64bit architectures |
| 104 |
# skip pypy and irrelevant architectures |
| 105 |
skip = ["pp*", "*_ppc64le", "*-musllinux*", "*_s390x", "cp315*", "cp314t*"] |
| 106 |
|
| 107 |
[tool.mypy] |
| 108 |
files = "." |
| 109 |
exclude = ["build/", "ci/", "dist/", "doc/_build/", "ext/", "test/asammdf/gui/"] |
| 110 |
python_version = "3.10" |
| 111 |
enable_error_code = ["deprecated"] |
| 112 |
strict = true |
| 113 |
|
| 114 |
[[tool.mypy.overrides]] |
| 115 |
module = [ |
| 116 |
"canmatrix.*", |
| 117 |
"cmerg.*", |
| 118 |
"fsspec.*", |
| 119 |
"h5py.*", |
| 120 |
"hdf5storage.*", |
| 121 |
"isal.*", |
| 122 |
"lz4.*", |
| 123 |
"mdfreader.*", |
| 124 |
"mfile.*", |
| 125 |
"mpl_toolkits.*", |
| 126 |
"numexpr.*", |
| 127 |
"pyqtgraph.*", |
| 128 |
"pyqtlet2.*", |
| 129 |
"snappy.*", |
| 130 |
"sympy.*", |
| 131 |
"xmlrunner.*", |
| 132 |
] |
| 133 |
ignore_missing_imports = true |
| 134 |
|
| 135 |
[[tool.mypy.overrides]] |
| 136 |
module = ["asammdf.app.asammdfgui", "asammdf.gui.*"] |
| 137 |
ignore_errors = true |
| 138 |
|
| 139 |
[tool.black] |
| 140 |
line-length = 120 |
| 141 |
target-version = ['py310'] |
| 142 |
extend-exclude = "src/asammdf/gui/ui.*|ext.*" |
| 143 |
|
| 144 |
[tool.ruff] |
| 145 |
line-length = 120 |
| 146 |
target-version = "py310" |
| 147 |
extend-exclude = ["./src/asammdf/gui/ui*", "./ext*"] |
| 148 |
force-exclude = true |
| 149 |
|
| 150 |
[tool.ruff.lint] |
| 151 |
select = [ |
| 152 |
"B", # flake8-bugbear |
| 153 |
"C4", # flake8-comprehensions |
| 154 |
"F", # pyflakes |
| 155 |
"UP", # pyupgrade |
| 156 |
"I", # isort |
| 157 |
"PIE", # flake8-pie |
| 158 |
"PL", # pylint |
| 159 |
"RUF", # Ruff-specific rules |
| 160 |
] |
| 161 |
ignore = [ |
| 162 |
"B007", # unused-loop-control-variable |
| 163 |
"F841", # unused-variable |
| 164 |
"PLC0414", # useless-import-alias |
| 165 |
"PLC0415", # import-outside-top-level |
| 166 |
"PLR09", # too-many-this, too-many-that |
| 167 |
"PLR2004", # magic-value-comparison |
| 168 |
"PLR5501", # collapsible-else-if |
| 169 |
"PLW0603", # global-statement |
| 170 |
"PLW2901", # redefined-loop-name |
| 171 |
"RUF012", # mutable-class-default |
| 172 |
"RUF015", # unnecessary-iterable-allocation-for-first-element |
| 173 |
"UP038", # non-pep604-isinstance |
| 174 |
] |
| 175 |
|
| 176 |
[tool.ruff.lint.isort] |
| 177 |
known-first-party = ["asammdf"] |
| 178 |
order-by-type = false |
| 179 |
force-sort-within-sections = true |