From 48bf71d4143e3484114b990ab996ce791c5ed052 Mon Sep 17 00:00:00 2001 From: Stefaan Lippens Date: Tue, 9 Jul 2024 09:17:35 +0200 Subject: [PATCH] Issue #297 Update to "remote-process-definition" exstension ref https://github.com/Open-EO/openeo-api/issues/540 --- CHANGELOG.md | 5 +++++ openeo_driver/_version.py | 2 +- openeo_driver/backend.py | 4 ++-- openeo_driver/processgraph.py | 2 +- tests/test_views.py | 5 ++++- 5 files changed, 13 insertions(+), 5 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 21be51f4..f5e33bfd 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -21,6 +21,11 @@ and start a new "In Progress" section above it. ## In progress +## 0.107.1 + +- Update to "remote-process-definition" extension (originally called "remote-udp") + ([#297](https://github.com/Open-EO/openeo-python-driver/issues/297), [Open-EO/openeo-api#540](https://github.com/Open-EO/openeo-api/issues/540)) + ## 0.107.0 - `evaluate_process_from_url`: drop support for URL guessing from folder-like URL ([#297)](https://github.com/Open-EO/openeo-python-driver/issues/297)) diff --git a/openeo_driver/_version.py b/openeo_driver/_version.py index ad2924d3..f3df7397 100644 --- a/openeo_driver/_version.py +++ b/openeo_driver/_version.py @@ -1 +1 @@ -__version__ = "0.107.0a1" +__version__ = "0.107.1a1" diff --git a/openeo_driver/backend.py b/openeo_driver/backend.py index af0125e5..52d75235 100644 --- a/openeo_driver/backend.py +++ b/openeo_driver/backend.py @@ -699,8 +699,8 @@ class OpenEoBackendImplementation: DEFAULT_CONFORMANCE_CLASSES = [ # general openEO conformance class "https://api.openeo.org/1.2.0", - # Remote process definition extension - "https://api.openeo.org/extensions/remote-udp/0.1.0", + # Support the "remote process definition" extension (originally known as the "remote-udp" extension) + "https://api.openeo.org/extensions/remote-process-definition/0.1.0", ] def __init__( diff --git a/openeo_driver/processgraph.py b/openeo_driver/processgraph.py index 7e8c31c4..358f241d 100644 --- a/openeo_driver/processgraph.py +++ b/openeo_driver/processgraph.py @@ -24,7 +24,7 @@ class ProcessDefinition(NamedTuple): def get_process_definition_from_url(process_id: str, url: str) -> ProcessDefinition: """ - Get process definition (process graph, parameters, title, ...) from URL, + Get a remote process definition (process graph, parameters, title, ...) from URL, which should provide: - a JSON document with the process definition, compatible with the `GET /process_graphs/{process_graph_id}` openEO API endpoint. diff --git a/tests/test_views.py b/tests/test_views.py index ae3f0b10..5e39f023 100644 --- a/tests/test_views.py +++ b/tests/test_views.py @@ -287,7 +287,10 @@ def test_capabilities_processing_software(self, api100): def test_conformance(self, api100): res = api100.get("/conformance").assert_status_code(200).json assert res == { - "conformsTo": dirty_equals.Contains("https://api.openeo.org/1.2.0"), + "conformsTo": dirty_equals.Contains( + "https://api.openeo.org/1.2.0", + "https://api.openeo.org/extensions/remote-process-definition/0.1.0", + ), }