Editable installs and optional deps

Did something change here? I swear I had optional deps working both ways - from pypi (pip install scons[dev]) and as an editable install (pip install -e .[dev] - which I do frequently to do quick local tests of unreleased stuff), but now only the former works, the latter fails with WARNING: scons 4.10.2 does not provide the extra 'dev'). Do I have something set up wrong?

You switched from using optional dependencies to using dependency groups but haven’t done a release since the switch.

Locally you’d use pip install -e . --group dev. You won’t be able to install the dependency group like this from PyPI. If that’s an intended use case then you need to switch back to optional dependencies.

1 Like

Thanks. --group is indeed the key, and now I recall that’s what I used before (I did try to search for the right syntax for this, but I guess my queries must have been poorly formed). No idea why the PyPI case worked.