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>
This commit is contained in:
Thomas Bouvier 2023-01-25 18:23:35 +01:00 committed by GitHub
parent f8e433689a
commit a2d51cd4db
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 71 additions and 0 deletions

View File

@ -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

View File

@ -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"))