Skip to content

Commit 1b88310

Browse files
committed
Use a dev extra instead of installing with --pre
1 parent a749089 commit 1b88310

File tree

2 files changed

+9
-9
lines changed

2 files changed

+9
-9
lines changed

pyproject.toml

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,8 @@ classifiers = [
2525
"Topic :: Utilities",
2626
]
2727
dependencies = [
28-
"dissect.cstruct>3,<5",
29-
"dissect.util>2,<4",
28+
"dissect.cstruct>=4.dev,<5",
29+
"dissect.util>=3,<4",
3030
]
3131
dynamic = ["version"]
3232

@@ -35,6 +35,12 @@ homepage = "https://dissect.tools"
3535
documentation = "https://docs.dissect.tools/en/latest/projects/dissect.executable"
3636
repository = "https://github.com/fox-it/dissect.executable"
3737

38+
[project.optional-dependencies]
39+
dev = [
40+
"dissect.cstruct>=4.0.dev,<5.0.dev",
41+
"dissect.util>=3.0.dev,<4.0.dev",
42+
]
43+
3844
[tool.black]
3945
line-length = 120
4046

tox.ini

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -11,17 +11,11 @@ minversion = 4.4.3
1111
requires = virtualenv>=20.16.6
1212

1313
[testenv]
14+
extras = dev
1415
deps =
1516
pytest
1617
pytest-cov
1718
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 .
2519
commands =
2620
pytest --basetemp="{envtmpdir}" {posargs:--color=yes --cov=dissect --cov-report=term-missing -v tests}
2721
coverage report

0 commit comments

Comments
 (0)