-
Notifications
You must be signed in to change notification settings - Fork 2.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Export fails to take proper care of extra in deps with more than one path #5537
Comments
Hi. As with release 1.2, |
I hit a similar issue in Docker running
Installing Poetry 1.2.0b1 within Docker moved the problem to another location:
The parts of the Dockerfile # Change this to 1.2.0b1
ENV POETRY_VERSION 1.1.13
RUN pip install "poetry==${POETRY_VERSION}"
COPY pyproject.toml poetry.lock ./
RUN poetry export --output requirements.txt
RUN python -m venv ${VIRTUAL_ENV}
ENV PATH="${VIRTUAL_ENV}/bin:${PATH}"
RUN pip install --upgrade pip wheel && \
pip install -r requirements.txt |
This was resolved by #5688 and python-poetry/poetry-plugin-export#65 |
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
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: Debian testing (bookworm, i.e. on the way to 12.0)
Poetry version: 1.1.13 installed from pip
Link of a Gist with the contents of your pyproject.toml file: https://gist.github.com/shaib/3bd014dd9cfe39faf23dcd1363da9a2d
Issue
Starting from scratch, adding one dependency which requires
google-api-core[grpc]
and another which constrainsgoogle-api-core
(the real project is of course significantly more complex and the limit is derived), all is well as long as we're in poetry; but when exported, even though all the chain of dependencies seems to be exported, it seems that the extra designation itself is not; and the result is, that when we try topip install
from the requirements file, we getAll the details -- a log of the session, the
poetry add -vvv
output, the pyproject.toml, poetry.lock and requirements.txt are in the gist listed above.(edit: Running, in the above, the command
allows pip to install everything)
#4912 seems to be closely related but I believe it is not the same issue.
The text was updated successfully, but these errors were encountered: