Skip to content
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

Only search the Pipenv default index when an alternative index is not specified. #5737

Merged
merged 7 commits into from
Jun 18, 2023

Conversation

matteius
Copy link
Member

@matteius matteius commented Jun 16, 2023

The issue

At some point pip changed behaviors of how it searches among the indexes to not always prefer pypi -- this difference caused inconsistency with the index restricted packages expectations.

Fixes #5736

The checklist

  • Associated issue
  • A news fragment in the news/ directory to describe this fix with the extension .bugfix.rst, .feature.rst, .behavior.rst, .doc.rst. .vendor.rst. or .trivial.rst (this will appear in the release changelog). Use semantic line breaks and name the file after the issue number or the PR #.

@matteius matteius force-pushed the bugfix-restricted-package-indexes branch from 03fce11 to b0ff31e Compare June 17, 2023 15:45
@matteius matteius requested a review from oz123 June 17, 2023 17:39
from pipenv.routines.lock import do_lock
from pipenv.utils.dependencies import pep423_name
from pipenv.vendor import click
from pipenv.vendor.requirementslib.models.requirements import Requirement
from pipenv.vendor.requirementslib.models.utils import get_version
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Neat: removing in function imports to top level because of linter isn't something I favour.
Top level imports slow down the start time of programs. For command line tools which might have short execution time, this might be significant.
This might not have a huge impact here, though.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Multiple sources
2 participants