Skip to content

Commit

Permalink
Merge pull request #10734 from pytest-dev/backport-10725-to-7.2.x
Browse files Browse the repository at this point in the history
[7.2.x] Fix entry-points declaration in the documentation example using Hatch
  • Loading branch information
nicoddemus authored Feb 14, 2023
2 parents 0aeb843 + 37e410f commit 6021681
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 7 deletions.
1 change: 1 addition & 0 deletions changelog/10721.doc.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Fixed entry-points declaration in the documentation example using Hatch.
9 changes: 2 additions & 7 deletions doc/en/how-to/writing_plugins.rst
Original file line number Diff line number Diff line change
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 6021681

Please sign in to comment.