Description
Initially reported in this community post https://community.plotly.com/t/plugin-cannot-be-installed-with-pip/91307
Describe the bug
follow the plugin guide in dash docs and set entry_points={"dash-hooks": ["callback_error_plugin = callback_error_plugin"]},
in the setup.py
file so that the hooks gets added to dash apps automatically.
Trying to pip install the resulting package whl results in ValueError: (‘Invalid group name’, ‘dash-hooks’)
because hyphens aren't allowed from https://packaging.python.org/en/latest/specifications/entry-points/
Group names must be one or more groups of letters, numbers and underscores, separated by dots (regex ^\w+(.\w+)*$).
replacing the hyphen in this check in dash
Lines 252 to 253 in 700b706