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

Rewrite common executables to use the Python selected by tox

Abierto
#69 1 comentario 0 reacciones 0 asignados Ver en GitHub
enhancement
Lenguaje dominante
Python
Estrellas
26
Forks
9
Métricas de merge de PR
Sin PR fusionados en 30 d

Descripción

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.

Guía de contribución

No hay ninguna guía de contribución indexada para este repositorio

Línea de trabajo

Empieza leyendo el manejo existente que reescribe el ejecutable `python` y rastrea cómo se procesan los comandos de tox que invocan `pytest`. Define qué ejecutables comunes están incluidos y verifica que el Python seleccionado los ejecute sin requerir que los paquetes descendientes cambien sus comandos de tox.

Escrito por el modelo de indexación a partir del texto del issue.

Evaluación

Stack tecnológico
python
Área
testing, tooling
Tipo de issue
Nueva funcionalidad
Dificultad
4/5
Tiempo estimado
3-5 días
Estado de actividad
Estancado
Claridad
Necesita aclaración
Aptitud para principiantes
35/100

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.