-
Notifications
You must be signed in to change notification settings - Fork 3k
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
Smarter (and looser) link equivalency logic #10079
Smarter (and looser) link equivalency logic #10079
Conversation
503aeda
to
c55d17c
Compare
b0adb89
to
a889a22
Compare
a889a22
to
a323183
Compare
48fd6a9
to
c53ed18
Compare
c53ed18
to
83d092f
Compare
Still hoping someone could take a look. I detailed the logic in the docstring, a brief browse would be much appreciated. |
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.
Looks reasonable to me. I've only desk-checked, and I've not really reviewed the tests, but the logic seems good.
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.
Implementation LGTM!
A few non-blocker comments on the tests, and one maybe-should-do-later suggestion.
pytest.param( | ||
False, | ||
"#subdirectory=bar&egg=foo", | ||
"#subdirectory=rex", | ||
id="drop-egg-still-different", | ||
), |
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.
nit-ish: Add another test for the reverse of this, and move this to the top with the other drop-
tests?
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.
Reverse as in reversing subdirectory
and egg
, or the two values to arguments?
3707bf1
to
c7bec9b
Compare
c7bec9b
to
2da77e9
Compare
Fix #10002 (eventually).
Todo:
links_equivalent
.Add a--use-deprecated
flag to enable the current (stricter) behaviour in case this does not work for some cases.Decided to not do this since I don’t see how users would find this flag useful.
Add a deprecation warning whenegg=
is used. (How can we only show this once?)Not doing this for now, see Resolution conflict due to the PEP 508 requirement with superfluous #egg fragment specified in a package’s metadata #10002 (comment)
Dig out previous issues on this and close them (IIRC there are a couple).refactor pip's use of "#egg=" #1289 is the other issue about this, but that one is wider in scope and cannot be closed by this alone.