Skip to content

Build backend rejects underscores in entrypoint names #9812

Closed
@blueraft

Description

@blueraft

MRE:

[project]
name = "entry-issue"
version = "0.1.0"
description = "Add your description here"
readme = "README.md"
requires-python = ">=3.13"
dependencies = []

[build-system]
requires = ["uv>=0.5.7,<0.6"]
build-backend = "uv"

[project.entry-points.'myapp.plugins']
plugin_a = "myapp_plugin_a"
❯ uv build
....
  ├─▶ Invalid pyproject.toml
  ╰─▶ Entrypoint names must consist of letters, numbers, dots and dashes; invalid name: `plugin_a`

Based on the spec, you're allowed to have underscores in the name.

For new entry points, it is recommended to use only letters, numbers, underscores, dots and dashes (regex [\w.-]+).

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions