File: pyproject.toml

package info (click to toggle)
asammdf 8.5.2-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 15,648 kB
  • sloc: python: 89,262; ansic: 2,251; makefile: 21
file content (168 lines) | stat: -rw-r--r-- 4,330 bytes parent folder | download
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
[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",
]
keywords = [
    "read",
    "reader",
    "edit",
    "editor",
    "parse",
    "parser",
    "asam",
    "mdf",
    "measurement",
]
dependencies = [
    "canmatrix[arxml,dbc]>=1.2",
    "isal; 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",
]

[project.optional-dependencies]
decode = ["faust-cchardet==2.1.19", "chardet"]
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",
    "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]
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"]

[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.*",
    "cchardet.*",
    "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.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
    "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