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

Move RequirementCommand to a different module #6835

Merged
merged 1 commit into from Aug 7, 2019

Conversation

cjerdonek
Copy link
Member

This is a follow-on to PR #6694 ("Address #6692: Only import a Command class when needed").

This PR makes it so that RequirementCommand is only imported when running commands that actually inherit from RequirementCommand (specifically download, install, and wheel). This gets us closer to making it so that the PackageFinder and download machinery is only imported when running commands that actually need it.

This is also related to #4768 ("Speedup startup time").

@cjerdonek cjerdonek added type: refactor Refactoring code skip news Does not need a NEWS file entry (eg: trivial changes) labels Aug 4, 2019
Copy link
Member

@chrahunt chrahunt left a comment

Choose a reason for hiding this comment

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

Looks good. 👍

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.

Any interest in making the code formatting in the file consistent while you're moving it?

@cjerdonek
Copy link
Member Author

cjerdonek commented Aug 7, 2019

Thanks, @chrahunt and @pradyunsg!

Any interest in making the code formatting in the file consistent while you're moving it?

I can do this as part of a follow-on PR I'll be posting shortly..

@cjerdonek cjerdonek merged commit 5a1b97d into pypa:master Aug 7, 2019
@cjerdonek cjerdonek deleted the requirement-command-import branch August 7, 2019 19:08
@pradyunsg
Copy link
Member

s/@pradyunsg/@chrahunt/1

@cjerdonek
Copy link
Member Author

Oops, fixed! :)

@lock lock bot added the auto-locked Outdated issues that have been locked by automation label Sep 7, 2019
@lock lock bot locked as resolved and limited conversation to collaborators Sep 7, 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 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.

None yet

3 participants