diff --git a/changelog/10721.doc.rst b/changelog/10721.doc.rst new file mode 100644 index 00000000000..8b8fecf1546 --- /dev/null +++ b/changelog/10721.doc.rst @@ -0,0 +1 @@ +Document PEP 621 ``pyproject.toml`` entry point format for ``pytest11`` plugins in plugin writing guide. diff --git a/doc/en/how-to/writing_plugins.rst b/doc/en/how-to/writing_plugins.rst index 17823098d0c..55df2e270f5 100644 --- a/doc/en/how-to/writing_plugins.rst +++ b/doc/en/how-to/writing_plugins.rst @@ -215,7 +215,14 @@ as plugins. As an example consider the following package:: pytest_foo/plugin.py pytest_foo/helper.py -With the following typical ``setup.py`` extract: +With the following typical ``pyproject.toml`` extract: + +.. code-block:: toml + + [project.entry-points.pytest11] + foo = "pytest_foo.plugin" + +Or with a legacy ``setup.py`` extract: .. code-block:: python