summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Bouvier <contact@thomas-bouvier.io>2023-01-25 18:23:35 +0100
committerGitHub <noreply@github.com>2023-01-25 11:23:35 -0600
commita2d51cd4dbee68c6ce7e6d9a98dba8b7e8d34081 (patch)
tree4a90680c45a64d79f86e57b91d5989715c3b8056
parentf8e433689a6895d098af689792f78b23a5b21ce7 (diff)
downloadspack-a2d51cd4dbee68c6ce7e6d9a98dba8b7e8d34081.tar.gz
spack-a2d51cd4dbee68c6ce7e6d9a98dba8b7e8d34081.tar.bz2
spack-a2d51cd4dbee68c6ce7e6d9a98dba8b7e8d34081.tar.xz
spack-a2d51cd4dbee68c6ce7e6d9a98dba8b7e8d34081.zip
Add package `py-continuum` (#35082)
* Add package `py-continuum` * `py-continuum`: missing `py-pytest-mock` dependency * `py-continuum`: add missing python dependency * [@spackbot] updating style on behalf of thomas-bouvier * Patch to remove useless `prospector` package * Link to original PR Co-authored-by: thomas-bouvier <thomas-bouvier@users.noreply.github.com>
-rw-r--r--var/spack/repos/builtin/packages/py-continuum/move_prospector_dev_requires.patch30
-rw-r--r--var/spack/repos/builtin/packages/py-continuum/package.py41
2 files changed, 71 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/py-continuum/move_prospector_dev_requires.patch b/var/spack/repos/builtin/packages/py-continuum/move_prospector_dev_requires.patch
new file mode 100644
index 0000000000..d57c6d107d
--- /dev/null
+++ b/var/spack/repos/builtin/packages/py-continuum/move_prospector_dev_requires.patch
@@ -0,0 +1,30 @@
+From a4478b5a9a4d048671d078356bbb5d3ef333a9f9 Mon Sep 17 00:00:00 2001
+From: Thomas Bouvier <contact@thomas-bouvier.io>
+Date: Mon, 23 Jan 2023 11:24:39 +0100
+Subject: [PATCH] Move package `prospector` to dev dependencies
+
+---
+ requirements.txt | 1 -
+ requirements_dev.txt | 1 +
+ 2 files changed, 1 insertion(+), 1 deletion(-)
+ create mode 100644 requirements_dev.txt
+
+diff --git a/requirements.txt b/requirements.txt
+index b9e40cd9..46c81d93 100644
+--- a/requirements.txt
++++ b/requirements.txt
+@@ -9,7 +9,6 @@ scikit-learn>=0.24.1
+ pandas>=1.1.5
+ pytest>=5.0.1
+ pytest-mock>=3.6.1
+-prospector[with_mypy]>=1.2.0
+ h5py>=3.1.0
+ requests>=2.24.0
+ ImageHash>=4.2.1
+diff --git a/requirements_dev.txt b/requirements_dev.txt
+new file mode 100644
+index 00000000..a1986540
+--- /dev/null
++++ b/requirements_dev.txt
+@@ -0,0 +1 @@
++prospector[with_mypy]>=1.2.0
diff --git a/var/spack/repos/builtin/packages/py-continuum/package.py b/var/spack/repos/builtin/packages/py-continuum/package.py
new file mode 100644
index 0000000000..2c9c2abd00
--- /dev/null
+++ b/var/spack/repos/builtin/packages/py-continuum/package.py
@@ -0,0 +1,41 @@
+# 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 PyContinuum(PythonPackage):
+ """A clean and simple data loading library for Continual Learning"""
+
+ homepage = "https://continuum.readthedocs.io/en/latest/"
+ pypi = "continuum/continuum-1.2.7.tar.gz"
+
+ maintainers = ["thomas-bouvier"]
+
+ version("1.2.7", sha256="baadcdbe2f5b3c05254307c73434a012f2a3d663e1be9469a03d4b82559e98e1")
+
+ # This patch moves the `prospector` dependency of package continuum to the
+ # dev dependencies, as it is not called from any Python code.
+ # https://github.com/Continvvm/continuum/pull/280
+ patch("move_prospector_dev_requires.patch", when="@:1.2.7")
+
+ depends_on("python@3.6:")
+
+ depends_on("py-setuptools", type="build")
+ depends_on("py-torch@1.2.0:", type=("build", "run"))
+ depends_on("py-torchvision@0.4.0:", type=("build", "run"))
+ depends_on("py-numpy@1.17.2:", type=("build", "run"))
+ depends_on("pil@6.2.1:", type=("build", "run"))
+ depends_on("py-matplotlib@3.1.0:", type=("build", "run"))
+ depends_on("py-scipy@1.3.3:", type=("build", "run"))
+ depends_on("py-scikit-image@0.15.0:", type=("build", "run"))
+ depends_on("py-scikit-learn@0.24.1:", type=("build", "run"))
+ depends_on("py-pandas@1.1.5:", type=("build", "run"))
+ depends_on("py-pytest@5.0.1:", type=("build", "run"))
+ depends_on("py-pytest-mock@3.6.1:", type=("build", "run"))
+ depends_on("py-h5py@3.1.0:", type=("build", "run"))
+ depends_on("py-requests@2.24.0:", type=("build", "run"))
+ depends_on("py-datasets@1.6.0:", type=("build", "run"))
+ depends_on("py-imagehash@4.2.1:", type=("build", "run"))