📝 Make "setuptools entrypoint" term generic

This feature grew out of `setuptools` but the modern interface for
extracting this information from the distribution package metadata
is `importlib.metadata`. So the patch attempts to reflect this in
the documentation messaging.

Refs:
* https://docs.python.org/3/library/importlib.metadata.html#entry-points
* https://packaging.python.org/en/latest/guides/creating-and-discovering-plugins/#using-package-metadata
* https://packaging.python.org/en/latest/specifications/entry-points/#entry-points
This commit is contained in:
Sviatoslav Sydorenko
2024-06-17 17:51:30 +02:00
parent 20dd1d6738
commit 39b548e6ea
10 changed files with 26 additions and 21 deletions

View File

@@ -223,7 +223,7 @@ class TestImportHookInstallation:
) -> None:
monkeypatch.delenv("PYTEST_DISABLE_PLUGIN_AUTOLOAD", raising=False)
# Make sure the hook is installed early enough so that plugins
# installed via setuptools are rewritten.
# installed via distribution package are rewritten.
pytester.mkdir("hampkg")
contents = {
"hampkg/__init__.py": """\