posit-dev / py-htmltools

Tools for HTML generation and output
MIT License
19 stars 4 forks source link

Change from setup.cfg to pyproject.toml #73

Closed wch closed 11 months ago

wch commented 11 months ago

This PR switches htmltools from setup.cfg/setup.py to the newer pyproject.toml config file.

wch commented 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