From 88caae9f69a1b5414a09fdf8d421dc6c1c1139f0 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Fri, 9 Aug 2024 14:42:53 -0700 Subject: [PATCH] Update moto[s3] requirement from <5,>=4.0.1 to >=4.0.1,<6 (#3516) Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: bigning --- setup.py | 2 +- tests/utils/object_store/object_store_settings.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/setup.py b/setup.py index 9571b5e118..11c82b5a37 100644 --- a/setup.py +++ b/setup.py @@ -138,7 +138,7 @@ def package_files(prefix: str, directory: str, extension: str): 'pandoc==2.3', 'pypandoc==1.13', 'GitPython==3.1.43', - 'moto[s3]>=4.0.1,<5', + 'moto[s3]>=5.0.1,<6', 'mock-ssh-server==0.9.1', 'cryptography==42.0.8', 'pytest-httpserver>=1.0.4,<1.1', diff --git a/tests/utils/object_store/object_store_settings.py b/tests/utils/object_store/object_store_settings.py index f11cf853b7..ac385603ba 100644 --- a/tests/utils/object_store/object_store_settings.py +++ b/tests/utils/object_store/object_store_settings.py @@ -89,7 +89,7 @@ def get_object_store_ctx( monkeypatch.setenv('AWS_SECURITY_TOKEN', 'testing') monkeypatch.setenv('AWS_SESSION_TOKEN', 'testing') monkeypatch.setenv('AWS_DEFAULT_REGION', 'us-east-1') - with moto.mock_s3(): + with moto.mock_aws(): # create the dummy bucket s3 = boto3.client('s3') s3.create_bucket(Bucket=object_store_kwargs['bucket'])