From 4f773096b55c762409ba313d7f8dab34151f3607 Mon Sep 17 00:00:00 2001 From: "Gregory H. Halverson" Date: Thu, 5 Mar 2026 14:16:35 -0800 Subject: [PATCH 1/3] bump version to 1.18.0 and add boundary_latlon property to BBox class --- pyproject.toml | 2 +- rasters/bbox.py | 10 ++++++++++ 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index 18bd003..b8befdf 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta" [project] name = "rasters" -version = "1.17.1" +version = "1.18.0" description = "raster processing toolkit" readme = "README.md" authors = [ diff --git a/rasters/bbox.py b/rasters/bbox.py index 4672b3b..296812d 100644 --- a/rasters/bbox.py +++ b/rasters/bbox.py @@ -159,6 +159,16 @@ def latlon(self): """ return self.transform(WGS84) + @property + def boundary_latlon(self) -> Polygon: + """ + Returns a Polygon representation of the BBox boundary in WGS84 coordinates. + + Returns: + Polygon: The boundary polygon in WGS84 (latitude/longitude) CRS. + """ + return self.polygon.to_crs(WGS84) + @property def round(self) -> BBox: """ From 162b15ff4f86537f1ea338da0268e8061769fcad Mon Sep 17 00:00:00 2001 From: "Gregory H. Halverson" Date: Thu, 5 Mar 2026 14:33:39 -0800 Subject: [PATCH 2/3] continuous integration at Python 3.10 ~ 3.14, development environment at Python 3.14 --- .github/workflows/ci.yml | 2 +- makefile | 5 ++++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 1c0227a..34cb530 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -13,7 +13,7 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - python-version: ["3.10", "3.11", "3.12", "3.13"] + python-version: ["3.10", "3.11", "3.12", "3.13", "3.14"] steps: - name: Checkout repository diff --git a/makefile b/makefile index aa766f9..d486be5 100644 --- a/makefile +++ b/makefile @@ -1,3 +1,6 @@ +# Python version for environment creation +PYTHON_VERSION ?= 3.14 + .PHONY: clean test build twine-upload dist environment install uninstall reinstall test clean: @@ -23,7 +26,7 @@ dist: make twine-upload environment: - mamba create -y -n rasters python=3.11 jupyter + mamba create -y -n rasters python=$(PYTHON_VERSION) jupyter remove-environment: mamba env remove -y -n rasters From 7e7f910ae7e24b99f4b47e3929cdf22034bd3cdd Mon Sep 17 00:00:00 2001 From: "Gregory H. Halverson" Date: Thu, 5 Mar 2026 14:49:40 -0800 Subject: [PATCH 3/3] Add explicit permissions to CI workflow --- .github/workflows/ci.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 34cb530..712d606 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -8,6 +8,10 @@ on: branches: - main +permissions: + contents: read + pull-requests: read + jobs: test: runs-on: ubuntu-latest