[Git][debian-gis-team/pystac][upstream] New upstream version 1.10.1

Antonio Valentino (@antonio.valentino) gitlab at salsa.debian.org
Sat May 4 06:26:02 BST 2024



Antonio Valentino pushed to branch upstream at Debian GIS Project / pystac


Commits:
60ec2106 by Antonio Valentino at 2024-05-04T05:08:30+00:00
New upstream version 1.10.1
- - - - -


4 changed files:

- CHANGELOG.md
- pystac/item.py
- pystac/version.py
- tests/test_item.py


Changes:

=====================================
CHANGELOG.md
=====================================
@@ -2,6 +2,12 @@
 
 ## [Unreleased]
 
+## [v1.10.1] - 2024-05-03
+
+### Fixed
+
+- Don't transform hrefs in `Item.__getstate__` ([#1337](https://github.com/stac-utils/pystac/pull/1337))
+
 ## [v1.10.0] - 2024-03-28
 
 ### Added
@@ -14,7 +20,7 @@
 
 - Update css for HTML display ([#1311](https://github.com/stac-utils/pystac/pull/1311))
 - Made item pickles smaller by changing how nested links are stored([#1285](https://github.com/stac-utils/pystac/pull/1285))
-- Updated documentation code examples that use AWS S3 for file storage ([#1308](https://github.com/stac-utils/pystac/pull/1308)
+- Updated documentation code examples that use AWS S3 for file storage ([#1308](https://github.com/stac-utils/pystac/pull/1308))
 
 ### Fixed
 
@@ -24,7 +30,7 @@
 
 ### Added
 
-- Simpler extension interface ([#1243](https://github.com/stac-utils/pystac/pull/1243)])
+- Simpler extension interface ([#1243](https://github.com/stac-utils/pystac/pull/1243))
 - More permissive schema_uri matching to allow future versions of extension schemas ([#1231](https://github.com/stac-utils/pystac/pull/1231))
 - Better error messages from jsonschema validation ([#1233](https://github.com/stac-utils/pystac/pull/1233))
 - `validate_all_dict` replaces the previous implementation of `validate_all` (i.e., `validate_all` was renamed to `validate_all_dict`, and `validate_all` was changed as described below) ([#1246](https://github.com/stac-utils/pystac/pull/1246))
@@ -831,7 +837,8 @@ use `Band.create`
 
 Initial release.
 
-[Unreleased]: <https://github.com/stac-utils/pystac/compare/v1.10.0..main>
+[Unreleased]: <https://github.com/stac-utils/pystac/compare/v1.10.1..main>
+[v1.10.1]: <https://github.com/stac-utils/pystac/compare/v1.10.0..v1.10.1>
 [v1.10.0]: <https://github.com/stac-utils/pystac/compare/v1.9.0..v1.10.0>
 [v1.9.0]: <https://github.com/stac-utils/pystac/compare/v1.8.4..v1.9.0>
 [v1.8.4]: <https://github.com/stac-utils/pystac/compare/v1.8.3..v1.8.4>


=====================================
pystac/item.py
=====================================
@@ -177,7 +177,12 @@ class Item(STACObject, Assets):
         d = self.__dict__.copy()
 
         d["links"] = [
-            link.to_dict() if link.get_href() else link for link in d["links"]
+            (
+                link.to_dict(transform_href=False)
+                if link.get_href(transform_href=False)
+                else link
+            )
+            for link in d["links"]
         ]
 
         return d


=====================================
pystac/version.py
=====================================
@@ -1,7 +1,7 @@
 import os
 from typing import Optional
 
-__version__ = "1.10.0"
+__version__ = "1.10.1"
 """Library version"""
 
 


=====================================
tests/test_item.py
=====================================
@@ -1,5 +1,6 @@
 from __future__ import annotations
 
+import copy
 import json
 import os
 import pickle
@@ -682,3 +683,12 @@ def test_pickle_with_only_href_links(item: Item) -> None:
         assert original.media_type == new.media_type
         assert str(original.owner) == str(new.owner)
         assert str(original.target) == str(new.target)
+
+
+def test_copy_with_unresolveable_root(item: Item) -> None:
+    item.add_link(
+        pystac.Link(
+            "root", "s3://naip-visualization/this-is-a-non-existent-catalog.json"
+        )
+    )
+    copy.deepcopy(item)



View it on GitLab: https://salsa.debian.org/debian-gis-team/pystac/-/commit/60ec2106430d697dcffdb84128e646ea56442c67

-- 
View it on GitLab: https://salsa.debian.org/debian-gis-team/pystac/-/commit/60ec2106430d697dcffdb84128e646ea56442c67
You're receiving this email because of your account on salsa.debian.org.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/pkg-grass-devel/attachments/20240504/64f7e46b/attachment-0001.htm>


More information about the Pkg-grass-devel mailing list