Skip to content

Commit d405c72

Browse files
committed
Set entrypoint group to dash-hooks
1 parent 89d6a93 commit d405c72

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

dash/_hooks.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -169,10 +169,12 @@ def get_hooks(cls, hook: str):
169169
@classmethod
170170
def register_setuptools(cls):
171171
if cls._registered:
172+
# Only have to register once.
172173
return
173174

174175
for dist in _importlib_metadata.distributions():
175176
for entry in dist.entry_points:
176-
if entry.group != "dash":
177+
# Look for setup.py entry points named `dash-hooks`
178+
if entry.group != "dash-hooks":
177179
continue
178180
entry.load()

0 commit comments

Comments
 (0)