-
Notifications
You must be signed in to change notification settings - Fork 60
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
COPDS-1531: beta api #95
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Overall the pull requests can be approved after changing or removing the url and token.
If the integration test is needed it should use a GitHub secret
tests/test_api.py
Outdated
), | ||
( | ||
"http://cds2-test.copernicus-climate.eu/api", | ||
"00000000-0000-4000-a000-000000000000", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe this test should use secrets
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fine by me, but we (B-Open) do not have the permissions to add GH secrets.
Also, GH secrets would not work when pytest is executed locally.
Done. The new test checks whether the class is properly instantiated, so no secret is needed. |
Going from old api to new api we need the possibility to create integration tests. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I will check tomorrow.
Hi @gbiavati, I can not reproduce the installation issue you reported last night.
Here is a minimal snippet to install the latest versions and download a dummy file. conda create -n test-cdsapi-beta -c conda-forge pip --yes
conda activate test-cdsapi-beta
pip install git+https://github.com/bopen/cdsapi.git@COPDS-1531-beta-api
export CDSAPI_RC=$HOME/.cadsapirc
python -c "import cdsapi; client = cdsapi.Client(sleep_max=120, retry_max=500, timeout=60); client.retrieve('test-adaptor-dummy', {}, 'test.grib')" |
Hi @malmans2 , Line 33 in cf606f9
it is the same of the current api, so it would not override/update normally. This package is meant to facilitate the migration to the new system, so its installation and usage should be tested more as an upgrade of existing environment, not as a fresh install |
Hi @gbiavati, As
We added all dependencies in both |
If you need to install this PR in an existing environment, this command worked fine for me:
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The API should be released
No description provided.