Skip to content

Commit 6021681

Browse files
authored
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
2 parents 0aeb843 + 37e410f commit 6021681

File tree

2 files changed

+3
-7
lines changed

2 files changed

+3
-7
lines changed

changelog/10721.doc.rst

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Fixed entry-points declaration in the documentation example using Hatch.

doc/en/how-to/writing_plugins.rst

+2-7
Original file line numberDiff line numberDiff line change
@@ -167,13 +167,8 @@ it in your ``pyproject.toml`` file.
167167
"Framework :: Pytest",
168168
]
169169

170-
[tool.setuptools]
171-
packages = ["myproject"]
172-
173-
[project.entry_points]
174-
pytest11 = [
175-
"myproject = myproject.pluginmodule",
176-
]
170+
[project.entry-points.pytest11]
171+
myproject = "myproject.pluginmodule"
177172

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

0 commit comments

Comments
 (0)