Skip to content

Add [all] option for extras_requires #187

Description

@emdupre

Is your feature request related to a problem? Please describe.

Trying to set up a development environment for sphinx-book-theme, the recommended pip install command is not correctly installing the extras_requires packages. As a result, I get errors about uninstalled dependencies (like plotly) when running nox -s docs. In the end, I needed to do this:

pip install -e .[code_style,sphinx,testing]

But that seems overly verbose.

Describe the solution you'd like

We could update the documentation just to mention the necessary extra installs. But I'd quite like to install combine the necessary extras_requires into one [all] option, using something like:

# Enable a handle to install all extra dependencies at once
EXTRA_REQUIRES['all'] = list(set([
    v for deps in EXTRA_REQUIRES.values() for v in deps]))

You can see it implemented here.

Then it could be simply installed with pip install -e .[all].

Describe alternatives you've considered

At a minimum, I think a documentation update will be helpful !

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions