[Writing plugins] updating doc(#10721)

This commit is contained in:
Garvit Shubham 2023-02-11 23:05:12 +05:30
parent 5e1c3d2477
commit 3f766715a4
2 changed files with 15 additions and 7 deletions

13
changelog/10721.doc.rst Normal file
View File

@ -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"]```

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