Skip to content

Dependency cleanup [tabulate] #836

@rumpelsepp

Description

@rumpelsepp

tabulate is only used at this location:

from tabulate import tabulate

for this loop:

for line in tabulate(
[[d] for d in bit_descriptions], headers=["bit descriptions"]
).splitlines():
logger.result(line)

and this one:

for line in tabulate(dtcs, headers=header, tablefmt="fancy_grid").splitlines():
logger.result(line)

Can we simplify this and remove the dependency from the open-source code? Do we really need a full-blown table formatting library for this?

Dropping tabulate would simplify packaging for Linux distributions. With Python 3.14 on Linux, we could reduce the runtime dependencies to five. For comparison, gallia was published with ten runtime dependencies in 2022.

/cc @fkglr

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