-
Notifications
You must be signed in to change notification settings - Fork 253
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Add data structure, parsing and serialisation for direct_url.json
#701
Comments
https://packaging.python.org/en/latest/specifications/direct-url-data-structure/ Do we just want a |
Would that way support conditional logic? Just asking because I'm unfamiliar with the limitations of typing |
What condition are you explicitly trying to model in the data? |
I mean that the data is contingent upon what the URL field is |
If it's all self-contained and can be determined by a literal, then yes. E.g. |
I think it's more dynamic and based on the top level |
Ah, there might be some way to use |
One concern I have with a If this is something that we want to design for adoption in installers1, IMO we should have the ability to error out with a decent error message about malformed variants of this file (stuff the existing pip logic raises Footnotes
|
I'd be happy to bring https://github.com/edgarrmondragon/pep610/ into |
x-ref https://discuss.python.org/t/place-for-a-direct-url-json-parser/26266
Corresponding code in pip: https://github.com/pypa/pip/blob/23.1.2/src/pip/_internal/models/direct_url.py
The text was updated successfully, but these errors were encountered: