From 37e410fce841635c6d3b4ba6b37c6a8df360b40a Mon Sep 17 00:00:00 2001 From: Garvit Shubham <70941313+itsmegarvi@users.noreply.github.com> Date: Tue, 14 Feb 2023 19:27:32 +0530 Subject: [PATCH] [7.2.x] Fix entry-points declaration in the documentation example using Hatch --- changelog/10721.doc.rst | 1 + doc/en/how-to/writing_plugins.rst | 9 ++------- 2 files changed, 3 insertions(+), 7 deletions(-) create mode 100644 changelog/10721.doc.rst diff --git a/changelog/10721.doc.rst b/changelog/10721.doc.rst new file mode 100644 index 00000000000..33ba405124c --- /dev/null +++ b/changelog/10721.doc.rst @@ -0,0 +1 @@ +Fixed entry-points declaration in the documentation example using Hatch. diff --git a/doc/en/how-to/writing_plugins.rst b/doc/en/how-to/writing_plugins.rst index f15b69c2317..4eee1b2e120 100644 --- a/doc/en/how-to/writing_plugins.rst +++ b/doc/en/how-to/writing_plugins.rst @@ -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