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
4 changes: 2 additions & 2 deletions cdsapi/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -282,9 +282,9 @@ def __new__(cls, url=None, key=None, *args, **kwargs):
if ":" in token:
return super().__new__(cls)

import datapi.legacy_api_client
from ecmwf.datastores.legacy_client import LegacyClient

return super().__new__(datapi.legacy_api_client.LegacyApiClient)
return super().__new__(LegacyClient)

def __init__(
self,
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ def read(fname):
include_package_data=True,
python_requires=">=3.8",
install_requires=[
"datapi",
"ecmwf-datastores-client",
"requests>=2.5.0",
"tqdm",
],
Expand Down
4 changes: 2 additions & 2 deletions tests/test_api.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import os

import datapi.legacy_api_client
import ecmwf.datastores.legacy_client
import pytest

import cdsapi
Expand Down Expand Up @@ -33,7 +33,7 @@ def test_request():
),
(
"",
datapi.legacy_api_client.LegacyApiClient,
ecmwf.datastores.legacy_client.LegacyClient,
),
],
)
Expand Down