Skip to content

Fix import path#2941

Merged
Rowlando13 merged 1 commit into
pallets:stablefrom
nudopnu:fix-entry-points-docs
May 30, 2025
Merged

Fix import path#2941
Rowlando13 merged 1 commit into
pallets:stablefrom
nudopnu:fix-entry-points-docs

Conversation

@nudopnu
Copy link
Copy Markdown
Contributor

@nudopnu nudopnu commented May 23, 2025

Following the instruction of the docs for Packaging Entry Points does not work out of the box if you leave your __init__.py empty.

So either remind people to export their functions in their __init__.py or fix the import path specified in the pyproject.toml to hello.hello, resulting in:

    [project.scripts]
    hello = "hello.hello:cli"

@Rowlando13
Copy link
Copy Markdown
Collaborator

Good catch!

@Rowlando13 Rowlando13 merged commit f9c1b88 into pallets:stable May 30, 2025
2 checks passed
@github-actions github-actions Bot locked as resolved and limited conversation to collaborators Jun 14, 2025
@kdeldycke kdeldycke added this to the 8.2.2 milestone Aug 12, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants