Skip to content

Commit

Permalink
chore(deps): upgrade cstruct to > 4.0
Browse files Browse the repository at this point in the history
Remove the cstruct dependency requirements relaxation introduced by
94f9129 to maintain Python 3.8 support.

It's no longer needed so now we use cstruct version 4.0 and up.
  • Loading branch information
qkaiser committed Dec 9, 2024
1 parent 20ad23c commit 4667254
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 15 deletions.
12 changes: 6 additions & 6 deletions poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ packages = [
[tool.poetry.dependencies]
python = "^3.9"
click = "^8.1.7"
"dissect.cstruct" = ">=2.0,<5.0"
"dissect.cstruct" = ">=4.0,<5.0"
attrs = ">=23.1.0"
structlog = ">=24.1.0"
arpy = "^2.3.0"
Expand Down
9 changes: 1 addition & 8 deletions unblob/logging.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,7 @@
from typing import Any

import structlog
from dissect.cstruct import dumpstruct

try:
# dissect.cstruct >= 4.0
from dissect.cstruct import Structure
except ImportError:
# dissect.cstruct == 2.0
from dissect.cstruct import Instance as Structure
from dissect.cstruct import Structure, dumpstruct


def format_hex(value: int):
Expand Down

0 comments on commit 4667254

Please sign in to comment.