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

Store PackageFinder.trusted_hosts instead of secure_origins #6597

Merged
merged 1 commit into from
Jun 12, 2019

Conversation

cjerdonek
Copy link
Member

This PR simplifies the PackageFinder class by storing the original trusted_hosts instead of secure_origins. As you can see from the PR, a couple interactions with the PackageFinder class become simplified when this happens. It also simplifies the create() method and makes the computation of the secure_origins separately testable (which this PR does).

@cjerdonek cjerdonek added type: refactor Refactoring code skip news Does not need a NEWS file entry (eg: trivial changes) C: finder PackageFinder and index related code labels Jun 12, 2019
@cjerdonek cjerdonek force-pushed the simplify-finder-secure-origins branch 2 times, most recently from bbb61dc to cd616a4 Compare June 12, 2019 06:05
@cjerdonek cjerdonek force-pushed the simplify-finder-secure-origins branch from cd616a4 to 4c1ccae Compare June 12, 2019 09:18
Copy link
Member

@pradyunsg pradyunsg left a comment

Choose a reason for hiding this comment

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

Nice!

@cjerdonek
Copy link
Member Author

Thanks!

@cjerdonek cjerdonek merged commit 564c5df into pypa:master Jun 12, 2019
@cjerdonek cjerdonek deleted the simplify-finder-secure-origins branch June 12, 2019 11:42
@lock lock bot added the auto-locked Outdated issues that have been locked by automation label Jul 12, 2019
@lock lock bot locked as resolved and limited conversation to collaborators Jul 12, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
auto-locked Outdated issues that have been locked by automation C: finder PackageFinder and index related code skip news Does not need a NEWS file entry (eg: trivial changes) type: refactor Refactoring code
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants