From c515d79b7dea043dccddfb52181aa90cc168b0ce Mon Sep 17 00:00:00 2001 From: Baudouin Raoult Date: Mon, 28 Feb 2022 23:59:48 +0000 Subject: [PATCH] Use multiurl 0.0.14 --- ecmwf/opendata/__init__.py | 2 +- ecmwf/opendata/client.py | 4 ++++ setup.py | 2 +- 3 files changed, 6 insertions(+), 2 deletions(-) diff --git a/ecmwf/opendata/__init__.py b/ecmwf/opendata/__init__.py index a0ff023..9f47fe1 100644 --- a/ecmwf/opendata/__init__.py +++ b/ecmwf/opendata/__init__.py @@ -10,6 +10,6 @@ from .client import Client -__version__ = "0.1.0" +__version__ = "0.1.1" __all__ = ["Client"] diff --git a/ecmwf/opendata/client.py b/ecmwf/opendata/client.py index 412ff07..0c311ec 100644 --- a/ecmwf/opendata/client.py +++ b/ecmwf/opendata/client.py @@ -108,6 +108,7 @@ def __init__( beta=True, preserve_request_order=False, infer_stream_keyword=True, + debug=False, ): self._url = None self.source = source @@ -115,6 +116,9 @@ def __init__( self.preserve_request_order = preserve_request_order self.infer_stream_keyword = infer_stream_keyword + if debug: + logging.basicConfig(level=logging.DEBUG) + @property def url(self): diff --git a/setup.py b/setup.py index 12545af..e999136 100644 --- a/setup.py +++ b/setup.py @@ -41,7 +41,7 @@ def read(fname): url="https://github.com/ecmwf/ecmwf-opendata", packages=setuptools.find_namespace_packages(include=["ecmwf.*"]), include_package_data=True, - install_requires=["multiurl>=0.0.13"], + install_requires=["multiurl>=0.0.14"], zip_safe=True, keywords="tool", classifiers=[