From f7eb52839eb4ebdf1d96ea8de3316ab5ec9d4c19 Mon Sep 17 00:00:00 2001 From: William Woodruff Date: Wed, 2 Dec 2026 17:23:14 -0500 Subject: [PATCH] Tighten entry point naming requirements Signed-off-by: William Woodruff --- source/specifications/entry-points.rst | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/source/specifications/entry-points.rst b/source/specifications/entry-points.rst index 9fc9f3866..6fe142a7a 100644 --- a/source/specifications/entry-points.rst +++ b/source/specifications/entry-points.rst @@ -45,8 +45,14 @@ Conceptually, an entry point is defined by three required properties: point names should be unique. If different distributions provide the same name, the consumer decides how to handle such conflicts. The name may contain any characters except ``=``, but it cannot start or end with any whitespace - character, or start with ``[``. For new entry points, it is recommended to - use only letters, numbers, underscores, dots and dashes (regex ``[\w.-]+``). + character, or start with ``[``. + + For new entry points, it is recommended to use only letters, numbers, underscores, + dots and dashes (regex ``[\w.-]+``). + + Entry points whose **name** is intended to be the filename of a script on + disk (such as those in ``console_scripts`` and ``gui_scripts``) **MUST NOT** + contain path separators (slashes) or relative path components (``.`` or ``..``). - The **object reference** points to a Python object. It is either in the form ``importable.module``, or ``importable.module:object.attr``. Each of the parts