py-rios: add 1.4.17, v2.0.1 (#44679)

* Update for 2.0.1
* cloudpickle dependency is only 'run'
* Follow new formatting guidelines
* black wants trailing commas
* Simplified version ranges, as recommended by @tldahlgren
This commit is contained in:
Neil Flood 2024-06-19 02:35:43 +10:00 committed by GitHub
parent e6ae42b1eb
commit d57f174ca3
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -17,8 +17,12 @@ class PyRios(PythonPackage):
homepage = "https://www.rioshome.org/en/latest/" homepage = "https://www.rioshome.org/en/latest/"
url = "https://github.com/ubarsc/rios/releases/download/rios-1.4.16/rios-1.4.16.tar.gz" url = "https://github.com/ubarsc/rios/releases/download/rios-1.4.16/rios-1.4.16.tar.gz"
maintainers("neilflood", "gillins")
license("GPL-3.0-only") license("GPL-3.0-only")
version("2.0.1", sha256="8b8bcbf11a45af46d25b95d9d4a402ec0466ed117b3464f4226a6a466d9687b5")
version("1.4.17", sha256="81007af2d0bcf2a3bf064dc2445087f8b2264c941fa66441b2b1b503168e677d")
version("1.4.16", sha256="2f553d85ff4ff26bfda2a8c6bd3d9dcce5ace847f7d9bd2f072c8943f3758ded") version("1.4.16", sha256="2f553d85ff4ff26bfda2a8c6bd3d9dcce5ace847f7d9bd2f072c8943f3758ded")
version("1.4.15", sha256="71670508dbffcd8f5d24fbb25e6a2b7e1d23b5e899ddc78c90d403bd65981cf4") version("1.4.15", sha256="71670508dbffcd8f5d24fbb25e6a2b7e1d23b5e899ddc78c90d403bd65981cf4")
version("1.4.14", sha256="ea22fde3fe70004aa1ad46bd36fad58f3346e9c161ca44ac913518a6e4fcad82") version("1.4.14", sha256="ea22fde3fe70004aa1ad46bd36fad58f3346e9c161ca44ac913518a6e4fcad82")
@ -27,10 +31,25 @@ class PyRios(PythonPackage):
version("1.4.11", sha256="b7ae5311f987b32f1afe1fabc16f25586de8d15c17a69405d1950aeada7b748e") version("1.4.11", sha256="b7ae5311f987b32f1afe1fabc16f25586de8d15c17a69405d1950aeada7b748e")
version("1.4.10", sha256="6324acccc6018f9e06c40370bc366dc459890e8c09d26e0ebd245f6fd46dad71") version("1.4.10", sha256="6324acccc6018f9e06c40370bc366dc459890e8c09d26e0ebd245f6fd46dad71")
variant("parallel", default=True, description="Enables the parallel processing module") # In 1.4.x, parallel processing was an extra add-on
variant(
"parallel",
default=True,
when="@1.4.16:1.4",
description="Enables the 1.4.x parallel processing module (deprecated)",
)
# In 2.x, there is substantial concurrency always built-in, but using it
# across multiple machines requires an extra dependency.
variant(
"multimachine",
default=False,
when="@2:",
description="Enable compute worker kinds that run across multiple machines",
)
# pip silently replaces distutils with setuptools # pip silently replaces distutils with setuptools
depends_on("py-setuptools", type="build") depends_on("py-setuptools", type="build")
depends_on("py-numpy", type=("build", "run")) depends_on("py-numpy", type=("build", "run"))
depends_on("gdal+python", type=("build", "run")) depends_on("gdal+python", type=("build", "run"))
depends_on("py-cloudpickle", type=("build", "run"), when="@1.4.16:+parallel") depends_on("py-cloudpickle", type="run", when="@1.4.16:1.4+parallel")
depends_on("py-cloudpickle", type="run", when="@2:+multimachine")