Skip to content

Don't use pkg_resources for --version #1488

@davidism

Description

@davidism

The --version option uses pkg_resources to get the version information from the distribution metadata. Use importlib_metadata instead, but don't make it a dependency. When creating the decorator, issue a warning if a version is not given and importlib_metadata is not installed.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions