[BUG] VCS URLs are detected as path on linux systems
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 2/5
- Tempo stimato
- 1-3 ore
- Idoneità per principianti
- 48/100
Direzione di ricerca
Inizia individuando l’entry point _looks_like_path e riproducendo il caso Linux con l’URL VCS mostrata nell’issue. Segui il modo in cui tale URL viene classificata, quindi verifica che non venga più trattata come un percorso del filesystem, mentre i percorsi ordinari continuano a essere riconosciuti.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
issue
'git+https://github.com/path/to/package-one@41b95ec#egg=package-one'
is detected as a path, but actually it is just a VCS url
expected:
'git+https://github.com/path/to/package-one@41b95ec#egg=package-one'
is NOT detected as a path
reason:
def _looks_like_path(name: str) -> bool:
"""Checks whether the string ``name`` "looks like" a path on the filesystem.
This does not check whether the target actually exists, only judge from the
appearance.
Returns true if any of the following conditions is true:
* a path separator is found (either os.path.sep or os.path.altsep);
* a dot is found (which represents the current directory).
"""
if not name:
return False
if os.path.sep in name:
return True
# exists here, on linux/unix, as there is a '/' in the name
# ...
- Lingua principale
- Python
- Stelle
- 20
- Fork
- 16
- Metriche di merge delle PR
- Nessuna PR unita negli ultimi 30g
Preparare l'ambiente
Questo progetto non fornisce container di sviluppo, Dockerfile né guida per i contributori, quindi l'ambiente è a tuo carico: parti dal suo README e consulta la nostra guida al primo contributo per i passaggi generali.
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di aboutcode-org/pip-requirements-parser
-
Quadratic comment split on a requirements file line (pip_requirements_parser.py:1058)Forse già presa @Anurag-S1ngh l’ha presa 6 giorni fa. Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
aboutcode-org/pip-requirements-parser#30 · 1 commento ·
-
Difficoltà 4/5 3-5 giorni Idoneità per principianti 60/100
-
Tests failures with packaging 26.0Forse già presa @s-t-e-v-e-n-k l’ha presa 270 giorni fa. Aperta
Difficoltà 3/5 1-2 giorni Idoneità per principianti 45/100
-
Doesn't support local paths to wheelsForse già presa @Anurag-S1ngh l’ha presa 1 giorno fa. Aperta
Difficoltà 3/5 1-2 giorni Idoneità per principianti 48/100
aboutcode-org/pip-requirements-parser#26 · 2 commenti ·
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 45/100
Tutte le issue di aboutcode-org/pip-requirements-parser
Issue simili
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 76/100
pytest-dev/pytest-html#1085 ·
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 90/100
pollen-robotics/reachy_mini#1527 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 66/100
I maintainer di solito rispondono entro 2 giorni
-
Variadic arguments that aren't objects are passed as objects (stringWithFormat_ with %d / %f)Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
I maintainer di solito rispondono entro 1 giorno
-
A seed and its negative give the same run, so realizations of a negative seed repeat each otherAperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 66/100
I maintainer di solito rispondono entro 1 giorno