dev env: Stop installing tuf as "editable"

This was likely only necessary because the test suite required it:
Now tuf does not get installed at all by tox (or by dev install)

Signed-off-by: Jussi Kukkonen <jkukkonen@google.com>
This commit is contained in:
Jussi Kukkonen 2024-12-11 10:01:13 +02:00
parent ec81bfa0b1
commit 4e889e7212
3 changed files with 0 additions and 10 deletions

View file

@ -20,7 +20,6 @@ jobs:
python-version: "3.x"
- id: get-version
run: |
python3 -m pip install -e .
script="from tuf.api.metadata import SPECIFICATION_VERSION; \
print(f\"v{'.'.join(SPECIFICATION_VERSION)}\")"
ver=$(python3 -c "$script")

View file

@ -1,8 +1,3 @@
# Install tuf in editable mode and requirements for local testing with tox,
# and also for running test suite or individual tests manually.
# The build and tox versions specified here are also used as constraints
# during CI and CD Github workflows
-r build.txt
-r test.txt
-r lint.txt
-e .

View file

@ -16,9 +16,6 @@ commands =
deps =
-r{toxinidir}/requirements/test.txt
# Install TUF in editable mode, instead of tox default virtual environment
# installation (see `skipsdist`), to get relative paths in coverage reports
--editable {toxinidir}
install_command = python3 -m pip install {opts} {packages}
@ -38,7 +35,6 @@ commands =
[testenv:lint]
deps =
-r{toxinidir}/requirements/lint.txt
--editable {toxinidir}
lint_dirs = tuf examples tests verify_release .github/scripts
passenv = RUFF_OUTPUT_FORMAT
commands =