Skip to content

Commit

Permalink
py-rasterio: update to 1.3.11, add py313 subport
Browse files Browse the repository at this point in the history
  • Loading branch information
markmentovai committed Nov 11, 2024
1 parent 1a4c16e commit aa3c3bd
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 6 deletions.
14 changes: 8 additions & 6 deletions python/py-rasterio/Portfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,12 @@ PortGroup python 1.0
PortGroup compiler_wrapper 1.0

name py-rasterio
version 1.3.9
revision 1
version 1.3.11
revision 0
categories-append gis
license BSD

python.versions 39 310 311 312
python.versions 39 310 311 312 313

maintainers {stromnov @stromnov} openmaintainer

Expand All @@ -19,9 +19,9 @@ long_description {*}${description}

homepage https://github.com/rasterio/rasterio

checksums rmd160 c689da41ea24c2843c0c6e6e927beeb4bc67db17 \
sha256 fc6d0d290492fa1a5068711cfebb21cc936968891b7ed9da0690c8a7388885c5 \
size 411741
checksums rmd160 28aa4815bc87ce7d3839907d5e18ca86cde7b4b6 \
sha256 47aa70b4718ebc80d825bb7db3127577d74e31c53048ce215145c0baf530ece9 \
size 413094

if {${name} ne ${subport}} {
depends_build-append \
Expand All @@ -38,6 +38,8 @@ if {${name} ne ${subport}} {
port:py${python.version}-setuptools \
port:gdal

patchfiles-append patch-numpy_version.diff

# cc1plus: error: unrecognized command line option "-stdlib=libc++"
if {${configure.cxx_stdlib} ne "libc++"} {
patchfiles-append patch-fix-setup.py.diff
Expand Down
13 changes: 13 additions & 0 deletions python/py-rasterio/files/patch-numpy_version.diff
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
diff --git pyproject.toml pyproject.toml
index 95fc8d9590f6..aa4efdb3a323 100644
--- pyproject.toml
+++ pyproject.toml
@@ -3,7 +3,7 @@ requires = [
"setuptools>=67.8",
"wheel",
"cython~=3.0.2",
- "numpy>=2.0.0,<3.0; python_version >= '3.9'",
+ "numpy; python_version >= '3.9'",
"oldest-supported-numpy; python_version < '3.9'"
]

0 comments on commit aa3c3bd

Please sign in to comment.