From e24ceafef8900568c9ace778032b130e76b66f63 Mon Sep 17 00:00:00 2001 From: "Jason R. Coombs" Date: Fri, 26 Feb 2021 10:37:50 -0500 Subject: [PATCH] Restore Keyring on OS_X module along with a DeprecationWarning. Fixes #487. --- CHANGES.rst | 7 +++++++ keyring/backends/OS_X.py | 13 +++++++++++-- 2 files changed, 18 insertions(+), 2 deletions(-) diff --git a/CHANGES.rst b/CHANGES.rst index b6cf56a2..e069520e 100644 --- a/CHANGES.rst +++ b/CHANGES.rst @@ -1,3 +1,10 @@ +v22.2.0 +------- + +* #487: Restored ``Keyring`` in ``OS_X`` module with + deprecation warning for users specifying the backend by + name. + v22.1.0 ------- diff --git a/keyring/backends/OS_X.py b/keyring/backends/OS_X.py index ffdc8bad..c226564c 100644 --- a/keyring/backends/OS_X.py +++ b/keyring/backends/OS_X.py @@ -1,4 +1,13 @@ """ -For improved compatibility when older keyring metadata points -to this module, supply it. See jaraco/keyring#486. +Backward-compatibility shim for users referencing the module +by name. Ref #487. """ + +import warnings + +from .macOS import Keyring + +__all__ = ['Keyring'] + + +warnings.warn("OS_X module is deprecated.", DeprecationWarning)