Merge pull request #10734 from pytest-dev/backport-10725-to-7.2.x

[7.2.x] Fix entry-points declaration in the documentation example using Hatch
This commit is contained in:
Bruno Oliveira 2023-02-14 12:10:39 -03:00 committed by GitHub
commit 60216810d9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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