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

Change PackageFinder to accept py_version_info instead of python_versions #6539

Merged
merged 2 commits into from
May 28, 2019

Conversation

cjerdonek
Copy link
Member

@cjerdonek cjerdonek commented May 25, 2019

This is a refactoring PR to change how PackageFinder accepts and stores the --python-version passed to it. The change is to pass a tuple of ints like (3, 6) rather than a list of strings ['36'] as it is currently doing. (For example, a list isn't actually needed since there is only ever at most one element.) This will be useful for issues like #5369 and #6117 (with PR #6357) and also makes the code easier to understand and work with.

@cjerdonek cjerdonek added C: finder PackageFinder and index related code skip news Does not need a NEWS file entry (eg: trivial changes) type: refactor Refactoring code labels May 25, 2019
@cjerdonek cjerdonek changed the title [WIP] Change PackageFinder to accept py_version_info instead of python_versions Change PackageFinder to accept py_version_info instead of python_versions May 25, 2019
src/pip/_internal/pep425tags.py Outdated Show resolved Hide resolved
@cjerdonek cjerdonek force-pushed the package-finder-version-info branch from a2c4123 to 798d814 Compare May 28, 2019 10:05
@cjerdonek
Copy link
Member Author

@xavfernandez Thanks again for reviewing. I incorporated your suggested change.

@cjerdonek cjerdonek merged commit 0cb8f60 into pypa:master May 28, 2019
@cjerdonek cjerdonek deleted the package-finder-version-info branch May 28, 2019 10:46
@lock lock bot added the auto-locked Outdated issues that have been locked by automation label Jun 27, 2019
@lock lock bot locked as resolved and limited conversation to collaborators Jun 27, 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