Skip to content

Commit 80bbc8a

Browse files
committed
Re-expose properties classes in keyring.util.properties. Fixes #593.
1 parent fd0f76a commit 80bbc8a

File tree

3 files changed

+25
-0
lines changed

3 files changed

+25
-0
lines changed

CHANGES.rst

+6
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
v23.9.1
2+
-------
3+
4+
* #593: Restore ``keyring.util.properties`` with deprecation warning for
5+
backward compatibility.
6+
17
v23.9.0
28
-------
39

keyring/util/properties.py

+18
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
"""
2+
Backward compat shim
3+
"""
4+
5+
import warnings
6+
7+
from .._compat import properties
8+
9+
10+
NonDataProperty = properties.NonDataProperty
11+
ClassProperty = properties.classproperty
12+
13+
14+
warnings.warn(
15+
"Properties from keyring.util are no longer supported. "
16+
"Use jaraco.classes.properties instead.",
17+
DeprecationWarning,
18+
)

pytest.ini

+1
Original file line numberDiff line numberDiff line change
@@ -17,3 +17,4 @@ filterwarnings=
1717
ignore:Flake8Item is an Item subclass and should not be a collector:pytest.PytestWarning
1818

1919
ignore:OS_X module is deprecated
20+
ignore:Properties from keyring.util

0 commit comments

Comments
 (0)