Closed wch closed 11 months ago
One unfortunate thing about this change is that it apparently breaks pyright support when this py-htmltools is installed as an editable package with pip install -e
.
https://github.com/microsoft/pyright/issues/3846 https://github.com/microsoft/pyright/issues/6209
It looks like the workaround is to install with editable_mode
:
pip install -e . --config-settings editable_mode=strict
# or
pip install -e . --config-settings editable_mode=compat
This PR switches htmltools from setup.cfg/setup.py to the newer pyproject.toml config file.