python-poetry / python-poetry/install.python-poetry.org
install-poetry.py fails to install poetry from tarball (using --path)
Personne n'a encore pris cette issue.
- Langage dominant
- Python
- Étoiles
- 255
- Forks
- 65
- Merge moyen
- 2 h 48 min
- PR mergées (30 j)
- 1
Description
-
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 (
-vvvoption). -
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 🙃
Guide de contribution
Aucun guide de contribution indexé pour ce dépôt
Par où commencer
- Lisez l'issue en entier, puis le guide de contribution du projet.
- Signalez en commentaire que vous la prenez — cela évite que deux personnes fassent le même travail.
- Forkez le dépôt et travaillez sur une branche.
- Ouvrez une pull request qui référence le numéro de l'issue.
Piste de recherche
Commencez par install-poetry.py et reproduisez le cas --path signalé dans l’image Docker python:3.7-slim en utilisant l’archive tar de Poetry 1.1.7. Comparez son comportement avec --version et avec get-poetry.py --file path, qui est obsolète, puis vérifiez que l’environnement virtuel résultant contient l’exécutable poetry.
Rédigé par le modèle d'indexation à partir du texte de l'issue.
Évaluation
- Stack technique
- python
- Domaine
- tooling
- Type d'issue
- Bug
- Difficulté
- 2/5
- Temps estimé
- 1-3 heures
- Activité
- À l'abandon
- Clarté
- Clairement spécifiée
- Accessibilité débutants
- 48/100