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

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

Abierto
#58 1 comentario 0 reacciones 0 asignados Ver en GitHub

Nadie ha tomado este issue todavía.

Lenguaje dominante
Python
Estrellas
255
Forks
65
Merge medio
2 h 48 min
PR fusionados (30 d)
1

Descripción

  • 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 🙃

Guía de contribución

No hay ninguna guía de contribución indexada para este repositorio

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Línea de trabajo

Comienza con install-poetry.py y reproduce el caso de --path indicado en la imagen de Docker python:3.7-slim usando el tarball de Poetry 1.1.7. Compara su comportamiento con --version y con el get-poetry.py --file path obsoleto; después, verifica que el entorno virtual resultante contenga el ejecutable poetry.

Escrito por el modelo de indexación a partir del texto del issue.

Evaluación

Stack tecnológico
python
Área
tooling
Tipo de issue
Error
Dificultad
2/5
Tiempo estimado
1-3 horas
Estado de actividad
Estancado
Claridad
Bien especificado
Aptitud para principiantes
48/100

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.