Skip to content

Commit

Permalink
Bump requirement on importlib_metadata to 4.11.4. Fixes #526.
Browse files Browse the repository at this point in the history
  • Loading branch information
jaraco committed Nov 4, 2022
1 parent 590d804 commit 19374c6
Show file tree
Hide file tree
Showing 6 changed files with 11 additions and 5 deletions.
6 changes: 6 additions & 0 deletions CHANGES.rst
@@ -1,3 +1,9 @@
v23.10.0
--------

* #526: Bump requirement on ``importlib_metadata`` to pull in fix for
improperly-normalized names on egg-info.

v23.9.3
-------

Expand Down
2 changes: 1 addition & 1 deletion hook-keyring.backend.py
Expand Up @@ -2,6 +2,6 @@
Hook used by pyinstaller to expose hidden imports.
"""

from keyring.py310compat import metadata
from keyring.py312compat import metadata

hiddenimports = [ep.value for ep in metadata.entry_points(group='keyring.backends')]
2 changes: 1 addition & 1 deletion keyring/backend.py
Expand Up @@ -10,7 +10,7 @@

from typing import Optional

from .py310compat import metadata
from .py312compat import metadata
from . import credentials, errors, util
from ._compat import properties

Expand Down
2 changes: 1 addition & 1 deletion keyring/py310compat.py → keyring/py312compat.py
Expand Up @@ -4,7 +4,7 @@
__all__ = ['metadata']


if sys.version_info > (3, 10):
if sys.version_info > (3, 12):
import importlib.metadata as metadata
else:
import importlib_metadata as metadata # type: ignore
2 changes: 1 addition & 1 deletion setup.cfg
Expand Up @@ -23,7 +23,7 @@ install_requires =
pywin32-ctypes!=0.1.0,!=0.1.1; sys_platform=="win32"
SecretStorage>=3.2; sys_platform=="linux"
jeepney>=0.4.2; sys_platform=="linux"
importlib_metadata >= 3.6; python_version < "3.10"
importlib_metadata >= 4.11.4; python_version < "3.12"
jaraco.classes

[options.packages.find]
Expand Down
2 changes: 1 addition & 1 deletion tests/test_packaging.py
@@ -1,5 +1,5 @@
from keyring import backend
from keyring.py310compat import metadata
from keyring.py312compat import metadata


def test_entry_point():
Expand Down

0 comments on commit 19374c6

Please sign in to comment.