Skip to content

Commit

Permalink
graphics/py-rasterio: Update to 1.3.10
Browse files Browse the repository at this point in the history
  • Loading branch information
sunpoet committed Apr 13, 2024
1 parent 3e75575 commit b06d7d6
Show file tree
Hide file tree
Showing 3 changed files with 31 additions and 7 deletions.
16 changes: 12 additions & 4 deletions 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}
Expand All @@ -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} \
Expand All @@ -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
Expand All @@ -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 <bsd.port.mk>
.include <bsd.port.pre.mk>

.if ${PYTHON_REL} < 31000
RUN_DEPENDS+= ${PYTHON_PKGNAMEPREFIX}importlib-metadata>=0:devel/py-importlib-metadata@${PY_FLAVOR}
.endif

.include <bsd.port.post.mk>
6 changes: 3 additions & 3 deletions 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
16 changes: 16 additions & 0 deletions 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"

0 comments on commit b06d7d6

Please sign in to comment.