From e59950e0ea05f198e1fd26e60ddb6ccc2567eeb9 Mon Sep 17 00:00:00 2001 From: Brett Cannon Date: Tue, 29 Mar 2022 02:30:43 -0700 Subject: [PATCH] Have sdists normalize the version in the file name (#1066) --- source/specifications/source-distribution-format.rst | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/source/specifications/source-distribution-format.rst b/source/specifications/source-distribution-format.rst index 52bb856fc..3d6546502 100644 --- a/source/specifications/source-distribution-format.rst +++ b/source/specifications/source-distribution-format.rst @@ -36,7 +36,8 @@ Source distribution file name The file name of a sdist is not currently standardised, although the *de facto* form is ``{name}-{version}.tar.gz``, where ``{name}`` is the canonicalized form of the project name (see :pep:`503` for the canonicalization rules) with ``-`` -characters replaced with ``_``, and ``{version}`` is the project version. +characters replaced with ``_``, and ``{version}`` is the canonicalized form of +the project version (see :ref:`version-specifiers`). The name and version components of the filename MUST match the values stored in the metadata contained in the file.