Commit 3f0b0d3 1 parent d259c51 commit 3f0b0d3 Copy full SHA for 3f0b0d3
File tree 3 files changed +11
-5
lines changed
3 files changed +11
-5
lines changed Original file line number Diff line number Diff line change 1
1
import stat
2
2
import struct
3
3
4
- from dissect import cstruct
4
+ from dissect . cstruct import cstruct
5
5
6
6
vmfs_def = """
7
7
/* === System file addresses === */
368
368
};
369
369
"""
370
370
371
- c_vmfs = cstruct .cstruct ()
372
- c_vmfs .load (vmfs_def )
371
+ c_vmfs = cstruct ().load (vmfs_def )
373
372
374
373
ADDRESS_TYPE_MASK = 7
375
374
ResourceType = c_vmfs .ResourceType
Original file line number Diff line number Diff line change @@ -25,8 +25,8 @@ classifiers = [
25
25
" Topic :: Utilities" ,
26
26
]
27
27
dependencies = [
28
- " dissect.cstruct>=3.0.dev,<4.0.dev " ,
29
- " dissect.util>=3.0.dev ,<4.0.dev " ,
28
+ " dissect.cstruct>3,<5 " ,
29
+ " dissect.util>2 ,<4" ,
30
30
]
31
31
dynamic = [" version" ]
32
32
Original file line number Diff line number Diff line change @@ -15,6 +15,13 @@ deps =
15
15
pytest
16
16
pytest-cov
17
17
coverage
18
+ # Unfortunately, tox does not allow separate installation flags for the project
19
+ # dependencies and the test dependencies. When running tox, we want to install the
20
+ # project dependencies with the --pre flag, so that we get the latest version of all
21
+ # dependencies. We do the installation step ourselves for this reason.
22
+ skip_install = true
23
+ commands_pre =
24
+ pip install --pre -e .
18
25
commands =
19
26
pytest --basetemp =" {envtmpdir}" {posargs:--color =yes --cov =dissect --cov-report =term-missing -v tests}
20
27
coverage report
You can’t perform that action at this time.
0 commit comments