File tree Expand file tree Collapse file tree 3 files changed +5
-3
lines changed Expand file tree Collapse file tree 3 files changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -19,6 +19,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
19
19
20
20
### Fixed
21
21
22
+ - fix compatibility with PySTAC 1.12 ([ #715 ] ( https://github.com/Open-EO/openeo-python-client/issues/715 ) )
23
+
24
+
22
25
## [ 0.42.1] - 2025-06-06
23
26
24
27
### Changed
Original file line number Diff line number Diff line change @@ -853,7 +853,7 @@ def bands_from_stac_collection(
853
853
return self ._bands_from_item_assets (collection .item_assets )
854
854
elif _PYSTAC_1_9_EXTENSION_INTERFACE and collection .ext .has ("item_assets" ) and collection .ext .item_assets :
855
855
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" ) :
857
857
# Workaround for lack of support for STAC 1.1 core item_assets with pystac < 1.12
858
858
item_assets = {
859
859
k : pystac .extensions .item_assets .AssetDefinition (properties = v , owner = collection )
Original file line number Diff line number Diff line change 78
78
"xarray>=0.12.3,<2025.01.2" , # TODO #721 xarray non-nanosecond support
79
79
"pandas>0.20.0" ,
80
80
# 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" ,
83
82
"deprecated>=1.2.12" ,
84
83
'oschmod>=0.3.12; sys_platform == "win32"' ,
85
84
"importlib_resources; python_version<'3.9'" ,
You can’t perform that action at this time.
0 commit comments