-
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 includes a package in its own dependencies #5369
Comments
Sounds like it's just saying that Is there an actual problem here? |
Well, it does not sound reasonable to me. Can you provide a justification? 🤔 One possible problem is that between the two times the package is considered, it has different specification, missing source, resolved_ref and stuff in one of the cases. Not sure if I remember this correctly though. I can try to investigate. |
I was asking whether you had seen an actual problem - sounds like not? As far as I know the logs that you are reporting are completely normal when poetry has a package with extras. Of course if you can show that something is going wrong, that would be different... |
I don't know how poetry handles this, but it made me think of this example from resolvelib
|
@maksbotan please close |
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. |
-vvv
option).Issue
I've discovered a curious issue, when Poetry thinks that a package (one of root's dependencies) depends on itself. Extract from
poetry lock --no-update
:Here you can see that poetry considers
pandorabox
(our private package) dependency, discovers its dependencies (from private PyPI) and selects it. However, for some reason poetry thinks that the package depends on itself.Later on this package is considered and resolved again:
This time no self-dependency arises.
By adding some
print()
calls in poetry code I discovered that the first timepandorabox
is considered, it carries[codon_optimization]
extra, as specified in ourpyproject.toml
file. Second time it does not.Exact dependency line from
pyproject.toml
is here:The text was updated successfully, but these errors were encountered: