-
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
pool: ensure sources are prioritised over PyPI #3251
Conversation
When a project specifies non default sources, PyPI gets added as the default source. This will prioritise packages available in PyPI when the package exists in both index. This change ensures that PyPI is only used as a default when no other sources are provided. Resolves: python-poetry#1677 python-poetry#2564 python-poetry#3238
Note that this caused a regression in our use case, we had configured a custom source in It's not a big deal, but on the other hand, we would prefer not to have ugly surprises in patch level updates. Maybe such behavior-changing fixes should not go into patch-level releases? |
@intgr One thing to note here is that this was a bug fix to what became expected behaviour with 1.1.0 - ie. how various repository sources configured were handled. This was expected to keep priorities as described in the documentation, however this was not the case. That said, I can also appreciate that how this is viewed can be subjective, Definitely, not intentional to cause surprises in patch releases and not something we want to make a habbit of either. |
This pull request has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
When a project specifies non default sources, PyPI gets added as the
default source. This will prioritise packages available in PyPI when
the package exists in both index. This change ensures that PyPI is
only used as a default when no other sources are provided.
Resolves: #1677 #2564 #3238