[Git][debian-gis-team/pystac][master] 4 commits: New upstream version 1.10.1

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



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


Commits:
60ec2106 by Antonio Valentino at 2024-05-04T05:08:30+00:00
New upstream version 1.10.1
- - - - -
ad5be316 by Antonio Valentino at 2024-05-04T05:08:47+00:00
Update upstream source from tag 'upstream/1.10.1'

Update to upstream version '1.10.1'
with Debian dir 101ab103b19fbafe0021ac07ef4a1ccc5c801929
- - - - -
8bd78d0a by Antonio Valentino at 2024-05-04T05:09:22+00:00
New upstream release

- - - - -
5ebf3e6c by Antonio Valentino at 2024-05-04T05:10:27+00:00
Set distribution to unstable

- - - - -


5 changed files:

- CHANGELOG.md
- debian/changelog
- 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>


=====================================
debian/changelog
=====================================
@@ -1,3 +1,9 @@
+pystac (1.10.1-1) unstable; urgency=medium
+
+  * New upstream release.
+
+ -- Antonio Valentino <antonio.valentino at tiscali.it>  Sat, 04 May 2024 05:10:06 +0000
+
 pystac (1.10.0-1) unstable; urgency=medium
 
   * New upstream release.


=====================================
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/-/compare/ed21d50fd6cd96a52823ffbfbbefca1a339f3c2f...5ebf3e6c463f2282369dd5b1a554afbd533dcab4

-- 
View it on GitLab: https://salsa.debian.org/debian-gis-team/pystac/-/compare/ed21d50fd6cd96a52823ffbfbbefca1a339f3c2f...5ebf3e6c463f2282369dd5b1a554afbd533dcab4
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/8d5d734b/attachment-0001.htm>


More information about the Pkg-grass-devel mailing list