-
Notifications
You must be signed in to change notification settings - Fork 3.1k
Fix #4292: Fix freeze when package occurs more than once #4293
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
Conversation
b30dfdd
to
08ad817
Compare
All recent pull requests are failing due to an issue with appdirs. I'll verify that tests are passing for this PR after the appdirs issue is resolved. |
e883132
to
1b73374
Compare
You should be able to merge in |
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.
Please merge master
into this PR to get tests working again (re-post for review system).
2308fb5
to
7635eea
Compare
aa10215
to
edbbdf5
Compare
edbbdf5
to
ffd587e
Compare
I rebased my topic branch on master and the tests are now passing. I also added a news file describing the change.. |
3136d37
to
1c8fa01
Compare
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 |
I merged master again to resolve the conflict. |
Automated review dismissal at the request of @eukaryote
44b5a3d
to
5992474
Compare
5992474
to
46dfcc3
Compare
46dfcc3
to
3b21fc1
Compare
Automated review dismissal at the request of @eukaryote
By the way, isn't this a bug rather than an enhancement? 'pip freeze' is printing a warning that says the package is not installed even though it is installed. |
Enhancement as in a bug fix. |
I'm not sure what you mean by "Enhancement as in a bug fix". Do you mean that this is not a bug for some reason but an enhancement, even though the current behavior says "package is not installed" when the package is actually installed? In case it wasn't clear, I specifically was talking about the label 'kind - bug' vs the 'kind - enhancement'. |
Okay, firstly, sorry for being so terse last time around. The terminology I'm using here is - #4292 is a bug and this PR enhances pip by fixing that bug. Since that issue links to this PR, I think it's fine. Anyway, if you still want a bug tag on this PR, just say so and I'll add it. |
Thanks for the explanation. Makes sense to me. |
@dstufft @pradyunsg Is there anything else I can do on this issue & PR in order to help move things along? |
@eukaryote Sorry for the delay in responding. This needs to be reviewed by someone from @pypa/pip-committers. So, I just pinged them. :) |
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 |
- keeps track of packages seen and which requirements file they were in so that the erroneous message about a package not being installed is not output and a message that identifies the files that contain the duplicate package can be output.
52f8b23
to
ff42bdb
Compare
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.
LGTM.
I'll wait for someone else to review this too though.
Thanks @eukaryote! 🎉 |
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. |
Tests and a fix for the behavior described in #4292, wherein 'pip freeze -r requirements.txt' displays a false warning says a package isn't installed if it appears twice in the requirements file.
Before the pull request, this is the behavior in a new venv:
The pull request adds two tests that catch this error due to (1) multiple in a single requirements file, or (2) multiple requirements file that contain the same package, and changes the behavior to log one warning for each package that appears more than once: