From 834af82bdcd4e344701ec4e249a3535a3507db26 Mon Sep 17 00:00:00 2001 From: malmans2 Date: Fri, 25 Oct 2024 09:30:21 +0200 Subject: [PATCH] update environments --- ci/environment-ci.yml | 2 +- environment.yml | 4 +--- pyproject.toml | 3 +++ 3 files changed, 5 insertions(+), 4 deletions(-) diff --git a/ci/environment-ci.yml b/ci/environment-ci.yml index 08f6f5b..a32bd43 100644 --- a/ci/environment-ci.yml +++ b/ci/environment-ci.yml @@ -14,7 +14,7 @@ dependencies: - sphinx - sphinx-autoapi # DO NOT EDIT ABOVE THIS LINE, ADD DEPENDENCIES BELOW +- cdsapi - types-requests - pip: - - cdsapi >= 0.7.0 - responses diff --git a/environment.yml b/environment.yml index 10c6f42..067ceca 100644 --- a/environment.yml +++ b/environment.yml @@ -9,8 +9,6 @@ channels: # DO NOT EDIT ABOVE THIS LINE, ADD DEPENDENCIES BELOW AS SHOWN IN THE EXAMPLE dependencies: - attrs -- pip +- multiurl - requests - typing-extensions -- pip: - - multiurl diff --git a/pyproject.toml b/pyproject.toml index eceda65..519adad 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -31,6 +31,9 @@ name = "cads-api-client" readme = "README.md" requires-python = ">=3.8" +[project.optional-dependencies] +legacy = ["cdsapi"] + [tool.coverage.run] branch = true