Fix requirement produced for git URL in extra#358
Conversation
|
I cherry-picked the tests onto main and verified that they do indeed fail without the patch: I do think since the failure doesn't specifically call out why it failed, there should be a comment similar to the "It's important..." comment that's already there, explaining what we learned in #357. |
|
The tests are failing in Python 3.6 due to mypy complaining about no |
I no longer thing it's important to call out the why in the tests because the implementation calls out the rationale. |
| Ref python/importlib_metadata#357. | ||
| """ | ||
| # '@' is uniquely indicative of a url_req. | ||
| return ' ' * ('@' in req) |
There was a problem hiding this comment.
Technically this is not correct because @ can be found in a version here; the version format in an egg-info is not PEP 508 compliant (it predates the standard). But adding a space is always fine, so no bugs will come out of this.
Fixes #357 , as suggested by @uranusjr