Allow relative paths when specifying local dependencies

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

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

評価

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

調査の方向性

相対パスで宣言されたローカル依存関係を使用して、まず poetry export --output requirements.txt コマンドを再現します。パス依存関係のエクスポート処理を調査し、オプション設定によって相対パスを保持する方法を特定します。生成された requirements ファイルが CI で使用可能なローカルパスを使うようになれば完了です。特定した後、関連するエクスポートのチェックを実行します。

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

説明

  • I am on the latest Poetry version.

  • I have searched the issues of this repo and believe that this is not a duplicate.

  • OS version: Ubuntu 20.04.6 LTS
  • Poetry (version 2.1.2)
  • Python version: 3.10

Issue:

Sort of a follow up to https://github.com/python-poetry/poetry-plugin-export/issues/145

my pyproject.toml file specifies a local dependency:

[tool.poetry.dependencies]
my_pkg = {path = "../../../my_pkg", develop=true}

The poetry.lock file specifies my_package with a relative path, which is correct.

But running poetry export --output requirments.txt results in

# requirements.txt
-e file:///full/path/to/my/local/dependency/my_pkg; 

this requirement.txt becomes unusable in CI due to the absolute path. There should be an optional to make the path in requirements.txt local path instead.

主要言語
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 を短くまとめたダイジェスト。