Fix entry-points declaration in the documentation example using Hatch

Closes #10721
This commit is contained in:
Garvit Shubham 2023-02-14 19:27:32 +05:30 committed by GitHub
parent e9f3a01392
commit aa72496d24
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