summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJen Herting <jen@herting.cc>2021-02-12 15:13:19 -0500
committerGitHub <noreply@github.com>2021-02-12 20:13:19 +0000
commit871fdc12b66ef473d879d109b72738c21d7638ec (patch)
tree4f02b7065476973a8ac390c15ab507d1e630ad99
parent4649a251e6e56b3009bf7bbc9780d0d947e19bdd (diff)
downloadspack-871fdc12b66ef473d879d109b72738c21d7638ec.tar.gz
spack-871fdc12b66ef473d879d109b72738c21d7638ec.tar.bz2
spack-871fdc12b66ef473d879d109b72738c21d7638ec.tar.xz
spack-871fdc12b66ef473d879d109b72738c21d7638ec.zip
New package: py-hyperopt (#21603)
* py-hyperopt for ... * updates to hyperopt * updates for mypy * removed versions * removed url * fixed checksum * fixed version of pyspark * added 3: * removed pyspark constraints and untested versions * [py-hyperopt] removed version 0.2.4 * [py-hyperopt] added vairants spark, mongo, and atpe * [py-hyperopt] added dependency on py-lightgbm Co-authored-by: Sid Pendelberry <sid@rit.edu>
-rw-r--r--var/spack/repos/builtin/packages/py-hyperopt/package.py35
1 files changed, 35 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/py-hyperopt/package.py b/var/spack/repos/builtin/packages/py-hyperopt/package.py
new file mode 100644
index 0000000000..68dec3ba2b
--- /dev/null
+++ b/var/spack/repos/builtin/packages/py-hyperopt/package.py
@@ -0,0 +1,35 @@
+# Copyright 2013-2020 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 import *
+
+
+class PyHyperopt(PythonPackage):
+ """Hyperopt is a Python library for serial and parallel optimization over
+ awkward search spaces, which may include real-valued, discrete, and
+ conditional dimensions."""
+
+ homepage = "http://hyperopt.github.io/hyperopt/"
+ pypi = "hyperopt/hyperopt-0.2.5.tar.gz"
+
+ version('0.2.5', sha256='bc6047d50f956ae64eebcb34b1fd40f186a93e214957f20e87af2f10195295cc')
+
+ variant('spark', default=False, description="SparkTrials")
+ variant('mongo', default=False, description="MongoTrials")
+ variant('atpe', default=False, description="ATPE")
+
+ depends_on('python@2.7:', type=('build', 'run'))
+ depends_on('py-setuptools', type='build')
+ depends_on('py-numpy', type=('build', 'run'))
+ depends_on('py-scipy', type=('build', 'run'))
+ depends_on('py-six', type=('build', 'run'))
+ depends_on('py-networkx@2.2:', type=('build', 'run'))
+ depends_on('py-future', type=('build', 'run'))
+ depends_on('py-tqdm', type=('build', 'run'))
+ depends_on('py-cloudpickle', type=('build', 'run'))
+ depends_on('py-pyspark', when="+spark", type=('build', 'run'))
+ depends_on('py-pymongo', when="+mongo", type=('build', 'run'))
+ depends_on('py-scikit-learn', when="+atpe", type=('build', 'run'))
+ depends_on('py-lightgbm', when="+atpe", type=('build', 'run'))