Skip to content

Commit ac51602

Browse files
committed
chore: move client cache into a "private" module
1 parent 4686fbf commit ac51602

File tree

5 files changed

+8
-4
lines changed

5 files changed

+8
-4
lines changed

doc/index.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@ Modules
1717
aws_encryption_sdk.keyrings.base
1818
aws_encryption_sdk.keyrings.aws_kms
1919
aws_encryption_sdk.keyrings.aws_kms.client_suppliers
20-
aws_encryption_sdk.keyrings.aws_kms.client_cache
2120
aws_encryption_sdk.keyrings.multi
2221
aws_encryption_sdk.keyrings.raw
2322
aws_encryption_sdk.key_providers.base
@@ -45,5 +44,6 @@ Modules
4544
aws_encryption_sdk.internal.structures
4645
aws_encryption_sdk.internal.validators
4746
aws_encryption_sdk.internal.utils
47+
aws_encryption_sdk.keyrings.aws_kms._client_cache
4848

4949
.. include:: ../CHANGELOG.rst

src/aws_encryption_sdk/keyrings/aws_kms/client_cache.py renamed to src/aws_encryption_sdk/keyrings/aws_kms/_client_cache.py

+4
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,10 @@
44
55
.. versionadded:: 1.5.0
66
7+
.. warning::
8+
No guarantee is provided on the modules and APIs within this
9+
namespace staying consistent. Directly reference at your own risk.
10+
711
"""
812
import functools
913
import logging

src/aws_encryption_sdk/keyrings/aws_kms/client_suppliers.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
from aws_encryption_sdk.identifiers import USER_AGENT_SUFFIX
2020
from aws_encryption_sdk.internal.validators import value_is_not_a_string
2121

22-
from .client_cache import ClientCache
22+
from ._client_cache import ClientCache
2323

2424
try: # Python 3.5.0 and 3.5.1 have incompatible typing modules
2525
from typing import Callable, Union # noqa pylint: disable=unused-import

test/functional/keyrings/aws_kms/test_client_cache.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
from botocore.config import Config
66
from botocore.session import Session
77

8-
from aws_encryption_sdk.keyrings.aws_kms.client_cache import ClientCache
8+
from aws_encryption_sdk.keyrings.aws_kms._client_cache import ClientCache
99

1010
pytestmark = [pytest.mark.functional, pytest.mark.local]
1111

test/integration/keyrings/aws_kms/test_client_cache.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
from botocore.exceptions import BotoCoreError
77
from botocore.session import Session
88

9-
from aws_encryption_sdk.keyrings.aws_kms.client_cache import ClientCache
9+
from aws_encryption_sdk.keyrings.aws_kms._client_cache import ClientCache
1010

1111
pytestmark = [pytest.mark.integ]
1212

0 commit comments

Comments
 (0)