[Writing plugins] updating doc(#10721)
This commit is contained in:
parent
5e1c3d2477
commit
3f766715a4
|
@ -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"]```
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue