python-poetry / python-poetry/install.python-poetry.org

install-poetry.py fails to install poetry from tarball (using --path)

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

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

主要言語
Python
スター
255
フォーク
65
平均マージ
2時間 48分
マージ済み PR(30日)
1

説明

  • I am on the latest Poetry version.

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

  • If an exception occurs when executing a command, I executed it again in debug mode (-vvv option).

  • OS version and name: Docker image python:3.7-slim

  • Poetry version: N/A

  • Link of a Gist with the contents of your pyproject.toml file: N/A

Issue

To reproduce the environment exactly, everything below should be run within this docker container:

docker run --rm -it python:3.7-slim bash

On top of that, the following needs to be run within the docker container, before the 3 cases described below:

POETRY_VERSION=1.1.7
curl -LO https://github.com/python-poetry/poetry/releases/download/$POETRY_VERSION/poetry-$POETRY_VERSION-linux.tar.gz

Now, this works (old get-poetry.py install script, passing --file):

curl -s https://raw.githubusercontent.com/python-poetry/poetry/master/get-poetry.py | \
  python - --file poetry-$POETRY_VERSION-linux.tar.gz

And so does this (new install-poetry.py install script, passing --version):

curl -s https://raw.githubusercontent.com/python-poetry/poetry/master/install-poetry.py | \
  python - --version $POETRY_VERSION

But this (new install script, passing --path) claims to successfully install poetry, but actually installs an empty venv, without poetry:

curl -s https://raw.githubusercontent.com/python-poetry/poetry/master/install-poetry.py | \
  python - --path poetry-$POETRY_VERSION-linux.tar.gz

I make use of --path so that I can cache the tarball between docker builds & CI executions, so I'll have to stay on the deprecated get-poetry.py script for now 🙃

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

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

はじめの一歩

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

調査の方向性

install-poetry.py から始め、Poetry 1.1.7 の tarball を使って python:3.7-slim Docker イメージで報告された --path のケースを再現します。--version および非推奨の get-poetry.py --file path と動作を比較し、その後、結果として作成された仮想環境に poetry 実行可能ファイルが含まれていることを確認します。

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

評価

技術スタック
python
領域
tooling
issue の種類
バグ
難易度
2/5
見積もり時間
1〜3時間
活発さ
停滞
明瞭さ
明確に書かれている
初心者へのやさしさ
48/100

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

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