-
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
Poetry fails if a local dep is missing while only defined as extra #3936
Comments
The use case is: I am working on two packages simultaneously with the second one depending on the first one. When I am developing, I want to have the |
Hi ! I am running in the same issue with optionable path to wheels (like prodi.gy ones) without develop mode.
Expected resultsEverything works without checking the path. Error log
Note : it's probably related to the Snippet[tool.poetry.dependencies]
prodigy = [
{path = "./data/prodigy_wheels/prodigy-1.10.8-cp36.cp37.cp38-cp36m.cp37m.cp38-win_amd64.whl", markers = "sys_platform == 'win32'", optional = true},
{path = "./data/prodigy_wheels/prodigy-1.10.8-cp36.cp37.cp38-cp36m.cp37m.cp38-linux_x86_64.whl", markers = "sys_platform == 'linux'", optional = true},
{path = "./data/prodigy_wheels/prodigy-1.10.8-cp36.cp37.cp38-cp36m.cp37m.cp38-macosx_10_14_x86_64.whl", markers = "sys_platform == 'darwin'", optional = true},
]
[tool.poetry.extras]
prodigy = ["prodigy"] |
Hi, Bumping this as gently as possible :) I am still blocked by this : I have the lines commented in my pyproject.toml and have to explicitely ask people to uncomment, update, and run the install in the docs. Is this something I could help poetry on or would the fix be too complex ? |
Hi ! Any updates on this ? :) |
Sounds like a duplicate of #2091 |
Duplicate of #668 |
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. |
Checklist
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: Mac OS 10.15.7 (19H524)
Poetry version: Poetry version 1.1.5
Link of a Gist with the contents of your pyproject.toml file:
Issue
Poetry does not manage to handle missing deps defined as extra, even though a complete
poetry.lock
exists and has been generated previously.Workflow to generate the error:
tmp-0
tmp-1
project. Addtmp-0
as extra deps as above.poetry env remove python && rm -rf ../tmp-0
to start over freshpoetry install
failsThe text was updated successfully, but these errors were encountered: