summaryrefslogtreecommitdiff
path: root/var/spack/repos/builtin/packages/py-pytest/package.py
blob: c1cee93543f96da067a835defe82f06ab0e3cfaf (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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
# Copyright 2013-2024 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 PyPytest(PythonPackage):
    """pytest: simple powerful testing with Python."""

    homepage = "https://pytest.org/"
    pypi = "pytest/pytest-5.2.1.tar.gz"
    git = "https://github.com/pytest-dev/pytest"

    license("MIT")

    version("7.3.2", sha256="ee990a3cc55ba808b80795a79944756f315c67c12b56abd3ac993a7b8c17030b")
    version("7.2.1", sha256="d45e0952f3727241918b8fd0f376f5ff6b301cc0777c6f9a556935c92d8a7d42")
    version("7.1.3", sha256="4f365fec2dff9c1162f834d9f18af1ba13062db0c708bf7b946f8a5c76180c39")
    version("6.2.5", sha256="131b36680866a76e6781d13f101efb86cf674ebb9762eb70d3082b6f29889e89")
    version("6.2.4", sha256="50bcad0a0b9c5a72c8e4e7c9855a3ad496ca6a881a3641b4260605450772c54b")
    version("6.2.2", sha256="9d1edf9e7d0b84d72ea3dbcdfd22b35fb543a5e8f2a60092dd578936bf63d7f9")
    version("6.2.1", sha256="66e419b1899bc27346cb2c993e12c5e5e8daba9073c1fbce33b9807abc95c306")
    version("6.1.1", sha256="8f593023c1a0f916110285b6efd7f99db07d59546e3d8c36fc60e2ab05d3be92")
    version("5.3.4", sha256="1d122e8be54d1a709e56f82e2d85dcba3018313d64647f38a91aec88c239b600")
    version("5.2.1", sha256="ca563435f4941d0cb34767301c27bc65c510cb82e90b9ecf9cb52dc2c63caaa0")
    version("5.1.1", sha256="c3d5020755f70c82eceda3feaf556af9a341334414a8eca521a18f463bcead88")
    version("4.6.9", sha256="19e8f75eac01dd3f211edd465b39efbcbdc8fc5f7866d7dd49fedb30d8adf339")
    version("4.6.5", sha256="8fc39199bdda3d9d025d3b1f4eb99a192c20828030ea7c9a0d2840721de7d347")
    version("4.6.2", sha256="bea27a646a3d74cbbcf8d3d4a06b2dfc336baf3dc2cc85cf70ad0157e73e8322")
    version("4.4.0", sha256="f21d2f1fb8200830dcbb5d8ec466a9c9120e20d8b53c7585d180125cce1d297a")
    version("4.3.0", sha256="067a1d4bf827ffdd56ad21bd46674703fce77c5957f6c1eef731f6146bfcef1c")
    version("3.7.2", sha256="3459a123ad5532852d36f6f4501dfe1acf4af1dd9541834a164666aa40395b02")
    version("3.7.1", sha256="86a8dbf407e437351cef4dba46736e9c5a6e3c3ac71b2e942209748e76ff2086")
    version("3.5.1", sha256="54713b26c97538db6ff0703a12b19aeaeb60b5e599de542e7fca0ec83b9038e8")
    version("3.0.7", sha256="b70696ebd1a5e6b627e7e3ac1365a4bc60aaf3495e843c1e70448966c5224cab")
    version("3.0.2", sha256="64d8937626dd2a4bc15ef0edd307d26636a72a3f3f9664c424d78e40efb1e339")

    # python_requires
    depends_on("python@3.7:", when="@7.1:", type=("build", "run"))
    # see https://github.com/pytest-dev/pytest/releases/tag/7.3.2
    depends_on("python@:3.11", when="@:7.3.1", type=("build", "run"))

    # setup_requires
    depends_on("py-setuptools@45.0:", when="@7:", type=("build", "run"))
    depends_on("py-setuptools@42.0:", when="@6.2:", type=("build", "run"))
    depends_on("py-setuptools@40.0:", when="@3.9.2:6.1", type=("build", "run"))
    depends_on("py-setuptools@30.3:", when="@3.9.0:3.9.1", type=("build", "run"))
    depends_on("py-setuptools", type=("build", "run"))
    depends_on("py-setuptools-scm@6.2.3: +toml", when="@7:", type="build")
    depends_on("py-setuptools-scm@3.4: +toml", when="@6.2:", type="build")
    depends_on("py-setuptools-scm", when="@3.1:", type="build")

    # install_requires
    depends_on("py-iniconfig", when="@6.0:", type=("build", "run"))
    depends_on("py-packaging", when="@4.6:", type=("build", "run"))
    depends_on("py-pluggy@0.12:1", when="@6.2:", type=("build", "run"))
    depends_on("py-pluggy@0.12:0", when="@4.6:6.1", type=("build", "run"))
    depends_on("py-pluggy@0.9.0:0.9,0.11:0", when="@4.5.0:4.5", type=("build", "run"))
    depends_on("py-pluggy@0.11:", when="@4.4.2:4.4", type=("build", "run"))
    depends_on("py-pluggy@0.9:", when="@4.4.0:4.4.1", type=("build", "run"))
    depends_on("py-pluggy@0.7:", when="@3.7:4.3", type=("build", "run"))
    depends_on("py-pluggy@0.5:0.7", when="@3.6.4:3.6", type=("build", "run"))
    depends_on("py-pluggy@0.5:0.6", when="@:3.6.3", type=("build", "run"))
    depends_on("py-colorama", when="platform=windows", type=("build", "run"))
    depends_on("py-exceptiongroup@1:", when="@7: ^python@:3.10", type=("build", "run"))
    depends_on("py-importlib-metadata@0.12:", when="@5.1: ^python@:3.7", type=("build", "run"))
    depends_on("py-importlib-metadata@0.12:", when="@4.6:5.0", type=("build", "run"))
    depends_on("py-tomli@1:", when="@7.1: ^python@:3.10", type=("build", "run"))
    depends_on("py-tomli@1:", when="@7.0", type=("build", "run"))

    # Historic dependencies
    depends_on("py-attrs@19.2.0:", when="@6.2:7.2", type=("build", "run"))
    depends_on("py-attrs@17.4.0:", when="@3.5:6.1", type=("build", "run"))
    depends_on("py-attrs@17.2.0:", when="@3.3:3.4", type=("build", "run"))
    depends_on("py-py@1.8.2:", when="@6:7.1", type=("build", "run"))
    depends_on("py-py@1.5.0:", when="@3.3:5", type=("build", "run"))
    depends_on("py-py@1.4.33:", when="@3.1.2:3.2.3,3.2.5:3.2", type=("build", "run"))
    depends_on("py-py@1.4.33:1.4", when="@3.2.4", type=("build", "run"))
    depends_on("py-py@1.4.29:", when="@:3.1.1", type=("build", "run"))
    depends_on("py-atomicwrites@1.0:", when="@5.3:7.1.2 platform=windows", type=("build", "run"))
    depends_on("py-atomicwrites@1.0:", when="@3.6:5.2", type=("build", "run"))
    depends_on("py-toml", when="@6", type=("build", "run"))
    depends_on("py-six@1.10.0:", when="@3.3:4", type=("build", "run"))
    depends_on("py-more-itertools@4.0.0:", when="@3.5.1:5", type=("build", "run"))
    depends_on("py-wcwidth", when="@4.5:5", type=("build", "run"))