-
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
Extra dependencies for package on private repo uninstalled when running poetry install
.
#3224
Comments
@iksteen first off, thank you for the extremely useful bug report! 👍 Did a bit of digging; seems the issue is the way we parse the extras from the lock file. I have a hotfix for |
@abn That's awesome! Thanks for the quick triage! |
Previously, when using locked repository, incorrect dependency instance was created when a dependency's extra requirement activated a nested extra. This change ensures that these are correctly loaded. As part of this change new lock files write PEP 508 serialised form of extra dependencies in order to reuse core logic to parse specification of extra requirement. Resolves: python-poetry#3224
@iksteen Good bug reports help :) Can you please try the fix at #3229. Using pipxpipx install --suffix=@3229 'poetry @ git+https://github.com/python-poetry/poetry.git@refs/pull/3229/head' Using a container (podman | docker)podman run --rm -i --entrypoint bash python:3.8 <<EOF
set -xe
python -m pip install -q git+https://github.com/python-poetry/poetry.git@refs/pull/3229/head
install -d foobar
pushd foobar
curl -sLO https://gist.githubusercontent.com/iksteen/83a3d5b55a8274bfbb434d72676fea70/raw/c981a55f957f61766be0ff7c77e169017aaf8d56/pyproject.toml
poetry install --no-root
poetry add iksteen-aaa -E example
poetry install --no-root
EOF |
Works for me! |
Previously, when using locked repository, incorrect dependency instance was created when a dependency's extra requirement activated a nested extra. This change ensures that these are correctly loaded. As part of this change new lock files write PEP 508 serialised form of extra dependencies in order to reuse core logic to parse specification of extra requirement. Resolves: python-poetry#3224
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: Arch Linux
Poetry version: 1.1.3
Link of a Gist with the contents of your pyproject.toml file: https://gist.github.com/iksteen/bd2e570b8986f348e136038439d6be19
Issue
After installing a package with extras from a private repository and running
poetry install
again, the extra dependencies are uninstalled. For easy reproducibility I've created a private repository that's publicly accessible and contains a single package (iksteen-aaa).poetry install
again and see the extra dependencies getting uninstalled:When adding the package in a different way, f.e. by adding the wheel by its direct URL https://pypi.thegraveyard.org/api/package/iksteen-aaa/iksteen_aaa-0.1.0-py3-none-any.whl, the uninstalling of the extra dependencies does NOT occur.
The text was updated successfully, but these errors were encountered: