From a3d11a79731d822be74129c4a280d661cac4b5cc Mon Sep 17 00:00:00 2001 From: Manuela Kuhn <36827019+manuelakuhn@users.noreply.github.com> Date: Tue, 4 Jul 2023 16:33:06 +0200 Subject: py-requests: add 2.31.0 (#38563) --- .../repos/builtin/packages/py-requests/package.py | 32 ++++++++++++---------- 1 file changed, 18 insertions(+), 14 deletions(-) (limited to 'var') diff --git a/var/spack/repos/builtin/packages/py-requests/package.py b/var/spack/repos/builtin/packages/py-requests/package.py index f61f453700..891e3b6ecd 100644 --- a/var/spack/repos/builtin/packages/py-requests/package.py +++ b/var/spack/repos/builtin/packages/py-requests/package.py @@ -9,9 +9,11 @@ from spack.package import * class PyRequests(PythonPackage): """Python HTTP for Humans.""" - homepage = "http://python-requests.org" + homepage = "https://requests.readthedocs.io" pypi = "requests/requests-2.24.0.tar.gz" + git = "https://github.com/psf/requests" + version("2.31.0", sha256="942c5a758f98d790eaed1a29cb6eefc7ffb0d1cf7af05c3d2791656dbd6ad1e1") version("2.28.2", sha256="98b1b2782e3c6c4904938b84c0eb932721069dfdb9134313beff7c83c2df24bf") version("2.28.1", sha256="7c5599b102feddaa661c826c56ab4fee28bfd17f5abca1ebbe3e7f19d7c97983") version("2.28.0", sha256="d568723a7ebd25875d8d1eaf5dfa068cd2fc8194b2e483d7b1f7c81918dbec6b") @@ -30,19 +32,21 @@ class PyRequests(PythonPackage): variant("socks", default=False, description="SOCKS and HTTP proxy support") - depends_on("python@2.7:2.8,3.5:", type=("build", "run")) - depends_on("python@2.7:2.8,3.6:", type=("build", "run"), when="@2.26.0:2.27") - depends_on("python@3.7:", type=("build", "run"), when="@2.28.0:") + depends_on("python@3.7:", when="@2.28:", type=("build", "run")) depends_on("py-setuptools", type="build") + depends_on("py-charset-normalizer@2:3", when="@2.28.2:", type=("build", "run")) + depends_on("py-charset-normalizer@2", when="@2.26:2.28.1", type=("build", "run")) + depends_on("py-idna@2.5:3", when="@2.26:", type=("build", "run")) + depends_on("py-idna@2.5:2", when="@2.23:2.25", type=("build", "run")) + depends_on("py-idna@2.5:2.8", when="@2.16:2.22", type=("build", "run")) + depends_on("py-urllib3@1.21.1:2", when="@2.30:", type=("build", "run")) + depends_on("py-urllib3@1.21.1:1.26", when="@2.25:2.29", type=("build", "run")) + depends_on("py-urllib3@1.21.1:1.24,1.25.2:1.25", when="@2.16:2.24", type=("build", "run")) + depends_on("py-certifi@2017.4.17:", when="@2.16:", type=("build", "run")) + depends_on("py-pysocks@1.5.6,1.5.8:", when="+socks", type=("build", "run")) + + # Historical dependencies depends_on("py-chardet@3.0.2:4", type=("build", "run"), when="@2.25.1:2.25") - depends_on("py-chardet@3.0.2:3", type=("build", "run"), when="@2.23.0:2.25.0") - depends_on("py-chardet@3.0.2:3.0", type=("build", "run"), when="@2.16.0:2.22") - depends_on("py-charset-normalizer@2.0.0:2.0", type=("build", "run"), when="@2.26.0:") - depends_on("py-idna@2.5:3", type=("build", "run"), when="@2.26.0:") - depends_on("py-idna@2.5:2", type=("build", "run"), when="@2.23:2.25") - depends_on("py-idna@2.5:2.8", type=("build", "run"), when="@2.16.0:2.22") - depends_on("py-urllib3@1.21.1:1.26", type=("build", "run"), when="@2.25.0:") - depends_on("py-urllib3@1.21.1:1.24,1.25.2:1.25", type=("build", "run"), when="@2.16.0:2.24") - depends_on("py-certifi@2017.4.17:", type=("build", "run"), when="@2.16.0:") - depends_on("py-pysocks@1.5.6,1.5.8:", type=("build", "run"), when="+socks") + depends_on("py-chardet@3.0.2:3", type=("build", "run"), when="@2.23:2.25.0") + depends_on("py-chardet@3.0.2:3.0", type=("build", "run"), when="@2.16:2.22") -- cgit v1.2.3-60-g2f50