py-pytest: add 7.3.2 (#38522)

* py-pytest: add 7.3.2

* [@spackbot] updating style on behalf of manuelakuhn

* Swap py-importlib-metadata dependency order

* Restrict python version for older versions
This commit is contained in:
Manuela Kuhn 2023-06-23 22:07:38 +02:00 committed by GitHub
parent db8bf333d3
commit 0470fe545f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -11,7 +11,9 @@ class PyPytest(PythonPackage):
homepage = "https://pytest.org/" homepage = "https://pytest.org/"
pypi = "pytest/pytest-5.2.1.tar.gz" pypi = "pytest/pytest-5.2.1.tar.gz"
git = "https://github.com/pytest-dev/pytest"
version("7.3.2", sha256="ee990a3cc55ba808b80795a79944756f315c67c12b56abd3ac993a7b8c17030b")
version("7.2.1", sha256="d45e0952f3727241918b8fd0f376f5ff6b301cc0777c6f9a556935c92d8a7d42") version("7.2.1", sha256="d45e0952f3727241918b8fd0f376f5ff6b301cc0777c6f9a556935c92d8a7d42")
version("7.1.3", sha256="4f365fec2dff9c1162f834d9f18af1ba13062db0c708bf7b946f8a5c76180c39") version("7.1.3", sha256="4f365fec2dff9c1162f834d9f18af1ba13062db0c708bf7b946f8a5c76180c39")
version("6.2.5", sha256="131b36680866a76e6781d13f101efb86cf674ebb9762eb70d3082b6f29889e89") version("6.2.5", sha256="131b36680866a76e6781d13f101efb86cf674ebb9762eb70d3082b6f29889e89")
@ -35,10 +37,8 @@ class PyPytest(PythonPackage):
# python_requires # python_requires
depends_on("python@3.7:", when="@7.1:", type=("build", "run")) depends_on("python@3.7:", when="@7.1:", type=("build", "run"))
depends_on("python@3.6:", when="@6.2:", type=("build", "run")) # see https://github.com/pytest-dev/pytest/releases/tag/7.3.2
depends_on("python@3.5:", when="@5:6.1", type=("build", "run")) depends_on("python@:3.11", when="@:7.3.1", type=("build", "run"))
depends_on("python@2.7:2.8,3.4:", when="@3.3:4", type=("build", "run"))
depends_on("python@2.6:2.8,3.3:", when="@:3.2", type=("build", "run"))
# setup_requires # setup_requires
depends_on("py-setuptools@45.0:", when="@7:", type=("build", "run")) depends_on("py-setuptools@45.0:", when="@7:", type=("build", "run"))
@ -51,9 +51,6 @@ class PyPytest(PythonPackage):
depends_on("py-setuptools-scm", when="@3.1:", type="build") depends_on("py-setuptools-scm", when="@3.1:", type="build")
# install_requires # install_requires
depends_on("py-attrs@19.2.0:", when="@6.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-iniconfig", when="@6.0:", type=("build", "run")) depends_on("py-iniconfig", when="@6.0:", type=("build", "run"))
depends_on("py-packaging", when="@4.6:", 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:1", when="@6.2:", type=("build", "run"))
@ -66,12 +63,15 @@ class PyPytest(PythonPackage):
depends_on("py-pluggy@0.5:0.6", when="@:3.6.3", 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-colorama", when="platform=windows", type=("build", "run"))
depends_on("py-exceptiongroup@1:", when="@7: ^python@:3.10", type=("build", "run")) depends_on("py-exceptiongroup@1:", when="@7: ^python@:3.10", type=("build", "run"))
depends_on("py-importlib-metadata@0.12:", when="@4.6:5.0", 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="@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.1: ^python@:3.10", type=("build", "run"))
depends_on("py-tomli@1:", when="@7.0", type=("build", "run")) depends_on("py-tomli@1:", when="@7.0", type=("build", "run"))
# Historic dependencies # 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.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.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:", when="@3.1.2:3.2.3,3.2.5:3.2", type=("build", "run"))