Skip to content

Commit

Permalink
[7.2.x] Fix entry-points declaration in the documentation example usi…
Browse files Browse the repository at this point in the history
…ng Hatch
  • Loading branch information
itsmegarvi authored and pytestbot committed Feb 14, 2023
1 parent 0aeb843 commit 37e410f
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 37e410f

Please sign in to comment.