Skip to content

Commit

Permalink
Fix entry-points declaration in the documentation example using Hatch
Browse files Browse the repository at this point in the history
Closes #10721
  • Loading branch information
itsmegarvi authored Feb 14, 2023
1 parent e9f3a01 commit aa72496
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 7 deletions.
1 change: 1 addition & 0 deletions changelog/10721.doc.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Fixed entry-points declaration in the documentation example using Hatch.
9 changes: 2 additions & 7 deletions doc/en/how-to/writing_plugins.rst
Original file line number Diff line number Diff line change
Expand Up @@ -167,13 +167,8 @@ it in your ``pyproject.toml`` file.
"Framework :: Pytest",
]

[tool.setuptools]
packages = ["myproject"]

[project.entry_points]
pytest11 = [
"myproject = myproject.pluginmodule",
]
[project.entry-points.pytest11]
myproject = "myproject.pluginmodule"

If a package is installed this way, ``pytest`` will load
``myproject.pluginmodule`` as a plugin which can define
Expand Down

0 comments on commit aa72496

Please sign in to comment.