diff --git a/graphics/py-rasterio/Makefile b/graphics/py-rasterio/Makefile index bdc5e91ac594..797c1cc995e6 100644 --- a/graphics/py-rasterio/Makefile +++ b/graphics/py-rasterio/Makefile @@ -1,41 +1,41 @@ PORTNAME= rasterio PORTVERSION= 1.5.0 -PORTREVISION= 3 +PORTREVISION= 4 CATEGORIES= graphics python MASTER_SITES= PYPI PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} MAINTAINER= sunpoet@FreeBSD.org 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= ${PYTHON_PKGNAMEPREFIX}numpy>=0,1<3,1:math/py-numpy@${PY_FLAVOR} \ +BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}numpy>=2,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 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}cligj>=0.5:devel/py-cligj@${PY_FLAVOR} \ - ${PYTHON_PKGNAMEPREFIX}numpy>=0,1:math/py-numpy@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}numpy>=2,1:math/py-numpy@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}pyparsing>=0:devel/py-pyparsing@${PY_FLAVOR} USES= compiler:c++11-lang python:3.11+ USE_PYTHON= autoplist concurrent cython pep517 OPTIONS_DEFINE= PLOT S3 PLOT_DESC= Plotting support S3_DESC= Amazon S3 support PLOT_RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}matplotlib>=0:math/py-matplotlib@${PY_FLAVOR} S3_RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}boto3>=1.2.4:www/py-boto3@${PY_FLAVOR} post-install: ${FIND} ${STAGEDIR}${PYTHON_SITELIBDIR} -name '*.so' -exec ${STRIP_CMD} {} + .include diff --git a/graphics/py-rasterio/files/patch-pyproject.toml b/graphics/py-rasterio/files/patch-pyproject.toml index be0fe5dec451..9c2b411c9530 100644 --- a/graphics/py-rasterio/files/patch-pyproject.toml +++ b/graphics/py-rasterio/files/patch-pyproject.toml @@ -1,42 +1,31 @@ --- pyproject.toml.orig 2026-01-05 14:22:45 UTC +++ pyproject.toml -@@ -1,8 +1,8 @@ requires = [ +@@ -1,7 +1,7 @@ requires = [ [build-system] requires = [ - "setuptools>=77.0.3", - "cython>=3.1,<=3.2", -- "numpy>=2,<3", + "setuptools>=61", + "cython>=3.1", -+ "numpy<3", + "numpy>=2,<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", - ] -