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'])