New packages: py-regionmask and py-pyogrio (#46209)
* Add py-geopandas versions 1.0.0 and 1.0.1, update dependencies * New package py-pyogrio - dependency of newer py-geopandas * New package py-regionmask - needs py-geopandas
This commit is contained in:
parent
3099662df2
commit
6db1defba0
@ -22,6 +22,8 @@ class PyGeopandas(PythonPackage):
|
||||
license("BSD-3-Clause")
|
||||
|
||||
version("master", branch="master")
|
||||
version("1.0.1", sha256="b8bf70a5534588205b7a56646e2082fb1de9a03599651b3d80c99ea4c2ca08ab")
|
||||
version("1.0.0", sha256="386d42c028047e2b0f09191d7859268304761c4711a247173a88891b6161f711")
|
||||
version("0.14.3", sha256="748af035d4a068a4ae00cab384acb61d387685c833b0022e0729aa45216b23ac")
|
||||
version("0.11.1", sha256="f0f0c8d0423d30cf81de2056d853145c4362739350a7f8f2d72cc7409ef1eca1")
|
||||
version("0.11.0", sha256="562fe7dc19a6e0f61532d654c4752f7bf46e0714990c5844fe3de3f9c99cb873")
|
||||
@ -42,21 +44,27 @@ class PyGeopandas(PythonPackage):
|
||||
depends_on("python@3.9:", type=("build", "run"), when="@0.14:")
|
||||
depends_on("py-setuptools", type="build")
|
||||
depends_on("py-setuptools@61.0.0:", type="build", when="@0.14:")
|
||||
depends_on("py-numpy", type=("build", "run"))
|
||||
depends_on("py-numpy@1.22:", type=("build", "run"), when="@0.14.4:")
|
||||
# Only for versions 0.x.y - replaced by py-pyogrio
|
||||
depends_on("py-fiona", type=("build", "run"), when="@:0.99")
|
||||
depends_on("py-fiona@1.8:", type=("build", "run"), when="@0.9:0.99")
|
||||
depends_on("py-fiona@1.8.21:", type=("build", "run"), when="@0.14:0.99")
|
||||
# Only for versions 1.x.y - replaces py-fiona
|
||||
depends_on("py-pyogrio@0.7.2:", type=("build", "run"), when="@1:")
|
||||
depends_on("py-packaging", type=("build", "run"), when="@0.11:")
|
||||
depends_on("py-pandas", type=("build", "run"))
|
||||
depends_on("py-pandas@0.23.0:", type=("build", "run"), when="@0.6:")
|
||||
depends_on("py-pandas@0.24.0:", type=("build", "run"), when="@0.9:")
|
||||
depends_on("py-pandas@0.25.0:", type=("build", "run"), when="@0.10:")
|
||||
depends_on("py-pandas@1.0.0:", type=("build", "run"), when="@0.11:")
|
||||
depends_on("py-pandas@1.4.0:", type=("build", "run"), when="@0.14:")
|
||||
depends_on("py-shapely@:1", type=("build", "run"))
|
||||
depends_on("py-shapely@1.6:1", type=("build", "run"), when="@0.9:0.10")
|
||||
depends_on("py-shapely@1.7:1", type=("build", "run"), when="@0.11:")
|
||||
depends_on("py-shapely@1.8.0:", type=("build", "run"), when="@0.14:")
|
||||
depends_on("py-fiona", type=("build", "run"))
|
||||
depends_on("py-fiona@1.8:", type=("build", "run"), when="@0.9:")
|
||||
depends_on("py-fiona@1.8.21:", type=("build", "run"), when="@0.14:")
|
||||
depends_on("py-pyproj", type=("build", "run"))
|
||||
depends_on("py-pyproj@2.2.0:", type=("build", "run"), when="@0.7:")
|
||||
depends_on("py-pyproj@2.6.1.post1:", type=("build", "run"), when="@0.11:")
|
||||
depends_on("py-pyproj@3.3.0:", type=("build", "run"), when="@0.14:")
|
||||
depends_on("py-packaging", type=("build", "run"), when="@0.11:")
|
||||
depends_on("py-shapely@:1", type=("build", "run"), when="@:0.99")
|
||||
depends_on("py-shapely@1.6:1", type=("build", "run"), when="@0.9:0.10")
|
||||
depends_on("py-shapely@1.7:1", type=("build", "run"), when="@0.11:0.99")
|
||||
depends_on("py-shapely@1.8.0:", type=("build", "run"), when="@0.14:")
|
||||
depends_on("py-shapely@2.0.0:", type=("build", "run"), when="@1:")
|
||||
|
30
var/spack/repos/builtin/packages/py-pyogrio/package.py
Normal file
30
var/spack/repos/builtin/packages/py-pyogrio/package.py
Normal file
@ -0,0 +1,30 @@
|
||||
# Copyright 2013-2024 Lawrence Livermore National Security, LLC and other
|
||||
# Spack Project Developers. See the top-level COPYRIGHT file for details.
|
||||
#
|
||||
# SPDX-License-Identifier: (Apache-2.0 OR MIT)
|
||||
|
||||
from spack.package import *
|
||||
|
||||
|
||||
class PyPyogrio(PythonPackage):
|
||||
"""Vectorized spatial vector file format I/O using GDAL/OGR"""
|
||||
|
||||
homepage = "https://pypi.org/project/pyogrio"
|
||||
pypi = "pyogrio/pyogrio-0.9.0.tar.gz"
|
||||
git = "https://github.com/geopandas/pyogrio.git"
|
||||
|
||||
maintainers("climbfuji")
|
||||
|
||||
license("MIT", checked_by="climbfuji")
|
||||
|
||||
version("0.9.0", sha256="6a6fa2e8cf95b3d4a7c0fac48bce6e5037579e28d3eb33b53349d6e11f15e5a8")
|
||||
|
||||
depends_on("python@3.8:", type=("build", "run"))
|
||||
depends_on("py-cython@0.29:", type="build")
|
||||
depends_on("py-versioneer@0.28 +toml", type="build")
|
||||
# this is an implicit dependency already listed in py-versioneer, not needed
|
||||
# depends_on("py-tomli", when="^python@:3.10", type="build")
|
||||
|
||||
depends_on("py-certifi", type=("build", "run"))
|
||||
depends_on("py-numpy", type=("build", "run"))
|
||||
depends_on("py-packaging", type=("build", "run"))
|
35
var/spack/repos/builtin/packages/py-regionmask/package.py
Normal file
35
var/spack/repos/builtin/packages/py-regionmask/package.py
Normal file
@ -0,0 +1,35 @@
|
||||
# Copyright 2013-2024 Lawrence Livermore National Security, LLC and other
|
||||
# Spack Project Developers. See the top-level COPYRIGHT file for details.
|
||||
#
|
||||
# SPDX-License-Identifier: (Apache-2.0 OR MIT)
|
||||
|
||||
from spack.package import *
|
||||
|
||||
|
||||
class PyRegionmask(PythonPackage):
|
||||
"""Create masks of geospatial regions for arbitrary grids"""
|
||||
|
||||
homepage = "https://pypi.org/project/regionmask"
|
||||
pypi = "regionmask/regionmask-0.12.1.tar.gz"
|
||||
git = "https://github.com/regionmask/regionmask.git"
|
||||
|
||||
maintainers("climbfuji")
|
||||
|
||||
license("MIT", checked_by="climbfuji")
|
||||
|
||||
version("0.12.1", sha256="7ef1e70c6ebab7bfc6a80e13f6fe771945b8b6a31b7f8980fc88c8b8505bb854")
|
||||
|
||||
depends_on("py-setuptools@42:", type="build")
|
||||
depends_on("py-setuptools-scm@7:", type="build")
|
||||
|
||||
depends_on("py-geopandas@0.13:", type=("build", "run"))
|
||||
depends_on("py-numpy@1.24:", type=("build", "run"))
|
||||
depends_on("py-packaging@23.1:", type=("build", "run"))
|
||||
depends_on("py-pooch@1.7:", type=("build", "run"))
|
||||
depends_on("py-rasterio@1.3:", type=("build", "run"))
|
||||
depends_on("py-shapely@2.0:", type=("build", "run"))
|
||||
depends_on("py-xarray@2023.7:", type=("build", "run"))
|
||||
|
||||
# "Optional" dependencies for plotting, but that's what this package is really useful for
|
||||
depends_on("py-matplotlib@3.7:", type="run")
|
||||
depends_on("py-cartopy@0.22:", type="run")
|
Loading…
Reference in New Issue
Block a user