Skip to content

Commit

Permalink
[Writing plugins] updating doc(pytest-dev#10721)
Browse files Browse the repository at this point in the history
  • Loading branch information
itsmegarvi committed Feb 11, 2023
1 parent 5e1c3d2 commit 3f76671
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 7 deletions.
13 changes: 13 additions & 0 deletions changelog/10721.doc.rst
@@ -0,0 +1,13 @@
replace
```[project.entry_points]
pytest11 = [
"myproject = myproject.pluginmodule",
]```
with
```
[project.entry-points.pytest11]
myproject = "myproject.pluginmodule"```
also,remove
```[tool.setuptools]
packages = ["myproject"]```
9 changes: 2 additions & 7 deletions doc/en/how-to/writing_plugins.rst
Expand Up @@ -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
Expand Down

0 comments on commit 3f76671

Please sign in to comment.