Skip to content

Commit f7eb528

Browse files
committed
Tighten entry point naming requirements
Signed-off-by: William Woodruff <william@yossarian.net>
1 parent 2589be9 commit f7eb528

1 file changed

Lines changed: 8 additions & 2 deletions

File tree

‎source/specifications/entry-points.rst‎

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,8 +45,14 @@ Conceptually, an entry point is defined by three required properties:
4545
point names should be unique. If different distributions provide the same
4646
name, the consumer decides how to handle such conflicts. The name may contain
4747
any characters except ``=``, but it cannot start or end with any whitespace
48-
character, or start with ``[``. For new entry points, it is recommended to
49-
use only letters, numbers, underscores, dots and dashes (regex ``[\w.-]+``).
48+
character, or start with ``[``.
49+
50+
For new entry points, it is recommended to use only letters, numbers, underscores,
51+
dots and dashes (regex ``[\w.-]+``).
52+
53+
Entry points whose **name** is intended to be the filename of a script on
54+
disk (such as those in ``console_scripts`` and ``gui_scripts``) **MUST NOT**
55+
contain path separators (slashes) or relative path components (``.`` or ``..``).
5056

5157
- The **object reference** points to a Python object. It is either in the form
5258
``importable.module``, or ``importable.module:object.attr``. Each of the parts

0 commit comments

Comments
 (0)