From b06d7d6b1ebcb998f1b9266012febfe0bbd7875d Mon Sep 17 00:00:00 2001 From: Po-Chuan Hsieh Date: Sat, 13 Apr 2024 19:57:28 +0800 Subject: [PATCH] graphics/py-rasterio: Update to 1.3.10 Changes: https://github.com/rasterio/rasterio/releases --- graphics/py-rasterio/Makefile | 16 ++++++++++++---- graphics/py-rasterio/distinfo | 6 +++--- graphics/py-rasterio/files/patch-pyproject.toml | 16 ++++++++++++++++ 3 files changed, 31 insertions(+), 7 deletions(-) create mode 100644 graphics/py-rasterio/files/patch-pyproject.toml diff --git a/graphics/py-rasterio/Makefile b/graphics/py-rasterio/Makefile index edb6ad383fac2..4898aa3367c1b 100644 --- a/graphics/py-rasterio/Makefile +++ b/graphics/py-rasterio/Makefile @@ -1,5 +1,5 @@ PORTNAME= rasterio -PORTVERSION= 1.3.9 +PORTVERSION= 1.3.10 CATEGORIES= graphics python MASTER_SITES= PYPI PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} @@ -13,7 +13,9 @@ LICENSE= BSD3CLAUSE LICENSE_FILE= ${WRKSRC}/LICENSE.txt BUILD_DEPENDS= gdal>=3.1:graphics/gdal \ - ${PYTHON_PKGNAMEPREFIX}numpy>=0,1:math/py-numpy@${PY_FLAVOR} + ${PYTHON_PKGNAMEPREFIX}numpy>=0,1:math/py-numpy@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}setuptools>=61:devel/py-setuptools@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}wheel>=0:devel/py-wheel@${PY_FLAVOR} RUN_DEPENDS= gdal>=3.1:graphics/gdal \ ${PYTHON_PKGNAMEPREFIX}affine>=0:math/py-affine@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}attrs>=0:devel/py-attrs@${PY_FLAVOR} \ @@ -25,7 +27,7 @@ RUN_DEPENDS= gdal>=3.1:graphics/gdal \ ${PYTHON_PKGNAMEPREFIX}snuggs>=1.4.1:math/py-snuggs@${PY_FLAVOR} USES= compiler:c++11-lang python -USE_PYTHON= autoplist concurrent cython distutils +USE_PYTHON= autoplist concurrent cython pep517 OPTIONS_DEFINE= PLOT S3 PLOT_DESC= Plotting support @@ -37,4 +39,10 @@ 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 +.include + +.if ${PYTHON_REL} < 31000 +RUN_DEPENDS+= ${PYTHON_PKGNAMEPREFIX}importlib-metadata>=0:devel/py-importlib-metadata@${PY_FLAVOR} +.endif + +.include diff --git a/graphics/py-rasterio/distinfo b/graphics/py-rasterio/distinfo index a01ca8ef9c3fc..4acd8c11bc432 100644 --- a/graphics/py-rasterio/distinfo +++ b/graphics/py-rasterio/distinfo @@ -1,3 +1,3 @@ -TIMESTAMP = 1698341053 -SHA256 (rasterio-1.3.9.tar.gz) = fc6d0d290492fa1a5068711cfebb21cc936968891b7ed9da0690c8a7388885c5 -SIZE (rasterio-1.3.9.tar.gz) = 411741 +TIMESTAMP = 1713001140 +SHA256 (rasterio-1.3.10.tar.gz) = ce182c735b4f9e8735d90600607ecab15ef895eb8aa660bf665751529477e326 +SIZE (rasterio-1.3.10.tar.gz) = 412856 diff --git a/graphics/py-rasterio/files/patch-pyproject.toml b/graphics/py-rasterio/files/patch-pyproject.toml new file mode 100644 index 0000000000000..65af1762fb069 --- /dev/null +++ b/graphics/py-rasterio/files/patch-pyproject.toml @@ -0,0 +1,16 @@ +--- pyproject.toml.orig 2024-04-10 14:59:49 UTC ++++ pyproject.toml +@@ -1,10 +1,9 @@ requires = [ + [build-system] + requires = [ +- "setuptools>=67.8", ++ "setuptools>=61", + "wheel", +- "cython~=3.0.2", +- "numpy==2.0.0rc1; python_version >= '3.9'", +- "oldest-supported-numpy; python_version < '3.9'" ++ "cython", ++ "numpy", + ] + + build-backend = "setuptools.build_meta"