[7.2.x] Fix entry-points declaration in the documentation example using Hatch

This commit is contained in:
Garvit Shubham 2023-02-14 19:27:32 +05:30 committed by pytest bot
parent 0aeb843e25
commit 37e410fce8
2 changed files with 3 additions and 7 deletions

1
changelog/10721.doc.rst Normal file
View File

@ -0,0 +1 @@
Fixed entry-points declaration in the documentation example using Hatch.

View File

@ -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