New: py-dalib, py-qdldl, py-qpsolvers; Update: py-ecos, py-scs, py-osqp (#36549)

* New: py-dalib, py-qdldl, py-qpsolvers; Update: py-ecos, py-scs, py-osqp

* [@spackbot] updating style on behalf of meyersbs

* Update py-qpsolvers homepage

* Add when clause to py-future
This commit is contained in:
Benjamin Meyers 2023-03-31 10:34:02 -04:00 committed by GitHub
parent 27978fd355
commit 951f691d1b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
6 changed files with 93 additions and 1 deletions

View File

@ -0,0 +1,25 @@
# Copyright 2013-2023 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 PyDalib(PythonPackage):
"""Trans-Learn is a Transfer Learning library based on pure PyTorch with high
performance and friendly API."""
homepage = "https://github.com/thuml/Domain-Adaptation-Lib"
pypi = "dalib/dalib-0.2.tar.gz"
maintainers("meyersbs")
version("0.2", sha256="3d06b37e4f93179f907d88a84d2d1802267bc397bf9cbd6bf5c69011bbae9a6a")
depends_on("py-setuptools", type="build")
depends_on("python@3.6:", type=("build", "run"))
depends_on("py-torch@1.4.0:", type=("build", "run"))
depends_on("py-torchvision@0.5.0:", type=("build", "run"))
depends_on("py-numpy", type=("build", "run"))
depends_on("py-qpsolvers@1.4.0:", type=("build", "run"))

View File

@ -13,6 +13,9 @@ class PyEcos(PythonPackage):
homepage = "https://github.com/embotech/ecos"
pypi = "ecos/ecos-2.0.7.post1.tar.gz"
maintainers("meyersbs")
version("2.0.12", sha256="f48816d73b87ae325556ea537b7c8743187311403c80e3832035224156337c4e")
version(
"2.0.7.post1", sha256="83e90f42b3f32e2a93f255c3cfad2da78dbd859119e93844c45d2fca20bdc758"
)

View File

@ -13,10 +13,18 @@ class PyOsqp(PythonPackage):
homepage = "https://osqp.org/"
pypi = "osqp/osqp-0.6.1.tar.gz"
maintainers("meyersbs")
version(
"0.6.2.post8", sha256="23d6bae4a3612f60d5f652d0e5fa4b2ead507cabfff5d930d822057ae6ed6677"
)
version("0.6.1", sha256="47b17996526d6ecdf35cfaead6e3e05d34bc2ad48bcb743153cefe555ecc0e8c")
depends_on("cmake", type="build")
depends_on("py-setuptools", type="build")
depends_on("py-setuptools@40.8.0:", when="@0.6.2.post8:", type="build")
depends_on("py-setuptools-scm@6.2:", when="@0.6.2.post8:", type="build")
depends_on("py-numpy@1.7:", type=("build", "run"))
depends_on("py-scipy@0.13.2:", type=("build", "run"))
depends_on("py-future", type=("build", "run"))
depends_on("py-future", when="@:0.6.1", type=("build", "run"))
depends_on("py-qdldl", when="@0.6.2.post8:", type=("build", "run"))

View File

@ -0,0 +1,26 @@
# Copyright 2013-2023 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 PyQdldl(PythonPackage):
"""Python interface to the QDLDL free LDL factorization routine for
quasi-definite linear systems: Ax = b."""
homepage = "https://github.com/oxfordcontrol/qdldl-python/"
pypi = "qdldl/qdldl-0.1.5.post3.tar.gz"
maintainers("meyersbs")
version(
"0.1.5.post3", sha256="69c092f6e1fc23fb779a80a62e6fcdfe2eba05c925860248c4d6754f4736938f"
)
depends_on("py-setuptools@18.0:", type="build")
depends_on("py-pybind11", type="build")
depends_on("py-numpy@1.7:", type=("build", "run"))
depends_on("py-scipy@0.13.2:", type=("build", "run"))
depends_on("cmake", type="build")

View File

@ -0,0 +1,27 @@
# Copyright 2013-2023 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 PyQpsolvers(PythonPackage):
"""Unified interface to convex Quadratic Programming (QP) solvers available in
Python."""
homepage = "https://github.com/qpsolvers/qpsolvers"
pypi = "qpsolvers/qpsolvers-3.1.0.tar.gz"
maintainers("meyersbs")
version("3.2.0", sha256="770a2b40ff827e251a30df97e9d518fd4859621fc02a323c3b6407cf2fbf4f34")
version("3.1.0", sha256="f6becafc4667236a67276fa0baee1697c904c37498c5161fa40c605209269b4d")
depends_on("py-flit-core@2:3", type="build")
depends_on("python@3.7:", type=("build", "run"))
depends_on("py-ecos@2.0.8:", type=("build", "run"))
depends_on("py-numpy@1.15.4:", type=("build", "run"))
depends_on("py-osqp@0.6.2:", type=("build", "run"))
depends_on("py-scipy@1.2.0:", type=("build", "run"))
depends_on("py-scs@3.2.0:", type=("build", "run"))

View File

@ -13,6 +13,9 @@ class PyScs(PythonPackage, CudaPackage):
homepage = "https://github.com/cvxgrp/scs"
pypi = "scs/scs-2.1.1-2.tar.gz"
maintainers("meyersbs")
version("3.2.2", sha256="7206a2ad27ca031d693d65cbcbcfc661498f3983838079a66579bcc784b25293")
version("2.1.1-2", sha256="f816cfe3d4b4cff3ac2b8b96588c5960ddd2a3dc946bda6b09db04e7bc6577f2")
variant(