Skip to content

Add optional dependencies to the universal_hub #3923

Description

@aignas

Whilst thinking about #3594, I realized that it would be good to add dependencies if they are present, but not fail if they are not present.

API that would be good:

    deps = [
        "@pypi//must",
    ] + select({
        "@pypi//optional:is_present": ["@pypi//optional"],
        "//conditions:default": [],
    }),

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions