Skip to content

Commit c9d135f

Browse files
committed
Merge branch 'issue715-pystac1.12-compatibility'
2 parents 06cf1f2 + ef144d9 commit c9d135f

File tree

3 files changed

+5
-3
lines changed

3 files changed

+5
-3
lines changed

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
1919

2020
### Fixed
2121

22+
- fix compatibility with PySTAC 1.12 ([#715](https://github.com/Open-EO/openeo-python-client/issues/715))
23+
24+
2225
## [0.42.1] - 2025-06-06
2326

2427
### Changed

openeo/metadata.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -853,7 +853,7 @@ def bands_from_stac_collection(
853853
return self._bands_from_item_assets(collection.item_assets)
854854
elif _PYSTAC_1_9_EXTENSION_INTERFACE and collection.ext.has("item_assets") and collection.ext.item_assets:
855855
return self._bands_from_item_assets(collection.ext.item_assets)
856-
elif "item_assets" in collection.extra_fields:
856+
elif collection.extra_fields.get("item_assets"):
857857
# Workaround for lack of support for STAC 1.1 core item_assets with pystac < 1.12
858858
item_assets = {
859859
k: pystac.extensions.item_assets.AssetDefinition(properties=v, owner=collection)

setup.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -78,8 +78,7 @@
7878
"xarray>=0.12.3,<2025.01.2", # TODO #721 xarray non-nanosecond support
7979
"pandas>0.20.0",
8080
# TODO #578: pystac 1.5.0 is highest version available for lowest Python version we still support (3.7).
81-
# TODO #715 compatibility with pystac 1.12
82-
"pystac>=1.5.0,<1.12",
81+
"pystac>=1.5.0",
8382
"deprecated>=1.2.12",
8483
'oschmod>=0.3.12; sys_platform == "win32"',
8584
"importlib_resources; python_version<'3.9'",

0 commit comments

Comments
 (0)