-
Notifications
You must be signed in to change notification settings - Fork 3.1k
Support Direct URL editable requirements #13495
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
base: main
Are you sure you want to change the base?
Conversation
4164131
to
47e7040
Compare
@@ -66,8 +66,8 @@ for the name and project version (this is in theory slightly less reliable | |||
than using the ``egg_info`` command, but avoids downloading and processing | |||
unnecessary numbers of files). | |||
|
|||
Any URL may use the ``#egg=name`` syntax (see :doc:`../topics/vcs-support`) to | |||
explicitly state the project name. | |||
The :pep:`508` requirement syntax can be used to explicitly state the project |
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.
I hate that I'm adding more references to individual PEPs in the user documentation, but I legitimately don't know where to find a good user guide for Direct URL requirements. Linking to the specification is not exactly user friendly. I defaulted to linking the PEP as this document already does that.
Suggestions would be welcome.
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.
Add a reference to https://packaging.python.org/en/latest/specifications/dependency-specifiers/#dependency-specifiers instead of the PEP.
47e7040
to
fcae387
Compare
Ugh, why is everything filled with so many exceptions and undocumented extensions. There is a backwards compatibility break here. I'll fix it, but I do want to take a closer look at why it's happening. |
This is crucial for the deprecation of non-bare egg URL fragments as they used to be the sole way to request an extra for a VCS editable install. I've also removed all references to egg fragments from the user docs and added further explanation of the Direct URL form in the VCS support topic. Getting the error handling right was a pain. That's why I extracted the two parsing flows into their own functions. Co-authored-by: Tzu-ping Chung <[email protected]>
fcae387
to
8850376
Compare
This is crucial for the deprecation of non-bare egg URL fragments as they used to be the sole way to request an extra for a VCS editable install.
I've also removed all references to egg fragments from the user docs and added further explanation of the Direct URL form in the VCS support topic.
Getting the error handling right was a pain. That's why I extracted the two parsing flows into their own functions.
Towards #13157.
Towards #1289.
Supersedes #9471.