-
-
Notifications
You must be signed in to change notification settings - Fork 94
Fix requirement produced for git URL in extra #358
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
|
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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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