Skip to content

Commit 7a2743a

Browse files
authored
PEP 751: Fix example (#4256)
1 parent cd861f5 commit 7a2743a

File tree

1 file changed

+14
-14
lines changed

1 file changed

+14
-14
lines changed

peps/pep-0751.rst

+14-14
Original file line numberDiff line numberDiff line change
@@ -154,20 +154,6 @@ consistent order. Usage of inline tables SHOULD also be kept consistent.
154154
- If an tool doesn't support a major version, it MUST raise an error.
155155

156156

157-
``created-by``
158-
==============
159-
160-
- **Type**: string
161-
- **Required?**: yes
162-
- **Inspiration**: Tools with their name in their lock file name
163-
- Records the name of the tool used to create the lock file.
164-
- Tools MAY use the ``[tool]`` table to record enough details that it can be
165-
inferred what inputs were used to create the lock file.
166-
- Tools SHOULD record the normalized name of the tool if it is available as a
167-
Python package to facilitate finding the tool.
168-
169-
170-
171157
``environments``
172158
================
173159

@@ -202,6 +188,19 @@ consistent order. Usage of inline tables SHOULD also be kept consistent.
202188
be installed MUST narrow down to a single entry at install time.
203189

204190

191+
``created-by``
192+
==============
193+
194+
- **Type**: string
195+
- **Required?**: yes
196+
- **Inspiration**: Tools with their name in their lock file name
197+
- Records the name of the tool used to create the lock file.
198+
- Tools MAY use the ``[tool]`` table to record enough details that it can be
199+
inferred what inputs were used to create the lock file.
200+
- Tools SHOULD record the normalized name of the tool if it is available as a
201+
Python package to facilitate finding the tool.
202+
203+
205204
.. Identification
206205
207206
``packages.name``
@@ -647,6 +646,7 @@ Example
647646
648647
metadata-version = "1.0"
649648
requires-python = ">=3.9"
649+
created-by = "PEP 751"
650650
651651
[[packages]]
652652
name = "attrs"

0 commit comments

Comments
 (0)