-
Notifications
You must be signed in to change notification settings - Fork 1k
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
fix #8414 follow poetry source constraint #8422
fix #8414 follow poetry source constraint #8422
Conversation
9e5ac3e
to
d1b083e
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Makes sense to me!
Regarding your question, yes, it makes to me to align with poetry. If poetry fails to run that kind of project, since we run poetry ourselves, we're already running into an unknown error anyways. So it makes sense to raise a proper user error instead. Maybe |
d1b083e
to
047d29c
Compare
I've squashed the commits, and I think the PR may be also to merged first. To align with Poetry, it will require more time as I want to clarify Poetry's behavior. I have raised an issue there to discuss further: python-poetry/poetry#8704." |
Thank you! Yes, I will merge this PR independently of any other improvements. Hopefully next week! |
047d29c
to
86c7998
Compare
Thanks for the improvement @lucemia, it's now merged and deployed 🎉 |
Context
https://python-poetry.org/docs/repositories/#package-source-constraint
Summary
index_finder.rb
script to ensure that if a dependency has a package source configuration inpyproject.toml
, it won't utilize any other sources as its:main
source.pyproject.toml
, Poetry will raise an exception, but Dependabot will continue to check the default source.User-facing changes
Testing Instructions
[dependabot-core-dev] ~ $ ./bin/dry-run.rb pip lucemia/dependabot-source-constraint --cache=files
Before modification
https://pypi.org/simple/requests/
After modification
https://pypi.org/simple/requests/