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

Rewrite common executables to use the Python selected by tox

オープン
#69 コメント 1 件 リアクション 0 件 担当者 0 名 GitHub で見る
enhancement
主要言語
Python
スター
26
フォーク
9
PR マージ指標
30日以内にマージされた PR はありません

説明

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.

コントリビューションガイド

このリポジトリのコントリビューションガイドは索引されていません

調査の方向性

まず、実行可能ファイル `python` を書き換える既存の処理を読み、`pytest` を呼び出す tox コマンドがどのように処理されるかを追跡してください。対象とする一般的な実行可能ファイルを定義し、選択した Python が、下流のパッケージに tox コマンドの変更を要求せずにそれらを実行できることを確認してください。

索引モデルが issue の本文から書いたものです。

評価

技術スタック
python
領域
testing, tooling
issue の種類
機能追加
難易度
4/5
見積もり時間
3〜5日
活発さ
停滞
明瞭さ
説明が足りない
初心者へのやさしさ
35/100

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。