[Git][debian-gis-team/stac-pydantic][master] 4 commits: New upstream version 3.7.0

Antonio Valentino (@antonio.valentino) gitlab at salsa.debian.org
Sun Oct 11 07:32:19 BST 2026



Antonio Valentino pushed to branch master at Debian GIS Project / stac-pydantic


Commits:
dc1e35ef by Antonio Valentino at 2026-10-11T06:25:47+00:00
New upstream version 3.7.0
- - - - -
56296adb by Antonio Valentino at 2026-10-11T06:25:48+00:00
Update upstream source from tag 'upstream/3.7.0'

Update to upstream version '3.7.0'
with Debian dir 1f2342e0b8a0e2828e41234853a65f72b45fc846
- - - - -
dce334e8 by Antonio Valentino at 2026-10-11T06:26:22+00:00
New upstream release

- - - - -
06b7276b by Antonio Valentino at 2026-10-11T06:28:16+00:00
Set distribution to unstable

- - - - -


9 changed files:

- .github/dependabot.yml
- .github/workflows/cicd.yml
- .github/workflows/release.yml
- CHANGELOG.md
- debian/changelog
- stac_pydantic/shared.py
- stac_pydantic/version.py
- tests/api/test_search.py
- uv.lock


Changes:

=====================================
.github/dependabot.yml
=====================================
@@ -6,10 +6,20 @@ updates:
       interval: "weekly"
       day: "monday"
     groups:
-      minor-and-patch:
-        applies-to: version-updates
+      all:
         patterns:
-          - "*"
-        update-types:
-          - "minor"
-          - "patch"
+        - "*"
+    commit-message:
+      prefix: "chore(deps):"
+
+  - package-ecosystem: "uv"
+    directory: "/"
+    schedule:
+      interval: "weekly"
+      day: "monday"
+    groups:
+      all:
+        patterns:
+        - "*"
+    commit-message:
+      prefix: "chore(deps):"


=====================================
.github/workflows/cicd.yml
=====================================
@@ -24,10 +24,10 @@ jobs:
           - '3.14'
 
     steps:
-      - uses: actions/checkout at de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
+      - uses: actions/checkout at 3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
 
       - name: Install uv
-        uses: astral-sh/setup-uv at fac544c07dec837d0ccb6301d7b5580bf5edae39 # v8.2.0
+        uses: astral-sh/setup-uv at c18668ad3cf93ea998bef934396af7bb5c839dc7 # v10.2.0
         with:
           version: "0.9.*"
           enable-cache: true
@@ -46,7 +46,7 @@ jobs:
 
       - name: Upload Results
         if: ${{ matrix.python-version == env.LATEST_PY_VERSION }}
-        uses: codecov/codecov-action at fb8b3582c8e4def4969c97caa2f19720cb33a72f # v7.0.0
+        uses: codecov/codecov-action at 303a32d7a59b442fa8d48b6a1cc6825c09c847a5 # v7.1.1
         with:
           files: ./coverage.xml
           flags: unittests


=====================================
.github/workflows/release.yml
=====================================
@@ -12,10 +12,10 @@ jobs:
     runs-on: ubuntu-latest
     if: ${{ github.repository }} == 'stac-utils/stac-pydantic'
     steps:
-      - uses: actions/checkout at de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
+      - uses: actions/checkout at 3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
 
       - name: Install uv
-        uses: astral-sh/setup-uv at fac544c07dec837d0ccb6301d7b5580bf5edae39 # v8.2.0
+        uses: astral-sh/setup-uv at c18668ad3cf93ea998bef934396af7bb5c839dc7 # v10.2.0
         with:
           version: "0.9.*"
           enable-cache: true


=====================================
CHANGELOG.md
=====================================
@@ -1,6 +1,12 @@
 
 ## Unreleased
 
+
+## 3.7.0 (2026-10-09)
+
+- fix: raise error for invalid empty date range (`..`, `""`, `/`, `../`, `/..`)
+- update: `../..` to be considered an invalid empty date range
+
 ## 3.6.0 (2026-06-26)
 
 - No change since 3.6.0a1


=====================================
debian/changelog
=====================================
@@ -1,3 +1,9 @@
+stac-pydantic (3.7.0-1) unstable; urgency=medium
+
+  * New upstream release.
+
+ -- Antonio Valentino <antonio.valentino at tiscali.it>  Sun, 11 Oct 2026 06:28:00 +0000
+
 stac-pydantic (3.6.0-2) unstable; urgency=medium
 
   [ Bas Couwenberg ]


=====================================
stac_pydantic/shared.py
=====================================
@@ -258,6 +258,11 @@ def validate_datetime(v: str | None) -> str | None:
         if len(dates) == 1:
             dates = [dates[0], dates[0]]
 
+        if not any(dates):
+            raise ValueError(
+                "Invalid datetime range. At least one of the start or end dates must be provided. "
+            )
+
         # If there is a start and end date, check that the start date is before the end date
         if dates[0] and dates[1] and dates[0] > dates[1]:
             raise ValueError(


=====================================
stac_pydantic/version.py
=====================================
@@ -1,5 +1,5 @@
 """stac-pydantic and STAC spec versions."""
 
-__version__ = "3.6.0"
+__version__ = "3.7.0"
 
 STAC_VERSION = "1.0.0"


=====================================
tests/api/test_search.py
=====================================
@@ -99,13 +99,6 @@ def test_temporal_search_two_tailed():
     assert search.end_date == utcnow
 
 
-def test_temporal_search_open():
-    # Test open date range
-    search = Search(collections=["collection1"], datetime="../..")
-    assert search.start_date is None
-    assert search.end_date is None
-
-
 def test_invalid_temporal_search_date():
     # Just a date, no time
     utcnow = datetime.now(timezone.utc).strftime("%Y-%m-%d")
@@ -195,6 +188,12 @@ def test_search_datetime(dt, start, end):
 @pytest.mark.parametrize(
     "dt",
     [
+        "",  # empty string
+        "..",  # open without /
+        "../..",  # both start and end are open
+        "/",  # both start and end are None
+        "../",  # both start and end are open
+        "/..",  # both start and end are open
         "/..//..../../1984-04-12T23:20:50.52Z/1985-04-12T23:20:50.52Z",  # extra start /
         "1984-04-12T23:20:50.52Z/1985-04-12T23:20:50.52Z/",  # extra end /
         "1986-04-12T23:20:50.52Z/1985-04-12T23:20:50.52Z",  # start > end


=====================================
uv.lock
=====================================
The diff for this file was not included because it is too large.


View it on GitLab: https://salsa.debian.org/debian-gis-team/stac-pydantic/-/compare/e0591cb729872f3464e9a1cbd0eef5ddcf783b26...06b7276b4648124d5be23e1ddc76e7f2fd6181ff

-- 
View it on GitLab: https://salsa.debian.org/debian-gis-team/stac-pydantic/-/compare/e0591cb729872f3464e9a1cbd0eef5ddcf783b26...06b7276b4648124d5be23e1ddc76e7f2fd6181ff
You're receiving this email because of your account on salsa.debian.org. Manage all notifications: https://salsa.debian.org/-/profile/notifications | Help: https://salsa.debian.org/help


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


More information about the Pkg-grass-devel mailing list