@@ -49,6 +49,8 @@ Additionally, the user:password section of the URL MAY be a
4949well-known, non security sensitive string. A typical example is ``git ``
5050in the case of a URL such as ``
ssh://[email protected] /user/repo ``.
5151
52+ .. _direct-url-data-structure-vcs :
53+
5254VCS URLs
5355--------
5456
@@ -72,6 +74,8 @@ as a dictionary with the following keys:
7274 ``commit_id `` in order to reference an immutable
7375 version of the source code.
7476
77+ .. _direct-url-data-structure-archive :
78+
7579Archive URLs
7680------------
7781
@@ -104,6 +108,8 @@ When both the ``hash`` and ``hashes`` keys are present, the hash represented in
104108``hash `` key MUST also be present in the ``hashes `` dictionary, so consumers can
105109consider the ``hashes `` key only if it is present, and fall back to ``hash `` otherwise.
106110
111+ .. _direct-url-data-structure-local-directory :
112+
107113Local directories
108114-----------------
109115
@@ -118,13 +124,17 @@ be compliant with :rfc:`8089`. In
118124particular, the path component must be absolute. Symbolic links SHOULD be
119125preserved when making relative paths absolute.
120126
127+ .. _direct-url-data-structure-subdirectories :
128+
121129Projects in subdirectories
122130--------------------------
123131
124132A top-level ``subdirectory `` field MAY be present containing a directory path,
125133relative to the root of the VCS repository, source archive or local directory,
126134to specify where ``pyproject.toml `` or ``setup.py `` is located.
127135
136+ .. _direct-url-data-structure-registered-vcs :
137+
128138Registered VCS
129139==============
130140
0 commit comments