@@ -10,10 +10,10 @@ This document specifies a JSON-serializable abstract data structure that can rep
10
10
URLs to python projects and distribution artifacts such as VCS source trees, local
11
11
source trees, source distributions and wheels.
12
12
13
- The representation of the components of this data structure as a :rfc: ` 1738 ` URL
14
- is not formally specified at time of writing . A common representation is the pip URL
15
- format. Other examples are provided in the :ref: ` Version specifier specification < version-specifiers >`.
16
-
13
+ At time of writing, it is not formally specified how to merge the parts of this
14
+ data structure into a single URL that can be passed to tools . A common representation is the
15
+ pip URL format (` VCS Support < pip-vcs-support _>`_), other examples are provided in the
16
+ :ref: ` Version specifier specification < version-specifiers >`.
17
17
18
18
Specification
19
19
=============
@@ -22,9 +22,12 @@ The Direct URL Data Structure MUST be a dictionary, serializable to JSON accordi
22
22
:rfc: `8259 `.
23
23
24
24
It MUST contain at least two fields. The first one is ``url ``, with
25
- type ``string ``. Depending on what ``url `` refers to, the second field MUST be
26
- one of ``vcs_info `` (if ``url `` is a VCS reference), ``archive_info `` (if
27
- ``url `` is a source archives or a wheel), or ``dir_info `` (if ``url `` is a
25
+ type ``string ``. Its content must be a valid URL according to the
26
+ `WHATWG URL Standard <whatwg-url-standard _>`_.
27
+
28
+ Depending on what ``url `` refers to, the second field MUST be one of ``vcs_info ``
29
+ (if ``url `` is a VCS reference), ``archive_info `` (if
30
+ ``url `` is a source archive or a wheel), or ``dir_info `` (if ``url `` is a
28
31
local directory). These info fields have a (possibly empty) subdictionary as
29
32
value, with the possible keys defined below.
30
33
@@ -396,3 +399,5 @@ History
396
399
397
400
398
401
.. _archive-info-hashes : https://discuss.python.org/t/22299
402
+ .. _pip-vcs-support : https://pip.pypa.io/en/stable/topics/vcs-support/
403
+ .. _whatwg-url-standard : https://url.spec.whatwg.org/
0 commit comments