fedora-python / fedora-python/tox-current-env

print-deps-only: Document we don't handle recursive deps (from files, e.g. -rrequirements.txt)

Offen
#22 8 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen
documentation good first issue
Vorherrschende Sprache
Python
Sterne
26
Forks
9
PR-Merge-Kennzahlen
Keine gemergten PRs in 30 T.

Beschreibung

Fedora report: https://bugzilla.redhat.com/show_bug.cgi?id=1808601

tox docs: https://tox.readthedocs.io/en/latest/example/basic.html#depending-on-requirements-txt-or-defining-constraints

When the dependencies are defined as:

```
[testenv]
deps = -rrequirements.txt
```

We need to read the files (recursively) and output their content.

The code that handles this now is https://github.com/fedora-python/tox-current-env/blob/dc47ce3ddf53c2b950f0a776ea6ebcc7355e3522/src/tox_current_env/hooks.py#L161-L172

The `*venv.get_resolved_dependencies()` call needs to be replaced with a custom function call. That function needs to call `venv.get_resolved_dependencies()` and handle "packages" that start with `-r`/`-c` specially.

- https://pip.pypa.io/en/stable/user_guide/#requirements-files
- https://pip.pypa.io/en/stable/user_guide/#constraints-files

Beitragsleitfaden

Für dieses Repository ist kein Beitragsleitfaden indexiert

Bewertung

Dieses Issue wurde noch nicht bewertet.

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.