Skip to content

Use version.py instead of pkg_resource #1622

@joinsion

Description

@joinsion

I met the same issue on the google-api-python-client about the pkg_resources exception (
googleapis/python-api-core#27)

_LIBRARY_VERSION = pkg_resources.get_distribution("google-api-python-client").version

pkg_resources.DistributionNotFound: The 'google-api-python-client' distribution was not found and is required by the application

I found the google-auth source and python-api-core has changed. Could it be changed this way accordingly?
googleapis/google-auth-library-python@ff6b52c

Metadata

Metadata

Assignees

No one assigned

    Labels

    type: feature request‘Nice-to-have’ improvement, new feature or different behavior or design.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions