git: 8cfdf53cf65c - main - graphics/py-rasterio: Update to 1.5.0

From: Po-Chuan Hsieh <sunpoet_at_FreeBSD.org>
Date: Sat, 31 Jan 2026 14:22:22 UTC
The branch main has been updated by sunpoet:

URL: https://cgit.FreeBSD.org/ports/commit/?id=8cfdf53cf65cedb25ce24d15f4b57f3257df8402

commit 8cfdf53cf65cedb25ce24d15f4b57f3257df8402
Author:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
AuthorDate: 2026-01-31 13:36:04 +0000
Commit:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
CommitDate: 2026-01-31 14:15:21 +0000

    graphics/py-rasterio: Update to 1.5.0
    
    - Update COMMENT
    
    Changes:        https://github.com/rasterio/rasterio/releases
---
 graphics/py-rasterio/Makefile                   | 13 +++-----
 graphics/py-rasterio/distinfo                   |  6 ++--
 graphics/py-rasterio/files/patch-pyproject.toml | 44 ++++++++++++++++++++-----
 3 files changed, 43 insertions(+), 20 deletions(-)

diff --git a/graphics/py-rasterio/Makefile b/graphics/py-rasterio/Makefile
index 05420626d8e3..8fa32a699d7d 100644
--- a/graphics/py-rasterio/Makefile
+++ b/graphics/py-rasterio/Makefile
@@ -1,20 +1,18 @@
 PORTNAME=	rasterio
-PORTVERSION=	1.3.11
-PORTREVISION=	2
+PORTVERSION=	1.5.0
 CATEGORIES=	graphics python
 MASTER_SITES=	PYPI
 PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
 
 MAINTAINER=	sunpoet@FreeBSD.org
-COMMENT=	Fast and direct raster I/O for use with Numpy and SciPy
+COMMENT=	Fast and direct raster I/O for use with NumPy
 WWW=		https://rasterio.readthedocs.io/en/stable/ \
 		https://github.com/rasterio/rasterio
 
 LICENSE=	BSD3CLAUSE
 LICENSE_FILE=	${WRKSRC}/LICENSE.txt
 
-BUILD_DEPENDS=	gdal>=3.1:graphics/gdal \
-		${PYTHON_PKGNAMEPREFIX}numpy>=0,1:math/py-numpy@${PY_FLAVOR} \
+BUILD_DEPENDS=	${PYTHON_PKGNAMEPREFIX}numpy>=0,1<3,1:math/py-numpy@${PY_FLAVOR} \
 		${PYTHON_PKGNAMEPREFIX}setuptools>=61:devel/py-setuptools@${PY_FLAVOR} \
 		${PYTHON_PKGNAMEPREFIX}wheel>=0:devel/py-wheel@${PY_FLAVOR}
 LIB_DEPENDS=	libgdal.so:graphics/gdal
@@ -22,12 +20,11 @@ RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}affine>=0:math/py-affine@${PY_FLAVOR} \
 		${PYTHON_PKGNAMEPREFIX}attrs>=0:devel/py-attrs@${PY_FLAVOR} \
 		${PYTHON_PKGNAMEPREFIX}certifi>=0:security/py-certifi@${PY_FLAVOR} \
 		${PYTHON_PKGNAMEPREFIX}click>=4.0:devel/py-click@${PY_FLAVOR} \
-		${PYTHON_PKGNAMEPREFIX}click-plugins>=0:devel/py-click-plugins@${PY_FLAVOR} \
 		${PYTHON_PKGNAMEPREFIX}cligj>=0.5:devel/py-cligj@${PY_FLAVOR} \
 		${PYTHON_PKGNAMEPREFIX}numpy>=0,1:math/py-numpy@${PY_FLAVOR} \
-		${PYTHON_PKGNAMEPREFIX}snuggs>=1.4.1:math/py-snuggs@${PY_FLAVOR}
+		${PYTHON_PKGNAMEPREFIX}pyparsing>=0:devel/py-pyparsing@${PY_FLAVOR}
 
-USES=		compiler:c++11-lang python
+USES=		compiler:c++11-lang python:3.11+
 USE_PYTHON=	autoplist concurrent cython pep517
 
 OPTIONS_DEFINE=	PLOT S3
diff --git a/graphics/py-rasterio/distinfo b/graphics/py-rasterio/distinfo
index 927152b848e1..864b740ac04f 100644
--- a/graphics/py-rasterio/distinfo
+++ b/graphics/py-rasterio/distinfo
@@ -1,3 +1,3 @@
-TIMESTAMP = 1725559851
-SHA256 (rasterio-1.3.11.tar.gz) = 47aa70b4718ebc80d825bb7db3127577d74e31c53048ce215145c0baf530ece9
-SIZE (rasterio-1.3.11.tar.gz) = 413094
+TIMESTAMP = 1768625717
+SHA256 (rasterio-1.5.0.tar.gz) = 1e0ea56b02eea4989b36edf8e58a5a3ef40e1b7edcb04def2603accd5ab3ee7b
+SIZE (rasterio-1.5.0.tar.gz) = 452184
diff --git a/graphics/py-rasterio/files/patch-pyproject.toml b/graphics/py-rasterio/files/patch-pyproject.toml
index 59c5ffbafb21..be0fe5dec451 100644
--- a/graphics/py-rasterio/files/patch-pyproject.toml
+++ b/graphics/py-rasterio/files/patch-pyproject.toml
@@ -1,16 +1,42 @@
---- pyproject.toml.orig	2024-09-03 20:46:46 UTC
+--- pyproject.toml.orig	2026-01-05 14:22:45 UTC
 +++ pyproject.toml
-@@ -1,10 +1,9 @@ requires = [
+@@ -1,8 +1,8 @@ requires = [
  [build-system]
  requires = [
--    "setuptools>=67.8",
+-    "setuptools>=77.0.3",
+-    "cython>=3.1,<=3.2",
+-    "numpy>=2,<3",
 +    "setuptools>=61",
-     "wheel",
--    "cython~=3.0.2",
--    "numpy>=2.0.0,<3.0; python_version >= '3.9'",
--    "oldest-supported-numpy; python_version < '3.9'"
-+    "cython>=3.0.2",
++    "cython>=3.1",
++    "numpy<3",
+ ]
+ build-backend = "setuptools.build_meta"
+ 
+@@ -18,8 +18,7 @@ keywords = ["gis", "raster", "gdal"]
+ description = "Fast and direct raster I/O for use with NumPy"
+ readme = "README.rst"
+ keywords = ["gis", "raster", "gdal"]
+-license = "BSD-3-Clause"
+-license-files = ["LICENSE.txt", "AUTHORS.txt"]
++license = {text = "BSD-3-Clause"}
+ classifiers = [
+     "Development Status :: 5 - Production/Stable",
+     "Intended Audience :: Developers",
+@@ -34,7 +33,7 @@ classifiers = [
+     "Topic :: Multimedia :: Graphics :: Graphics Conversion",
+     "Topic :: Scientific/Engineering :: GIS",
+ ]
+-requires-python = ">=3.12"
++requires-python = ">=3.11"
+ dependencies = [
+     "affine",
+     "attrs",
+@@ -42,7 +41,7 @@ dependencies = [
+     # Avoid https://github.com/pallets/click/issues/2939
+     "click>=4.0,!=8.2.*",
+     "cligj>=0.5",
+-    "numpy>=2",
 +    "numpy",
+     "pyparsing",
  ]
  
- build-backend = "setuptools.build_meta"