Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 8 additions & 2 deletions source/specifications/entry-points.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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.-]+``).
Comment on lines +50 to +51

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

NB: This is the verbatim language from above, just reflowed. Perhaps it makes sense to strengthen it, e.g.:

Suggested change
For new entry points, it is recommended to use only letters, numbers, underscores,
dots and dashes (regex ``[\w.-]+``).
Entry point names **SHOULD** use only letters, numbers, underscores,
dots and dashes (regex ``[\w.-]+``).

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

(This would match PyPI, which rejects names that don't match that pattern.)


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
Expand Down
Loading