dissect.qnxfs 1.2.dev1__tar.gz → 1.3.dev2__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (35) hide show
  1. {dissect_qnxfs-1.2.dev1/dissect.qnxfs.egg-info → dissect_qnxfs-1.3.dev2}/PKG-INFO +3 -3
  2. {dissect_qnxfs-1.2.dev1 → dissect_qnxfs-1.3.dev2}/dissect/qnxfs/__init__.py +2 -0
  3. {dissect_qnxfs-1.2.dev1 → dissect_qnxfs-1.3.dev2}/dissect/qnxfs/c_qnx4.py +2 -0
  4. {dissect_qnxfs-1.2.dev1 → dissect_qnxfs-1.3.dev2}/dissect/qnxfs/c_qnx4.pyi +8 -11
  5. {dissect_qnxfs-1.2.dev1 → dissect_qnxfs-1.3.dev2}/dissect/qnxfs/c_qnx6.py +2 -0
  6. {dissect_qnxfs-1.2.dev1 → dissect_qnxfs-1.3.dev2}/dissect/qnxfs/c_qnx6.pyi +7 -1
  7. {dissect_qnxfs-1.2.dev1 → dissect_qnxfs-1.3.dev2}/dissect/qnxfs/exceptions.py +3 -0
  8. {dissect_qnxfs-1.2.dev1 → dissect_qnxfs-1.3.dev2/dissect.qnxfs.egg-info}/PKG-INFO +3 -3
  9. {dissect_qnxfs-1.2.dev1 → dissect_qnxfs-1.3.dev2}/dissect.qnxfs.egg-info/SOURCES.txt +2 -0
  10. dissect_qnxfs-1.3.dev2/dissect.qnxfs.egg-info/requires.txt +6 -0
  11. dissect_qnxfs-1.3.dev2/dissect.qnxfs.egg-info/scm_file_list.json +32 -0
  12. dissect_qnxfs-1.3.dev2/dissect.qnxfs.egg-info/scm_version.json +8 -0
  13. {dissect_qnxfs-1.2.dev1 → dissect_qnxfs-1.3.dev2}/pyproject.toml +22 -4
  14. {dissect_qnxfs-1.2.dev1 → dissect_qnxfs-1.3.dev2}/tests/_docs/conf.py +2 -0
  15. {dissect_qnxfs-1.2.dev1 → dissect_qnxfs-1.3.dev2}/tests/conftest.py +6 -1
  16. {dissect_qnxfs-1.2.dev1 → dissect_qnxfs-1.3.dev2}/tests/test_exceptions.py +2 -0
  17. dissect_qnxfs-1.2.dev1/dissect.qnxfs.egg-info/requires.txt +0 -6
  18. {dissect_qnxfs-1.2.dev1 → dissect_qnxfs-1.3.dev2}/COPYRIGHT +0 -0
  19. {dissect_qnxfs-1.2.dev1 → dissect_qnxfs-1.3.dev2}/LICENSE +0 -0
  20. {dissect_qnxfs-1.2.dev1 → dissect_qnxfs-1.3.dev2}/MANIFEST.in +0 -0
  21. {dissect_qnxfs-1.2.dev1 → dissect_qnxfs-1.3.dev2}/README.md +0 -0
  22. {dissect_qnxfs-1.2.dev1 → dissect_qnxfs-1.3.dev2}/dissect/qnxfs/qnx4.py +0 -0
  23. {dissect_qnxfs-1.2.dev1 → dissect_qnxfs-1.3.dev2}/dissect/qnxfs/qnx6.py +0 -0
  24. {dissect_qnxfs-1.2.dev1 → dissect_qnxfs-1.3.dev2}/dissect/qnxfs/qnxfs.py +0 -0
  25. {dissect_qnxfs-1.2.dev1 → dissect_qnxfs-1.3.dev2}/dissect.qnxfs.egg-info/dependency_links.txt +0 -0
  26. {dissect_qnxfs-1.2.dev1 → dissect_qnxfs-1.3.dev2}/dissect.qnxfs.egg-info/top_level.txt +0 -0
  27. {dissect_qnxfs-1.2.dev1 → dissect_qnxfs-1.3.dev2}/setup.cfg +0 -0
  28. {dissect_qnxfs-1.2.dev1 → dissect_qnxfs-1.3.dev2}/tests/__init__.py +0 -0
  29. {dissect_qnxfs-1.2.dev1 → dissect_qnxfs-1.3.dev2}/tests/_data/qnx4.bin.gz +0 -0
  30. {dissect_qnxfs-1.2.dev1 → dissect_qnxfs-1.3.dev2}/tests/_data/qnx6-be.bin.gz +0 -0
  31. {dissect_qnxfs-1.2.dev1 → dissect_qnxfs-1.3.dev2}/tests/_data/qnx6-le.bin.gz +0 -0
  32. {dissect_qnxfs-1.2.dev1 → dissect_qnxfs-1.3.dev2}/tests/_docs/Makefile +0 -0
  33. {dissect_qnxfs-1.2.dev1 → dissect_qnxfs-1.3.dev2}/tests/_docs/index.rst +0 -0
  34. {dissect_qnxfs-1.2.dev1 → dissect_qnxfs-1.3.dev2}/tests/test_qnx.py +0 -0
  35. {dissect_qnxfs-1.2.dev1 → dissect_qnxfs-1.3.dev2}/tox.ini +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: dissect.qnxfs
3
- Version: 1.2.dev1
3
+ Version: 1.3.dev2
4
4
  Summary: A Dissect module implementing a parser for the QNX4 and QNX6 file systems, commonly used in the QNX RTOS.
5
5
  Author-email: Dissect Team <dissect@fox-it.com>
6
6
  License-Expression: AGPL-3.0-or-later
@@ -21,10 +21,10 @@ Requires-Python: >=3.10
21
21
  Description-Content-Type: text/markdown
22
22
  License-File: LICENSE
23
23
  License-File: COPYRIGHT
24
- Requires-Dist: dissect.cstruct<5,>=4
24
+ Requires-Dist: dissect.cstruct<6,>=5.0.dev
25
25
  Requires-Dist: dissect.util<4,>=3
26
26
  Provides-Extra: dev
27
- Requires-Dist: dissect.cstruct<5.0.dev,>=4.0.dev; extra == "dev"
27
+ Requires-Dist: dissect.cstruct<6.0.dev,>=5.0.dev; extra == "dev"
28
28
  Requires-Dist: dissect.util<4.0.dev,>=3.0.dev; extra == "dev"
29
29
  Dynamic: license-file
30
30
 
@@ -1,3 +1,5 @@
1
+ from __future__ import annotations
2
+
1
3
  from dissect.qnxfs.c_qnx4 import c_qnx4
2
4
  from dissect.qnxfs.c_qnx6 import c_qnx6, c_qnx6_be, c_qnx6_le
3
5
  from dissect.qnxfs.exceptions import (
@@ -1,3 +1,5 @@
1
+ from __future__ import annotations
2
+
1
3
  from dissect.cstruct import cstruct
2
4
 
3
5
  qnx4_def = """
@@ -33,7 +33,7 @@ class _c_qnx4(__cs__.cstruct):
33
33
  xtnt_blk: _c_qnx4.uint32
34
34
  xtnt_size: _c_qnx4.uint32
35
35
  @overload
36
- def __init__(self, xtnt_blk: _c_qnx4.uint32 | None = ..., xtnt_size: _c_qnx4.uint32 | None = ...): ...
36
+ def __init__(self, /, xtnt_blk: _c_qnx4.uint32 | None = ..., xtnt_size: _c_qnx4.uint32 | None = ...): ...
37
37
  @overload
38
38
  def __init__(self, fh: bytes | memoryview | bytearray | BinaryIO, /): ...
39
39
 
@@ -62,6 +62,7 @@ class _c_qnx4(__cs__.cstruct):
62
62
  @overload
63
63
  def __init__(
64
64
  self,
65
+ /,
65
66
  di_fname: __cs__.CharArray | None = ...,
66
67
  di_size: _c_qnx4.uint32 | None = ...,
67
68
  di_first_xtnt: _c_qnx4.qnx4_xtnt_t | None = ...,
@@ -92,6 +93,7 @@ class _c_qnx4(__cs__.cstruct):
92
93
  @overload
93
94
  def __init__(
94
95
  self,
96
+ /,
95
97
  dl_fname: __cs__.CharArray | None = ...,
96
98
  dl_inode_blk: _c_qnx4.uint32 | None = ...,
97
99
  dl_inode_ndx: _c_qnx4.uint8 | None = ...,
@@ -110,6 +112,7 @@ class _c_qnx4(__cs__.cstruct):
110
112
  @overload
111
113
  def __init__(
112
114
  self,
115
+ /,
113
116
  lfn_unk0: _c_qnx4.uint32 | None = ...,
114
117
  lfn_unk1: _c_qnx4.uint8 | None = ...,
115
118
  lfn_unk2: _c_qnx4.uint8 | None = ...,
@@ -124,26 +127,19 @@ class _c_qnx4(__cs__.cstruct):
124
127
  xblk_num_xtnts: _c_qnx4.uint8
125
128
  xblk_spare: __cs__.Array[_c_qnx4.uint8]
126
129
  xblk_num_blocks: _c_qnx4.uint32
127
- class qnx4_xtnt_t(__cs__.Structure):
128
- xtnt_blk: _c_qnx4.uint32
129
- xtnt_size: _c_qnx4.uint32
130
- @overload
131
- def __init__(self, xtnt_blk: _c_qnx4.uint32 | None = ..., xtnt_size: _c_qnx4.uint32 | None = ...): ...
132
- @overload
133
- def __init__(self, fh: bytes | memoryview | bytearray | BinaryIO, /): ...
134
-
135
- xblk_xtnts: __cs__.Array[qnx4_xtnt_t]
130
+ xblk_xtnts: __cs__.Array[_c_qnx4.qnx4_xtnt_t]
136
131
  xblk_signature: __cs__.CharArray
137
132
  xblk_first_xtnt: _c_qnx4.qnx4_xtnt_t
138
133
  @overload
139
134
  def __init__(
140
135
  self,
136
+ /,
141
137
  xblk_next_xblk: _c_qnx4.uint32 | None = ...,
142
138
  xblk_prev_xblk: _c_qnx4.uint32 | None = ...,
143
139
  xblk_num_xtnts: _c_qnx4.uint8 | None = ...,
144
140
  xblk_spare: __cs__.Array[_c_qnx4.uint8] | None = ...,
145
141
  xblk_num_blocks: _c_qnx4.uint32 | None = ...,
146
- xblk_xtnts: __cs__.Array[qnx4_xtnt_t] | None = ...,
142
+ xblk_xtnts: __cs__.Array[_c_qnx4.qnx4_xtnt_t] | None = ...,
147
143
  xblk_signature: __cs__.CharArray | None = ...,
148
144
  xblk_first_xtnt: _c_qnx4.qnx4_xtnt_t | None = ...,
149
145
  ): ...
@@ -158,6 +154,7 @@ class _c_qnx4(__cs__.cstruct):
158
154
  @overload
159
155
  def __init__(
160
156
  self,
157
+ /,
161
158
  RootDir: _c_qnx4.qnx4_inode_entry | None = ...,
162
159
  Inode: _c_qnx4.qnx4_inode_entry | None = ...,
163
160
  Boot: _c_qnx4.qnx4_inode_entry | None = ...,
@@ -1,3 +1,5 @@
1
+ from __future__ import annotations
2
+
1
3
  from dissect.cstruct import cstruct
2
4
 
3
5
  qnx6_def = """
@@ -42,6 +42,7 @@ class _c_qnx6(__cs__.cstruct):
42
42
  @overload
43
43
  def __init__(
44
44
  self,
45
+ /,
45
46
  di_size: _c_qnx6.uint64 | None = ...,
46
47
  di_uid: _c_qnx6.uint32 | None = ...,
47
48
  di_gid: _c_qnx6.uint32 | None = ...,
@@ -67,6 +68,7 @@ class _c_qnx6(__cs__.cstruct):
67
68
  @overload
68
69
  def __init__(
69
70
  self,
71
+ /,
70
72
  de_inode: _c_qnx6.uint32 | None = ...,
71
73
  de_size: _c_qnx6.uint8 | None = ...,
72
74
  de_fname: __cs__.CharArray | None = ...,
@@ -83,6 +85,7 @@ class _c_qnx6(__cs__.cstruct):
83
85
  @overload
84
86
  def __init__(
85
87
  self,
88
+ /,
86
89
  de_inode: _c_qnx6.uint32 | None = ...,
87
90
  de_size: _c_qnx6.uint8 | None = ...,
88
91
  de_unknown: __cs__.CharArray | None = ...,
@@ -96,7 +99,7 @@ class _c_qnx6(__cs__.cstruct):
96
99
  lf_size: _c_qnx6.uint16
97
100
  lf_fname: __cs__.CharArray
98
101
  @overload
99
- def __init__(self, lf_size: _c_qnx6.uint16 | None = ..., lf_fname: __cs__.CharArray | None = ...): ...
102
+ def __init__(self, /, lf_size: _c_qnx6.uint16 | None = ..., lf_fname: __cs__.CharArray | None = ...): ...
100
103
  @overload
101
104
  def __init__(self, fh: bytes | memoryview | bytearray | BinaryIO, /): ...
102
105
 
@@ -109,6 +112,7 @@ class _c_qnx6(__cs__.cstruct):
109
112
  @overload
110
113
  def __init__(
111
114
  self,
115
+ /,
112
116
  size: _c_qnx6.uint64 | None = ...,
113
117
  ptr: __cs__.Array[_c_qnx6.uint32] | None = ...,
114
118
  levels: _c_qnx6.uint8 | None = ...,
@@ -141,6 +145,7 @@ class _c_qnx6(__cs__.cstruct):
141
145
  @overload
142
146
  def __init__(
143
147
  self,
148
+ /,
144
149
  sb_magic: _c_qnx6.uint32 | None = ...,
145
150
  sb_checksum: _c_qnx6.uint32 | None = ...,
146
151
  sb_serial: _c_qnx6.uint64 | None = ...,
@@ -183,6 +188,7 @@ class _c_qnx6(__cs__.cstruct):
183
188
  @overload
184
189
  def __init__(
185
190
  self,
191
+ /,
186
192
  sb_magic: _c_qnx6.uint32 | None = ...,
187
193
  sb_checksum: _c_qnx6.uint32 | None = ...,
188
194
  sb_serial: _c_qnx6.uint64 | None = ...,
@@ -1,3 +1,6 @@
1
+ from __future__ import annotations
2
+
3
+
1
4
  class Error(Exception):
2
5
  pass
3
6
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: dissect.qnxfs
3
- Version: 1.2.dev1
3
+ Version: 1.3.dev2
4
4
  Summary: A Dissect module implementing a parser for the QNX4 and QNX6 file systems, commonly used in the QNX RTOS.
5
5
  Author-email: Dissect Team <dissect@fox-it.com>
6
6
  License-Expression: AGPL-3.0-or-later
@@ -21,10 +21,10 @@ Requires-Python: >=3.10
21
21
  Description-Content-Type: text/markdown
22
22
  License-File: LICENSE
23
23
  License-File: COPYRIGHT
24
- Requires-Dist: dissect.cstruct<5,>=4
24
+ Requires-Dist: dissect.cstruct<6,>=5.0.dev
25
25
  Requires-Dist: dissect.util<4,>=3
26
26
  Provides-Extra: dev
27
- Requires-Dist: dissect.cstruct<5.0.dev,>=4.0.dev; extra == "dev"
27
+ Requires-Dist: dissect.cstruct<6.0.dev,>=5.0.dev; extra == "dev"
28
28
  Requires-Dist: dissect.util<4.0.dev,>=3.0.dev; extra == "dev"
29
29
  Dynamic: license-file
30
30
 
@@ -8,6 +8,8 @@ dissect.qnxfs.egg-info/PKG-INFO
8
8
  dissect.qnxfs.egg-info/SOURCES.txt
9
9
  dissect.qnxfs.egg-info/dependency_links.txt
10
10
  dissect.qnxfs.egg-info/requires.txt
11
+ dissect.qnxfs.egg-info/scm_file_list.json
12
+ dissect.qnxfs.egg-info/scm_version.json
11
13
  dissect.qnxfs.egg-info/top_level.txt
12
14
  dissect/qnxfs/__init__.py
13
15
  dissect/qnxfs/c_qnx4.py
@@ -0,0 +1,6 @@
1
+ dissect.cstruct<6,>=5.0.dev
2
+ dissect.util<4,>=3
3
+
4
+ [dev]
5
+ dissect.cstruct<6.0.dev,>=5.0.dev
6
+ dissect.util<4.0.dev,>=3.0.dev
@@ -0,0 +1,32 @@
1
+ {
2
+ "files": [
3
+ ".github/pull_request_template.md",
4
+ ".github/workflows/dissect-ci.yml",
5
+ ".gitignore",
6
+ "COPYRIGHT",
7
+ "LICENSE",
8
+ "MANIFEST.in",
9
+ "README.md",
10
+ "dissect/qnxfs/__init__.py",
11
+ "dissect/qnxfs/c_qnx4.py",
12
+ "dissect/qnxfs/c_qnx4.pyi",
13
+ "dissect/qnxfs/c_qnx6.py",
14
+ "dissect/qnxfs/c_qnx6.pyi",
15
+ "dissect/qnxfs/exceptions.py",
16
+ "dissect/qnxfs/qnx4.py",
17
+ "dissect/qnxfs/qnx6.py",
18
+ "dissect/qnxfs/qnxfs.py",
19
+ "pyproject.toml",
20
+ "tests/__init__.py",
21
+ "tests/_data/qnx4.bin.gz",
22
+ "tests/_data/qnx6-be.bin.gz",
23
+ "tests/_data/qnx6-le.bin.gz",
24
+ "tests/_docs/Makefile",
25
+ "tests/_docs/conf.py",
26
+ "tests/_docs/index.rst",
27
+ "tests/conftest.py",
28
+ "tests/test_exceptions.py",
29
+ "tests/test_qnx.py",
30
+ "tox.ini"
31
+ ]
32
+ }
@@ -0,0 +1,8 @@
1
+ {
2
+ "tag": "1.2",
3
+ "distance": 2,
4
+ "node": "gc8894509dc753814253145402afddf0143c7957e",
5
+ "dirty": true,
6
+ "branch": "main",
7
+ "node_date": "2026-12-02"
8
+ }
@@ -25,7 +25,7 @@ classifiers = [
25
25
  "Topic :: Utilities",
26
26
  ]
27
27
  dependencies = [
28
- "dissect.cstruct>=4,<5",
28
+ "dissect.cstruct>=5.0.dev,<6",
29
29
  "dissect.util>=3,<4",
30
30
  ]
31
31
  dynamic = ["version"]
@@ -37,7 +37,7 @@ repository = "https://github.com/fox-it/dissect.qnxfs"
37
37
 
38
38
  [project.optional-dependencies]
39
39
  dev = [
40
- "dissect.cstruct>=4.0.dev,<5.0.dev",
40
+ "dissect.cstruct>=5.0.dev,<6.0.dev",
41
41
  "dissect.util>=3.0.dev,<4.0.dev",
42
42
  ]
43
43
 
@@ -94,7 +94,7 @@ select = [
94
94
  "SLOT",
95
95
  "SIM",
96
96
  "TID",
97
- "TCH",
97
+ "TC",
98
98
  "PTH",
99
99
  "PLC",
100
100
  "TRY",
@@ -102,8 +102,25 @@ select = [
102
102
  "PERF",
103
103
  "FURB",
104
104
  "RUF",
105
+ "D"
105
106
  ]
106
- ignore = ["E203", "B904", "UP024", "ANN002", "ANN003", "ANN204", "ANN401", "SIM105", "TRY003"]
107
+ ignore = [
108
+ "E203", "B904", "UP024", "ANN002", "ANN003", "ANN204", "ANN401", "SIM105", "TRY003", "PLC0415",
109
+ # Ignore some pydocstyle rules for now as they require a larger cleanup
110
+ "D1",
111
+ "D205",
112
+ "D301",
113
+ "D417",
114
+ # Seems bugged: https://github.com/astral-sh/ruff/issues/16824
115
+ "D402",
116
+ ]
117
+ future-annotations = true
118
+
119
+ [tool.ruff.lint.pydocstyle]
120
+ convention = "google"
121
+
122
+ [tool.ruff.lint.flake8-type-checking]
123
+ strict = true
107
124
 
108
125
  [tool.ruff.lint.per-file-ignores]
109
126
  "tests/_docs/**" = ["INP001"]
@@ -112,6 +129,7 @@ ignore = ["E203", "B904", "UP024", "ANN002", "ANN003", "ANN204", "ANN401", "SIM1
112
129
  [tool.ruff.lint.isort]
113
130
  known-first-party = ["dissect.qnxfs"]
114
131
  known-third-party = ["dissect"]
132
+ required-imports = ["from __future__ import annotations"]
115
133
 
116
134
  [tool.setuptools.packages.find]
117
135
  include = ["dissect.*"]
@@ -1,3 +1,5 @@
1
+ from __future__ import annotations
2
+
1
3
  extensions = [
2
4
  "autoapi.extension",
3
5
  "sphinx.ext.autodoc",
@@ -1,10 +1,15 @@
1
+ from __future__ import annotations
2
+
1
3
  import gzip
2
- from collections.abc import Iterator
4
+ import typing
3
5
  from pathlib import Path
4
6
  from typing import IO, BinaryIO
5
7
 
6
8
  import pytest
7
9
 
10
+ if typing.TYPE_CHECKING:
11
+ from collections.abc import Iterator
12
+
8
13
 
9
14
  def absolute_path(filename: str) -> Path:
10
15
  return Path(__file__).parent / filename
@@ -1,3 +1,5 @@
1
+ from __future__ import annotations
2
+
1
3
  import pytest
2
4
 
3
5
  from dissect.qnxfs import exceptions
@@ -1,6 +0,0 @@
1
- dissect.cstruct<5,>=4
2
- dissect.util<4,>=3
3
-
4
- [dev]
5
- dissect.cstruct<5.0.dev,>=4.0.dev
6
- dissect.util<4.0.dev,>=3.0.dev