`poetry export --filter 'pytest,pytest-*'` or similar

オープン
#236 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
5/5
見積もり時間
1週間以上
初心者へのやさしさ
25/100
issue の種類
機能追加
明瞭さ
おおむね明確
活発さ
停滞
技術スタック
python
領域
cli, tooling

調査の方向性

まず既存の poetry export コマンドとその --only の動作を確認し、次に tox が pip 経由で依存関係リストをどのように利用するかを調べます。実装前に、フィルタリング構文とサポートするマッチング動作を定義します。tox 環境向けに一致する開発依存関係をエクスポートで動的に選択でき、要求された例に対するカバレッジがあることをもって完了とします。

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

説明

  • I have searched the issues of this repo and believe that this is not a duplicate.
  • I have searched the FAQ and general documentation and believe that my question is not already covered.

Feature Request

I am trying to figure out what would be the best way to combine poetry's dependency management with tox. I need to configure multiple environments for formatting, linting, testing, etc. and each of those environments has a different list of development dependencies. I think I could make it work by defining groups for dependencies but would it not be simpler to just be able to create any dynamic filter within tox, so that poetry does not need to be aware of those different groups, just that the dependencies are only for development?

This is why I suggest adding filtering functionality to poetry export so that one could do:

poetry export --only dev --filter 'pytest,pytest-*'

So that then tox's default handling of dependencies (via pip) can rely on dynamically generated locked dependencies' lists.

主要言語
Python
スター
336
フォーク
60
平均マージ
10分
マージ済み PR(30日)
1

環境構築

このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

python-poetry/poetry-plugin-export のほかの issue

python-poetry/poetry-plugin-export の issue をすべて見る

似ている issue

Python の issue をもっと見る

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

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