Skip to content

Keyring 22.4.0+ fails to be imported in Python 3.8+ #499

@ccordoba12

Description

@ccordoba12

Describe the bug

Keyring fails to be imported in Python 3.8+ due to this import:

import importlib_metadata as metadata

Since that functionality is part of the standard library in Python 3.8+, it needs to written as

import importlib.metadata as metadata

for those versions (I understand the import is correct for older ones).

To Reproduce
Steps to reproduce the behavior:

  1. Install Keyring 22.4.0 or later in Python 3.8+
  2. Open a Python interpreter
  3. import keyring

Expected behavior
Keyring shouldn't fail when imported.

Environment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions