From b0b011fd5fc9d06b4e052d3a3a4516fb034e0825 Mon Sep 17 00:00:00 2001 From: Jacob Coffee Date: Thu, 22 Oct 2026 17:04:27 -0700 Subject: [PATCH] edit pep440: add version id length limit --- source/specifications/version-specifiers.rst | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/source/specifications/version-specifiers.rst b/source/specifications/version-specifiers.rst index 75093c2e2..7c64662d0 100644 --- a/source/specifications/version-specifiers.rst +++ b/source/specifications/version-specifiers.rst @@ -173,6 +173,19 @@ indexing and hosting upstream projects, it MUST NOT allow the use of local version identifiers. +.. _version-identifier-length: + +Version identifier length +------------------------- + +Version identifiers for new releases MUST NOT exceed 128 characters after +:ref:`normalization `, including any local +version label. + +Installation tools MUST NOT reject otherwise valid versions solely because +they exceed this limit. + + Final releases -------------- @@ -1286,3 +1299,5 @@ History they are handled. - Nov 2025: Make arbitrary equality case insensitivity explicit. - Jan 2026: The use of epochs was discouraged. +- Oct 2026: Limit version identifiers for new releases to 128 characters after + normalization.