Skip to content

Commit

Permalink
Merge pull request #263 from ASFHyP3/s3-crc
Browse files Browse the repository at this point in the history
update s3 stubs for integrity checks introduced in boto3==1.36.0
  • Loading branch information
asjohnston-asf authored Feb 3, 2025
2 parents fb84876 + 3e1466a commit e6c9418
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion environment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 1 addition & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ classifiers=[
]
dependencies = [
"astropy",
"boto3>=1.36.0",
"fiona",
"gdal>=3.3",
"geopandas",
Expand Down
2 changes: 2 additions & 0 deletions tests/test_aws.py
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand All @@ -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',
Expand Down

0 comments on commit e6c9418

Please sign in to comment.