dissect.cstruct 4.4.dev2__tar.gz → 4.4.dev3__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 (69) hide show
  1. dissect_cstruct-4.4.dev3/.gitattributes +1 -0
  2. {dissect_cstruct-4.4.dev2 → dissect_cstruct-4.4.dev3}/PKG-INFO +1 -1
  3. {dissect_cstruct-4.4.dev2 → dissect_cstruct-4.4.dev3}/dissect/cstruct/types/enum.py +2 -2
  4. {dissect_cstruct-4.4.dev2 → dissect_cstruct-4.4.dev3}/dissect/cstruct/types/flag.py +2 -2
  5. {dissect_cstruct-4.4.dev2 → dissect_cstruct-4.4.dev3}/dissect.cstruct.egg-info/PKG-INFO +1 -1
  6. {dissect_cstruct-4.4.dev2 → dissect_cstruct-4.4.dev3}/dissect.cstruct.egg-info/SOURCES.txt +6 -4
  7. {dissect_cstruct-4.4.dev2/tests/docs → dissect_cstruct-4.4.dev3/tests/_docs}/Makefile +1 -1
  8. dissect_cstruct-4.4.dev3/tests/_docs/__init__.py +0 -0
  9. {dissect_cstruct-4.4.dev2/tests/docs → dissect_cstruct-4.4.dev3/tests/_docs}/conf.py +8 -0
  10. {dissect_cstruct-4.4.dev2 → dissect_cstruct-4.4.dev3}/tests/test_basic.py +1 -1
  11. {dissect_cstruct-4.4.dev2 → dissect_cstruct-4.4.dev3}/tox.ini +4 -4
  12. {dissect_cstruct-4.4.dev2 → dissect_cstruct-4.4.dev3}/.git-blame-ignore-revs +0 -0
  13. {dissect_cstruct-4.4.dev2 → dissect_cstruct-4.4.dev3}/COPYRIGHT +0 -0
  14. {dissect_cstruct-4.4.dev2 → dissect_cstruct-4.4.dev3}/LICENSE +0 -0
  15. {dissect_cstruct-4.4.dev2 → dissect_cstruct-4.4.dev3}/MANIFEST.in +0 -0
  16. {dissect_cstruct-4.4.dev2 → dissect_cstruct-4.4.dev3}/README.md +0 -0
  17. {dissect_cstruct-4.4.dev2 → dissect_cstruct-4.4.dev3}/dissect/cstruct/__init__.py +0 -0
  18. {dissect_cstruct-4.4.dev2 → dissect_cstruct-4.4.dev3}/dissect/cstruct/bitbuffer.py +0 -0
  19. {dissect_cstruct-4.4.dev2 → dissect_cstruct-4.4.dev3}/dissect/cstruct/compiler.py +0 -0
  20. {dissect_cstruct-4.4.dev2 → dissect_cstruct-4.4.dev3}/dissect/cstruct/cstruct.py +0 -0
  21. {dissect_cstruct-4.4.dev2 → dissect_cstruct-4.4.dev3}/dissect/cstruct/exceptions.py +0 -0
  22. {dissect_cstruct-4.4.dev2 → dissect_cstruct-4.4.dev3}/dissect/cstruct/expression.py +0 -0
  23. {dissect_cstruct-4.4.dev2 → dissect_cstruct-4.4.dev3}/dissect/cstruct/parser.py +0 -0
  24. {dissect_cstruct-4.4.dev2 → dissect_cstruct-4.4.dev3}/dissect/cstruct/types/__init__.py +0 -0
  25. {dissect_cstruct-4.4.dev2 → dissect_cstruct-4.4.dev3}/dissect/cstruct/types/base.py +0 -0
  26. {dissect_cstruct-4.4.dev2 → dissect_cstruct-4.4.dev3}/dissect/cstruct/types/char.py +0 -0
  27. {dissect_cstruct-4.4.dev2 → dissect_cstruct-4.4.dev3}/dissect/cstruct/types/int.py +0 -0
  28. {dissect_cstruct-4.4.dev2 → dissect_cstruct-4.4.dev3}/dissect/cstruct/types/leb128.py +0 -0
  29. {dissect_cstruct-4.4.dev2 → dissect_cstruct-4.4.dev3}/dissect/cstruct/types/packed.py +0 -0
  30. {dissect_cstruct-4.4.dev2 → dissect_cstruct-4.4.dev3}/dissect/cstruct/types/pointer.py +0 -0
  31. {dissect_cstruct-4.4.dev2 → dissect_cstruct-4.4.dev3}/dissect/cstruct/types/structure.py +0 -0
  32. {dissect_cstruct-4.4.dev2 → dissect_cstruct-4.4.dev3}/dissect/cstruct/types/void.py +0 -0
  33. {dissect_cstruct-4.4.dev2 → dissect_cstruct-4.4.dev3}/dissect/cstruct/types/wchar.py +0 -0
  34. {dissect_cstruct-4.4.dev2 → dissect_cstruct-4.4.dev3}/dissect/cstruct/utils.py +0 -0
  35. {dissect_cstruct-4.4.dev2 → dissect_cstruct-4.4.dev3}/dissect.cstruct.egg-info/dependency_links.txt +0 -0
  36. {dissect_cstruct-4.4.dev2 → dissect_cstruct-4.4.dev3}/dissect.cstruct.egg-info/top_level.txt +0 -0
  37. {dissect_cstruct-4.4.dev2 → dissect_cstruct-4.4.dev3}/examples/disk.py +0 -0
  38. {dissect_cstruct-4.4.dev2 → dissect_cstruct-4.4.dev3}/examples/mirai.py +0 -0
  39. {dissect_cstruct-4.4.dev2 → dissect_cstruct-4.4.dev3}/examples/pe.py +0 -0
  40. {dissect_cstruct-4.4.dev2 → dissect_cstruct-4.4.dev3}/examples/protobuf.py +0 -0
  41. {dissect_cstruct-4.4.dev2 → dissect_cstruct-4.4.dev3}/examples/secdesc.py +0 -0
  42. {dissect_cstruct-4.4.dev2 → dissect_cstruct-4.4.dev3}/pyproject.toml +0 -0
  43. {dissect_cstruct-4.4.dev2 → dissect_cstruct-4.4.dev3}/setup.cfg +0 -0
  44. {dissect_cstruct-4.4.dev2 → dissect_cstruct-4.4.dev3}/tests/__init__.py +0 -0
  45. {dissect_cstruct-4.4.dev2/tests/data → dissect_cstruct-4.4.dev3/tests/_data}/testdef.txt +0 -0
  46. {dissect_cstruct-4.4.dev2/tests/docs → dissect_cstruct-4.4.dev3/tests/_docs}/index.rst +0 -0
  47. {dissect_cstruct-4.4.dev2 → dissect_cstruct-4.4.dev3}/tests/conftest.py +0 -0
  48. {dissect_cstruct-4.4.dev2 → dissect_cstruct-4.4.dev3}/tests/test_align.py +0 -0
  49. {dissect_cstruct-4.4.dev2 → dissect_cstruct-4.4.dev3}/tests/test_bitbuffer.py +0 -0
  50. {dissect_cstruct-4.4.dev2 → dissect_cstruct-4.4.dev3}/tests/test_bitfield.py +0 -0
  51. {dissect_cstruct-4.4.dev2 → dissect_cstruct-4.4.dev3}/tests/test_compiler.py +0 -0
  52. {dissect_cstruct-4.4.dev2 → dissect_cstruct-4.4.dev3}/tests/test_ctypes.py +0 -0
  53. {dissect_cstruct-4.4.dev2 → dissect_cstruct-4.4.dev3}/tests/test_expression.py +0 -0
  54. {dissect_cstruct-4.4.dev2 → dissect_cstruct-4.4.dev3}/tests/test_parser.py +0 -0
  55. {dissect_cstruct-4.4.dev2 → dissect_cstruct-4.4.dev3}/tests/test_types_base.py +0 -0
  56. {dissect_cstruct-4.4.dev2 → dissect_cstruct-4.4.dev3}/tests/test_types_char.py +0 -0
  57. {dissect_cstruct-4.4.dev2 → dissect_cstruct-4.4.dev3}/tests/test_types_custom.py +0 -0
  58. {dissect_cstruct-4.4.dev2 → dissect_cstruct-4.4.dev3}/tests/test_types_enum.py +0 -0
  59. {dissect_cstruct-4.4.dev2 → dissect_cstruct-4.4.dev3}/tests/test_types_flag.py +0 -0
  60. {dissect_cstruct-4.4.dev2 → dissect_cstruct-4.4.dev3}/tests/test_types_int.py +0 -0
  61. {dissect_cstruct-4.4.dev2 → dissect_cstruct-4.4.dev3}/tests/test_types_leb128.py +0 -0
  62. {dissect_cstruct-4.4.dev2 → dissect_cstruct-4.4.dev3}/tests/test_types_packed.py +0 -0
  63. {dissect_cstruct-4.4.dev2 → dissect_cstruct-4.4.dev3}/tests/test_types_pointer.py +0 -0
  64. {dissect_cstruct-4.4.dev2 → dissect_cstruct-4.4.dev3}/tests/test_types_structure.py +0 -0
  65. {dissect_cstruct-4.4.dev2 → dissect_cstruct-4.4.dev3}/tests/test_types_union.py +0 -0
  66. {dissect_cstruct-4.4.dev2 → dissect_cstruct-4.4.dev3}/tests/test_types_void.py +0 -0
  67. {dissect_cstruct-4.4.dev2 → dissect_cstruct-4.4.dev3}/tests/test_types_wchar.py +0 -0
  68. {dissect_cstruct-4.4.dev2 → dissect_cstruct-4.4.dev3}/tests/test_utils.py +0 -0
  69. {dissect_cstruct-4.4.dev2 → dissect_cstruct-4.4.dev3}/tests/utils.py +0 -0
@@ -0,0 +1 @@
1
+ tests/_data/** filter=lfs diff=lfs merge=lfs -text
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.2
2
2
  Name: dissect.cstruct
3
- Version: 4.4.dev2
3
+ Version: 4.4.dev3
4
4
  Summary: A Dissect module implementing a parser for C-like structures: structure parsing in Python made easy
5
5
  Author-email: Dissect Team <dissect@fox-it.com>
6
6
  License: Apache License 2.0
@@ -114,13 +114,13 @@ class Enum(BaseType, IntEnum, metaclass=EnumMetaType):
114
114
  Enums can be made using any integer type.
115
115
 
116
116
  Example:
117
- When using the default C-style parser, the following syntax is supported:
117
+ When using the default C-style parser, the following syntax is supported::
118
118
 
119
119
  enum <name> [: <type>] {
120
120
  <values>
121
121
  };
122
122
 
123
- For example, an enum that has A=1, B=5 and C=6 could be written like so:
123
+ For example, an enum that has A=1, B=5 and C=6 could be written like so::
124
124
 
125
125
  enum Test : uint16 {
126
126
  A, B=5, C
@@ -15,13 +15,13 @@ class Flag(BaseType, IntFlag, metaclass=EnumMetaType):
15
15
  Flags can be made using any integer type.
16
16
 
17
17
  Example:
18
- When using the default C-style parser, the following syntax is supported:
18
+ When using the default C-style parser, the following syntax is supported::
19
19
 
20
20
  flag <name> [: <type>] {
21
21
  <values>
22
22
  };
23
23
 
24
- For example, a flag that has A=1, B=4 and C=8 could be written like so:
24
+ For example, a flag that has A=1, B=4 and C=8 could be written like so::
25
25
 
26
26
  flag Test : uint16 {
27
27
  A, B=4, C
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.2
2
2
  Name: dissect.cstruct
3
- Version: 4.4.dev2
3
+ Version: 4.4.dev3
4
4
  Summary: A Dissect module implementing a parser for C-like structures: structure parsing in Python made easy
5
5
  Author-email: Dissect Team <dissect@fox-it.com>
6
6
  License: Apache License 2.0
@@ -1,4 +1,5 @@
1
1
  .git-blame-ignore-revs
2
+ .gitattributes
2
3
  COPYRIGHT
3
4
  LICENSE
4
5
  MANIFEST.in
@@ -59,7 +60,8 @@ tests/test_types_void.py
59
60
  tests/test_types_wchar.py
60
61
  tests/test_utils.py
61
62
  tests/utils.py
62
- tests/data/testdef.txt
63
- tests/docs/Makefile
64
- tests/docs/conf.py
65
- tests/docs/index.rst
63
+ tests/_data/testdef.txt
64
+ tests/_docs/Makefile
65
+ tests/_docs/__init__.py
66
+ tests/_docs/conf.py
67
+ tests/_docs/index.rst
@@ -3,7 +3,7 @@
3
3
 
4
4
  # You can set these variables from the command line, and also
5
5
  # from the environment for the first two.
6
- SPHINXOPTS ?= -jauto
6
+ SPHINXOPTS ?= -jauto -w $(BUILDDIR)/warnings.log --fail-on-warning
7
7
  SPHINXBUILD ?= sphinx-build
8
8
  SOURCEDIR = .
9
9
  BUILDDIR = build
File without changes
@@ -1,3 +1,5 @@
1
+ project = "dissect.cstruct"
2
+
1
3
  extensions = [
2
4
  "autoapi.extension",
3
5
  "sphinx.ext.autodoc",
@@ -32,3 +34,9 @@ autodoc_typehints = "signature"
32
34
  autodoc_member_order = "groupwise"
33
35
 
34
36
  autosectionlabel_prefix_document = True
37
+
38
+ suppress_warnings = [
39
+ # https://github.com/readthedocs/sphinx-autoapi/issues/285
40
+ "autoapi.python_import_resolution",
41
+ "ref.python",
42
+ ]
@@ -28,7 +28,7 @@ def test_duplicate_type(cs: cstruct, compiled: bool) -> None:
28
28
 
29
29
 
30
30
  def test_load_file(cs: cstruct, compiled: bool) -> None:
31
- path = Path(__file__).parent / "data/testdef.txt"
31
+ path = Path(__file__).parent / "_data/testdef.txt"
32
32
 
33
33
  cs.loadfile(path, compiled=compiled)
34
34
  assert "test" in cs.typedefs
@@ -54,12 +54,12 @@ deps =
54
54
  sphinx-design
55
55
  furo
56
56
  commands =
57
- make -C tests/docs clean
58
- make -C tests/docs html
57
+ make -C tests/_docs clean
58
+ make -C tests/_docs html
59
59
 
60
60
  [testenv:docs-linkcheck]
61
61
  allowlist_externals = make
62
62
  deps = {[testenv:docs-build]deps}
63
63
  commands =
64
- make -C tests/docs clean
65
- make -C tests/docs linkcheck
64
+ make -C tests/_docs clean
65
+ make -C tests/_docs linkcheck