Skip to content

Commit aa3312c

Browse files
Merge branch 'main' into translation/source
2 parents c7a89a6 + c6a3722 commit aa3312c

File tree

2 files changed

+14
-0
lines changed

2 files changed

+14
-0
lines changed

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

Lines changed: 10 additions & 0 deletions
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

source/specifications/source-distribution-format.rst

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,8 @@ specification.
2020

2121
Source distributions are also known as *sdists* for short.
2222

23+
.. _source-distribution-format-source-tree:
24+
2325
Source trees
2426
============
2527

@@ -30,6 +32,8 @@ directories. :pep:`517` and :pep:`518` specify what is required to meet the
3032
definition of what :file:`pyproject.toml` must contain for something to be
3133
deemed a source tree.
3234

35+
.. _source-distribution-format-sdist:
36+
3337
Source distribution file name
3438
=============================
3539

0 commit comments

Comments
 (0)