Evaluate Python dependency source precedence

Offen
#975 1 Kommentar 0 Reaktionen 1 zugewiesene Person Auf GitHub ansehen

Maintainer antworten meist innerhalb von 1 Tag

@tdstein arbeitet bereits daran.

Seit 13.11.2026.

  • #979 von @tdstein — offen

Bewertung

Schwierigkeit
4/5
Geschätzter Aufwand
1-2 Tage
Anfängerfreundlichkeit
52/100
Issue-Typ
Feature
Klarheit
Größtenteils klar
Aktivitätsstatus
Aktiv
Tech-Stack
python
Bereich
cli

Rechercherichtung

Start by tracing how the CLI chooses dependency sources for deploy <framework> and deploy pyproject, including how -r uv.lock overrides automatic selection. Compare that behavior with the precedence table in the issue and review the related issues for context. Done means both commands choose sources consistently for the listed file combinations while preserving explicit overrides.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Beschreibung

enhancement ready-for-agent

I’d prefer a lockfile or pyproject.toml over requirements.txt, which can be a stale export. Currently, the command determines the default source.

✓ = present; — = absent. No source overrides. deploy pyproject also requires valid [tool.rsconnect] configuration.

requirements.txt pyproject.toml uv.lock deploy <framework> deploy pyproject
— — — Error Error
✓ — — Requirements Error
— ✓ — Error Pyproject
— — ✓ Error Error
✓ ✓ — Requirements Pyproject
✓ — ✓ Requirements Error
— ✓ ✓ Error Pyproject
✓ ✓ ✓ Requirements Pyproject

-r uv.lock explicitly selects the lockfile. Could we use consistent automatic selection across commands, while keeping explicit overrides?

Related issues
Vorherrschende Sprache
Python
Sterne
38
Forks
28
Ø Merge
1 T. 4 Std.
Gemergte PRs (30 T.)
59

Entwicklungsumgebung

Erste Schritte

  1. Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
  2. Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
  3. Forken Sie das Repository und arbeiten Sie in einem Branch.
  4. Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.

Mehr aus posit-dev/rsconnect-python

Alle Issues in posit-dev/rsconnect-python

Ähnliche Issues

Weitere Issues zu Python

Neue Issues direkt in Ihr Postfach

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