Skip to content

Commit

Permalink
Issue #297 Update to "remote-process-definition" exstension
Browse files Browse the repository at this point in the history
  • Loading branch information
soxofaan committed Jul 9, 2024
1 parent 06d86a9 commit 48bf71d
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 5 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand Down
2 changes: 1 addition & 1 deletion openeo_driver/_version.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = "0.107.0a1"
__version__ = "0.107.1a1"
4 changes: 2 additions & 2 deletions openeo_driver/backend.py
Original file line number Diff line number Diff line change
Expand Up @@ -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__(
Expand Down
2 changes: 1 addition & 1 deletion openeo_driver/processgraph.py
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
5 changes: 4 additions & 1 deletion tests/test_views.py
Original file line number Diff line number Diff line change
Expand Up @@ -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",
),
}


Expand Down

0 comments on commit 48bf71d

Please sign in to comment.