[build-system] requires = ["scikit-build-core", "numpy>=2.0.0"] build-backend = "scikit_build_core.build" [project] name = "asammdf" description = "ASAM MDF measurement data file parser" readme = "README.md" requires-python = ">=3.10" license = { text = "LGPLv3+" } authors = [{ name = "Daniel Hrisca", email = "daniel.hrisca@gmail.com" }] dynamic = ["version"] 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.10", "Programming Language :: Python :: 3.11", "Programming Language :: Python :: 3.12", "Programming Language :: Python :: 3.13", "Programming Language :: Python :: 3.14", "Programming Language :: Python :: 3.15", ] keywords = [ "read", "reader", "edit", "editor", "parse", "parser", "asam", "mdf", "measurement", ] dependencies = [ "chardet>=5.2", "canmatrix[arxml,dbc]>=1.2", "isal; platform_machine == 'x86_64' or platform_machine == 'AMD64'", "deflate; platform_machine == 'x86_64' or platform_machine == 'AMD64'", "lxml>=4.9.3", "lz4", "numexpr>=2.10.0", "numpy>=2.0.0", "pandas>=2.2.2", "python-dateutil", "typing-extensions>=4.10", "zstd", ] [project.optional-dependencies] decode = ["chardet>=5.2"] export = [ "pyarrow>=17.0.0", "h5py>=3.11", "hdf5storage>=0.1.19", "python-snappy", "polars>=1.1.0", ] export-matlab-v5 = ["scipy>=1.13.0"] gui = [ "natsort", "PySide6>=6.7.0,!=6.9.1", "pyqtgraph>=0.13.4", "pyqtlet2[PySide6]", "packaging", ] encryption = ["cryptography", "keyring"] plot = ["matplotlib"] symbolic-math = ["sympy>=1.13.0"] filesystem = ["fsspec"] [project.scripts] asammdf = "asammdf.app.asammdfgui:main [gui]" [project.urls] Documentation = "https://asammdf.readthedocs.io/en/master" Issues = "https://github.com/danielhrisca/asammdf/issues" Source = "https://github.com/danielhrisca/asammdf" [tool.scikit-build] cmake.version = ">=3.26" metadata.version.provider = "scikit_build_core.metadata.regex" metadata.version.input = "src/asammdf/version.py" sdist.include = ["ext"] wheel.packages = ["src/asammdf"] wheel.py-api = "cp310" cmake.args = [ "-DWITH_SYSTEM_DEFLATE=ON", "-DCMAKE_VERBOSE_MAKEFILE=ON" ] build-dir = "./cmake-build" [tool.coverage] run.relative_files = true run.source_pkgs = ["asammdf"] paths.source = ["src", "*/site-packages"] report.omit = ["*/asammdf/gui/ui/*"] [tool.cibuildwheel] manylinux-x86_64-image = "manylinux_2_28" test-requires = "pytest" test-command = "pytest {project}/test" build-frontend = "build" archs = ["auto64"] # only build for 64bit architectures # skip pypy and irrelevant architectures skip = ["pp*", "*_ppc64le", "*-musllinux*", "*_s390x", "cp315*", "cp314t*"] [tool.mypy] files = "." exclude = ["build/", "ci/", "dist/", "doc/_build/", "ext/", "test/asammdf/gui/"] python_version = "3.10" enable_error_code = ["deprecated"] strict = true [[tool.mypy.overrides]] module = [ "canmatrix.*", "cmerg.*", "fsspec.*", "h5py.*", "hdf5storage.*", "isal.*", "lz4.*", "mdfreader.*", "mfile.*", "mpl_toolkits.*", "numexpr.*", "pyqtgraph.*", "pyqtlet2.*", "snappy.*", "sympy.*", "xmlrunner.*", ] ignore_missing_imports = true [[tool.mypy.overrides]] module = ["asammdf.app.asammdfgui", "asammdf.gui.*"] ignore_errors = true [tool.black] line-length = 120 target-version = ['py310'] extend-exclude = "src/asammdf/gui/ui.*|ext.*" [tool.ruff] line-length = 120 target-version = "py310" extend-exclude = ["./src/asammdf/gui/ui*", "./ext*"] force-exclude = true [tool.ruff.lint] select = [ "B", # flake8-bugbear "C4", # flake8-comprehensions "F", # pyflakes "UP", # pyupgrade "I", # isort "PIE", # flake8-pie "PL", # pylint "RUF", # Ruff-specific rules ] ignore = [ "B007", # unused-loop-control-variable "F841", # unused-variable "PLC0414", # useless-import-alias "PLC0415", # import-outside-top-level "PLR09", # too-many-this, too-many-that "PLR2004", # magic-value-comparison "PLR5501", # collapsible-else-if "PLW0603", # global-statement "PLW2901", # redefined-loop-name "RUF012", # mutable-class-default "RUF015", # unnecessary-iterable-allocation-for-first-element "UP038", # non-pep604-isinstance ] [tool.ruff.lint.isort] known-first-party = ["asammdf"] order-by-type = false force-sort-within-sections = true