Skip to content

DoctestPlus and optional dependencies #197

Closed
@flying-sheep

Description

@flying-sheep

First, similar to #59, there’s another doctest plugin that has its own set of features.

The only current feature of it I need is doctest_subpackage_requires. It’ll prevent descending into these subdirectories if (and only if) the listed dependencies are not installed.

This is a much better solution than just skipping stuff outright.

E.g.:

doctest_subpackage_requires = [
  "src/fast_array_utils/conv/scipy/* = scipy",
  "src/fast_array_utils/conv/scipy/_to_dense.py = numba",
  "src/fast_array_utils/stats/* = numba",
  "src/fast_array_utils/_plugins/dask.py = dask",
  "src/fast_array_utils/_plugins/numba_sparse.py = numba;scipy",
]

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew features w.r.t. the original refguide-check

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions