Closed MarcinKonowalczyk closed 4 weeks ago
I'm happy with this just really being a non-issue and closing it with #wont-fix or something along these lines btw. Mainly just wanted to document the behaviour and keep a reference to the relevant bit of code somewhere :))
Stale issue message
Environment
Description
This is a followup from PR #75.
Test fails if a package with
pip
as a dependency is installed in the test environment.What I Did
Checkout head of PR #75.
Now let's install a package which depends on pip. I'm not picking on
pip-autoremove
here. It's just the package that i've noticed this behaviour with first.pytest output:
This happens because
pip-autoremove
depends onpip
and sopip
is put into dependencies. The fact that the test asks for pip to be present in dept makes me think it ought to be special and always show up in top level. I think either 1) the test should change, 2) the behaviour of pip-chill should change or 3) this 'sharp corner'(?) should be better documented.For reference, in #75 i've originally implemented option 2. It can be tried with:
Here is the diff.