Closed yoniLavi closed 3 years ago
Sorry, I tried to do a bit of archaeology around that get_requirement_info
function in older versions of pip and was disappointed to see it was implemented in several different ways before this new incarnation, so it could be a bit of a mess to support it well on old versions of Python.
I assume that having it work for now only in the newer versions is better than nothing and have left a TODO comment.
Stale pull request message
I think I forgot most of the context around this. Can you redo the PR against develop? The conflicts seem simple enough.
Hi @rbanffy , I looked at it now and see my solution at the time isn't useful anymore. That's on me for trying to use an _internal
function.
I played with it a bit and saw that we could now do it with FrozenRequirement
, but seeing how these internals keep changing, it's probably not worth it, so I've closed the PR.
from pip._internal.operations.freeze import FrozenRequirement
...
FrozenRequirement.from_dist(distribution).req
Hi Ricardo, Following our coding session earlier, I've implemented feature #8. The comments are slightly different since I actually accidentally lost the previous edits :( Any feedback is welcome Cheers