Skip to content

Commit 4e394e1

Browse files
authored
COPDS-2640: rename to ecmwf-datastores-client (#142)
* migrate to ecmwf-datastores-client * use main * use pypi * update tests
1 parent 27c2911 commit 4e394e1

3 files changed

Lines changed: 5 additions & 5 deletions

File tree

cdsapi/api.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -282,9 +282,9 @@ def __new__(cls, url=None, key=None, *args, **kwargs):
282282
if ":" in token:
283283
return super().__new__(cls)
284284

285-
import datapi.legacy_api_client
285+
from ecmwf.datastores.legacy_client import LegacyClient
286286

287-
return super().__new__(datapi.legacy_api_client.LegacyApiClient)
287+
return super().__new__(LegacyClient)
288288

289289
def __init__(
290290
self,

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ def read(fname):
4646
include_package_data=True,
4747
python_requires=">=3.8",
4848
install_requires=[
49-
"datapi",
49+
"ecmwf-datastores-client",
5050
"requests>=2.5.0",
5151
"tqdm",
5252
],

tests/test_api.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import os
22

3-
import datapi.legacy_api_client
3+
import ecmwf.datastores.legacy_client
44
import pytest
55

66
import cdsapi
@@ -33,7 +33,7 @@ def test_request():
3333
),
3434
(
3535
"",
36-
datapi.legacy_api_client.LegacyApiClient,
36+
ecmwf.datastores.legacy_client.LegacyClient,
3737
),
3838
],
3939
)

0 commit comments

Comments
 (0)