summaryrefslogtreecommitdiff
path: root/var/spack/repos/builtin/packages/py-mlflow/package.py
blob: 312c7ad6b09e99336d93274ab809fefd1ab9813e (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
# 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 PyMlflow(PythonPackage):
    """MLflow: A Platform for ML Development and Productionization."""

    homepage = "https://pypi.org/project/mlflow/"
    pypi = "mlflow/mlflow-2.0.1.tar.gz"

    license("Apache-2.0")

    version("2.0.1", sha256="7ce6caf3c6acb022d6f5ce8a0995a92be1db524ae16aade1f83da661cdf993de")
    version("1.17.0", sha256="4898c58899e3101e09e2b37cf5bee7db04c5d73389a56942d3ef5a5e4396799e")

    depends_on("python@3.6:", type=("build", "run"), when="@1.17.0:")
    depends_on("python@3.7:", type=("build", "run"), when="@1.24.0:")
    depends_on("python@3.8:", type=("build", "run"), when="@2.0.1:")
    depends_on("py-setuptools", type="build")

    depends_on("py-click@7.0:8", type=("build", "run"))
    depends_on("py-cloudpickle@:2", type=("build", "run"))
    depends_on("py-databricks-cli@0.8.7:0", type=("build", "run"))
    depends_on("py-entrypoints@:0", type=("build", "run"))
    depends_on("py-gitpython@2.1.0:3", type=("build", "run"))
    depends_on("py-pyyaml@5.1:6", type=("build", "run"))
    depends_on("py-protobuf@3.12.0:4", type=("build", "run"))
    depends_on("py-pytz@:2022", type=("build", "run"))
    depends_on("py-requests@2.17.3:2", type=("build", "run"))
    depends_on("py-packaging@:21", type=("build", "run"))
    depends_on("py-importlib-metadata@3.7:4.6,4.7.1:5", type=("build", "run"))
    depends_on("py-sqlparse@0.4.0:0", type=("build", "run"))

    depends_on("py-alembic@:1", type=("build", "run"))
    depends_on("py-docker@4.0.0:6", type=("build", "run"))
    depends_on("py-flask@:2", type=("build", "run"))
    depends_on("py-numpy@:1", type=("build", "run"))
    depends_on("py-scipy@:1", type=("build", "run"))
    depends_on("py-pandas@:1", type=("build", "run"))
    depends_on("py-querystring-parser@:1", type=("build", "run"))
    depends_on("py-sqlalchemy@1.4.0:1", type=("build", "run"))
    for platform in ["linux", "darwin", "cray"]:
        depends_on("py-gunicorn@:20", type=("build", "run"), when=f"platform={platform}")
    depends_on("py-waitress@:2", type=("build", "run"), when="platform=windows")
    depends_on("py-scikit-learn@:1", type=("build", "run"))
    depends_on("py-pyarrow@4.0.0:10", type=("build", "run"))
    depends_on("py-shap@0.40:0", type=("build", "run"))
    depends_on("py-markdown@3.3:3", type=("build", "run"))
    for platform in ["linux", "darwin", "cray"]:
        depends_on("py-jinja2@2.11:3", type=("build", "run"), when=f"platform={platform}")
    depends_on("py-jinja2@3.0:3", type=("build", "run"), when="platform=windows")
    depends_on("py-matplotlib@:3", type=("build", "run"))