-
Notifications
You must be signed in to change notification settings - Fork 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
Move DistAbstraction and subclasses into a 'distributions' subpackage #6109
Conversation
7b24e7e
to
7462db8
Compare
@@ -0,0 +1,25 @@ | |||
from pip._internal.distributions.source import SourceDistribution as _SrcDist | |||
from pip._internal.distributions.wheel import WheelDistribution as _WhlDist |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why the aliases ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
_names
were too long for linter to be happy and I don't want people to do from from pip._internal.distributions import XYZ
-- mentioning Source/Wheel Distribution is okay for now.
Eventually, this file should be empty anyway. :)
@@ -0,0 +1,26 @@ | |||
class AbstractDistribution(object): | |||
"""A base class that abstracts information about |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think it's better to put any changes to moved code (e.g. class renames, method renames, etc) in commits separate from the move operation, because otherwise you can't really tell what changes are being made to the moved classes. Like above, there is an incomplete docstring, but it wasn't like that in the original.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Duly noted. I'll take care of this in the future. :)
Hello! I am an automated bot and I have noticed that this pull request is not currently able to be merged. If you are able to either merge the |
Yea, not now. Later. |
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
Built on top of #6060
Step 4 of #5051, creating a location for placing separated logic for source/wheel/installed distributions in a better way.