From 3e1466a818b6d72dc0d1b8fb356251aee1b151c5 Mon Sep 17 00:00:00 2001 From: Andrew Johnston Date: Fri, 31 Jan 2025 16:29:51 -0900 Subject: [PATCH] update s3 stubs for integrity checks introduced in boto3==1.36.0 --- environment.yml | 2 +- pyproject.toml | 1 + tests/test_aws.py | 2 ++ 3 files changed, 4 insertions(+), 1 deletion(-) diff --git a/environment.yml b/environment.yml index 2542546..334f6b2 100644 --- a/environment.yml +++ b/environment.yml @@ -18,7 +18,7 @@ dependencies: - pytest-cov # For running - astropy - - boto3<1.36.0 # FIXME: remove top pin when tests no longer fail + - boto3>=1.36.0 - fiona - gdal>=3.7 - geopandas diff --git a/pyproject.toml b/pyproject.toml index 909983b..f46b43a 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -22,6 +22,7 @@ classifiers=[ ] dependencies = [ "astropy", + "boto3>=1.36.0", "fiona", "gdal>=3.3", "geopandas", diff --git a/tests/test_aws.py b/tests/test_aws.py index ffe767d..0958b3b 100644 --- a/tests/test_aws.py +++ b/tests/test_aws.py @@ -29,6 +29,7 @@ def test_upload_file_to_s3(tmp_path, s3_stubber): 'Bucket': 'myBucket', 'Key': 'myFile.zip', 'ContentType': 'application/zip', + 'ChecksumAlgorithm': 'CRC32', } tag_params = { 'Bucket': 'myBucket', @@ -49,6 +50,7 @@ def test_upload_file_to_s3_with_prefix(tmp_path, s3_stubber): 'Bucket': 'myBucket', 'Key': 'myPrefix/myFile.txt', 'ContentType': 'text/plain', + 'ChecksumAlgorithm': 'CRC32', } tag_params = { 'Bucket': 'myBucket',