Providing both `--with Foo` and `--without Foo` results in ignoring `--without`

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

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

評価

難易度
3/5
見積もり時間
1〜2日
初心者へのやさしさ
35/100
issue の種類
バグ
明瞭さ
おおむね明確
活発さ
停滞
技術スタック
python
領域
cli

調査の方向性

まず、--with optional と --without optional を指定して、ドキュメントに記載された poetry export コマンドを再現し、その後、これらのオプションがどこで処理されているかを追跡します。--without を含む競合する組み合わせが暗黙に無視されなくなり、たとえばエラーを報告するなど、決定された解決方針に沿った動作になれば完了です。

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

説明

Currently providing --with and --without simultaneously results in without being ignored.

[tool.poetry]
name = "aaa"
version = "0.1.0"
description = ""
authors = ["pmav99 <[email protected]>"]
readme = "README.md"

[tool.poetry.dependencies]
python = "^3.9"

[tool.poetry.group.optional]
optional = true

[tool.poetry.group.optional.dependencies]
pytest= "*"

[build-system]
requires = ["poetry-core"]
build-backend = "poetry.core.masonry.api"
$ poetry export --without-hashes --without optional | ag pytest                

$ poetry export --without-hashes --with optional | ag pytest                   
pytest==6.2.5; python_version >= "3.6"

$ poetry export --without-hashes --with optional --without optional | ag pytest  # <- Without is being ignored
pytest==6.2.5; python_version >= "3.6"

I think that throwing an Error in this case is probably a better idea.

主要言語
Python
スター
336
フォーク
59
平均マージ
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 を短くまとめたダイジェスト。