Skip to content

Commit c505265

Browse files
committed
Remove pre-0.8 support, decouple Collection/Catalog migration
1 parent bb8d9a1 commit c505265

File tree

2 files changed

+1
-4
lines changed

2 files changed

+1
-4
lines changed

pystac/serialization/identify.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ class STACVersionRange:
8787

8888
def __init__(
8989
self,
90-
min_version: Union[str, STACVersionID] = "0.4.0",
90+
min_version: Union[str, STACVersionID] = "0.8.0",
9191
max_version: Optional[Union[str, STACVersionID]] = None,
9292
):
9393
if isinstance(min_version, str):

pystac/serialization/migrate.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,6 @@
1717
def _migrate_catalog(
1818
d: Dict[str, Any], version: STACVersionID, info: STACJSONDescription
1919
) -> None:
20-
if version < "0.8":
21-
d["stac_extensions"] = list(info.extensions)
2220
d["type"] = STACType.CATALOG
2321

2422

@@ -37,7 +35,6 @@ def _migrate_collection_summaries(
3735
def _migrate_collection(
3836
d: Dict[str, Any], version: STACVersionID, info: STACJSONDescription
3937
) -> None:
40-
_migrate_catalog(d, version, info)
4138
d["type"] = STACType.COLLECTION
4239
_migrate_collection_summaries(d, version, info)
4340

0 commit comments

Comments
 (0)