bytecodealliance / bytecodealliance/componentize-py

Add support for .pth files

Aperta
#181 7 commenti 0 reazioni 0 assegnatari Vedi su GitHub
good first issue
Lingua principale
Rust
Stelle
277
Fork
51
Merge medio
12h 10m
PR unite (30g)
10

Descrizione

> A path configuration file is a file whose name has the form **name.pth** and exists in one of the four directories mentioned above; its contents are additional items (one per line) to be added to sys.path. Non-existing items are never added to sys.path, and no check is made that the item refers to a directory rather than a file. No item is added to sys.path more than once. Blank lines and lines beginning with # are skipped. Lines starting with import (followed by space or tab) are executed.

https://docs.python.org/3/library/site.html

.pth files are often used by python packaging systems (like uv, etc...) to make working on the current project more elegant, by pointing from the .venv/ path to the project path.

Guida per i contributori

Apri la guida per i contributori

Direzione di ricerca

Start with the linked Python site documentation and the componentize-py handling of the .venv/ path. Compare the requested behavior with .pth rules for path entries, comments, blank lines, duplicate entries, missing paths, and import lines. Done means supported .pth files can add valid project paths to sys.path without adding invalid or duplicate entries.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Valutazione

Stack tecnologico
python, rust
Ambito
tooling
Tipo di issue
Funzionalità
Difficoltà
3/5
Tempo stimato
1-2 giorni
Stato di attività
Ferma
Chiarezza
Abbastanza chiara
Idoneità per principianti
35/100

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.