devcontainers-contrib / features

🐳 Extra add-in features for Devcontainers and GitHub Codespaces
MIT License
241 stars 126 forks source link

[Feature Request]: Allow package extras to be installed for the black feature #504

Open jimhortle opened 1 year ago

jimhortle commented 1 year ago

Requested Feature

Currently, there is no option to install extras for the black feature (and possibly others). For example, if I want to format Jupyter notebooks, I can run pip install black[jupyter] to have the Jupyter extra.

I would like the option to do the following in my devcontainer.json file:

    // Features to add to the dev container. More info: https://containers.dev/features.
    "features": {
        "ghcr.io/devcontainers-contrib/features/black:2": {
           "extras": {"jupyter"}
        }
    }

It would be nice to have this idea of extras extended to other pip-installable packages that support them.

NickDarvey commented 8 months ago

What about a general pip-package feature like https://github.com/devcontainers-contrib/features/blob/main/src/pipx-package/README.md?