Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion environment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ channels:
- defaults
dependencies:
- python >= 3.9
- copernicusmarine >2.1
- copernicusmarine >= 2.2.2
- zarr >= 3.0
- boto3 >=1.37.4
- click >=8.1.8
7 changes: 6 additions & 1 deletion mds/core/s3_singleton.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,12 @@ def __new__(cls, *args, **kwargs):
def __init__(self, s3_endpoint=S3_ENDPOINT):
s3_endpoint = s3_endpoint
self.__s3 = boto3.client(
"s3", endpoint_url=s3_endpoint, config=Config(signature_version=UNSIGNED)
"s3",
endpoint_url=s3_endpoint,
config=Config(
signature_version=UNSIGNED,
retries={"max_attempts": 10, "mode": "adaptive"},
),
)
self.__paginator = self.__s3.get_paginator("list_objects_v2")

Expand Down
5 changes: 3 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "mds-toolbox"
version = "2.0.1"
version = "2.0.2"
description = "A custom CMCC library to list and download data from the Marine Data Store"
authors = ["Antonio Mariani <[email protected]>"]
readme = ["README.md"]
Expand All @@ -13,8 +13,9 @@ keywords = ["copernicus", "copernicusmarine", "mds", "marine data store"]
[tool.poetry.dependencies]
python = ">=3.9,<3.13"
boto3 = "^1.37.4"
copernicusmarine = ">=2.1.1"
copernicusmarine = ">=2.2.2"
click = "^8.1.8"
zarr = ">= 3.0"

[build-system]
requires = ["poetry-core"]
Expand Down
Loading