Skip to content

0.19: erbsland-sphinx-ansi is an optional dependency #78

@dvzrv

Description

@dvzrv

Hi! 👋

When trying to package 0.19 for Arch Linux, I noticed that erbsland-sphinx-ansi is not only a test requirement, but actually an optional runtime dependency:

try:
from erbsland.sphinx.ansi.parser import ANSILiteralBlock
except ImportError: # pragma: no cover
logger.warning(
"programoutput_use_ansi is enabled, but erbsland ANSI support is "
"not available. Stripping ANSI escape codes instead. Install "
"'erbsland-sphinx-ansi' and enable 'erbsland.sphinx.ansi' to "
"render ANSI output."
)
stripped_output = _strip_ansi_formatting(output)
return nodes.literal_block(stripped_output, stripped_output)

From what I can tell, it is not declared as such. However, that would be great to do! :)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    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