From d766ea0d3c8b8e2a8dbdec7cc7e7591ddc7717aa Mon Sep 17 00:00:00 2001 From: Brett Cannon Date: Thu, 6 Feb 2025 16:41:56 -0800 Subject: [PATCH] Fix example --- peps/pep-0751.rst | 28 ++++++++++++++-------------- 1 file changed, 14 insertions(+), 14 deletions(-) diff --git a/peps/pep-0751.rst b/peps/pep-0751.rst index 7cfee1050d6..9eaca463dab 100644 --- a/peps/pep-0751.rst +++ b/peps/pep-0751.rst @@ -154,20 +154,6 @@ consistent order. Usage of inline tables SHOULD also be kept consistent. - If an tool doesn't support a major version, it MUST raise an error. -``created-by`` -============== - -- **Type**: string -- **Required?**: yes -- **Inspiration**: Tools with their name in their lock file name -- Records the name of the tool used to create the lock file. -- Tools MAY use the ``[tool]`` table to record enough details that it can be - inferred what inputs were used to create the lock file. -- Tools SHOULD record the normalized name of the tool if it is available as a - Python package to facilitate finding the tool. - - - ``environments`` ================ @@ -202,6 +188,19 @@ consistent order. Usage of inline tables SHOULD also be kept consistent. be installed MUST narrow down to a single entry at install time. +``created-by`` +============== + +- **Type**: string +- **Required?**: yes +- **Inspiration**: Tools with their name in their lock file name +- Records the name of the tool used to create the lock file. +- Tools MAY use the ``[tool]`` table to record enough details that it can be + inferred what inputs were used to create the lock file. +- Tools SHOULD record the normalized name of the tool if it is available as a + Python package to facilitate finding the tool. + + .. Identification ``packages.name`` @@ -647,6 +646,7 @@ Example metadata-version = "1.0" requires-python = ">=3.9" + created-by = "PEP 751" [[packages]] name = "attrs"