Skip to content

Commit c6a3722

Browse files
authored
Merge pull request #1785 from brettcannon/patch-3
Add labels to direct-url-data-structure.rst for cross-referencing
2 parents 6cda9a1 + 51487e8 commit c6a3722

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

source/specifications/direct-url-data-structure.rst

+10
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,8 @@ Additionally, the user:password section of the URL MAY be a
4949
well-known, non security sensitive string. A typical example is ``git``
5050
in the case of a URL such as ``ssh://[email protected]/user/repo``.
5151

52+
.. _direct-url-data-structure-vcs:
53+
5254
VCS 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+
7579
Archive 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
105109
consider the ``hashes`` key only if it is present, and fall back to ``hash`` otherwise.
106110

111+
.. _direct-url-data-structure-local-directory:
112+
107113
Local directories
108114
-----------------
109115

@@ -118,13 +124,17 @@ be compliant with :rfc:`8089`. In
118124
particular, the path component must be absolute. Symbolic links SHOULD be
119125
preserved when making relative paths absolute.
120126

127+
.. _direct-url-data-structure-subdirectories:
128+
121129
Projects in subdirectories
122130
--------------------------
123131

124132
A top-level ``subdirectory`` field MAY be present containing a directory path,
125133
relative to the root of the VCS repository, source archive or local directory,
126134
to specify where ``pyproject.toml`` or ``setup.py`` is located.
127135

136+
.. _direct-url-data-structure-registered-vcs:
137+
128138
Registered VCS
129139
==============
130140

0 commit comments

Comments
 (0)