Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

Rewrite common executables to use the Python selected by tox

Aperta
#69 1 commento 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
35/100
Tipo di issue
Funzionalità
Chiarezza
Da chiarire
Stato di attività
Ferma
Stack tecnologico
python
Ambito
testing, tooling

Direzione di ricerca

Inizia leggendo la gestione esistente che riscrive l'eseguibile python e traccia il modo in cui vengono elaborati i comandi tox che invocano pytest. Definisci quali eseguibili comuni rientrano nell'ambito e verifica che il Python selezionato li esegua senza richiedere ai pacchetti downstream di modificare i propri comandi tox.

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

Descrizione

enhancement

In https://github.com/jaraco/skeleton/issues/86, @mtelka proposes to replace pytest in the tox commands with python -m pytest in order to avoid ambiguity in which Python version is used to execute the tests.

As described in that issue, making that change has other effects and would exist only to support a narrow set of uses.

Since tox-current-env is implicated in the failure and since it already re-writes the handling of python as an executable, perhaps this project should also handle other common executables (pytest to start, but maybe others) by replacing such invocations with python -m pytest or perhaps {sys.executable} $(which pytest).

This approach would address the issue more selectively and surgically where it's needed and avoid the need to adapt many (all?) downstream packages to use a non-standard approach to accommodate users of this project.

Lingua principale
Python
Stelle
26
Fork
9
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

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di fedora-python/tox-current-env

Tutte le issue di fedora-python/tox-current-env

Issue simili

Altre issue su Python

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.