From 603ec40ab1f7e3a38e231208ce59fb1ce9cc9b02 Mon Sep 17 00:00:00 2001 From: Jen Herting Date: Mon, 6 Jun 2022 17:34:11 -0400 Subject: [PATCH] [py-httpx] added version 0.22.0 (#29806) * [py-httpx] python dependencies are type=('build', 'run') * [py-httpx] py-wheel is now implied by PythonPackage * [py-httpx] fixed older version dependencies * [py-httpx] added version 0.22.0 --- .../builtin/packages/py-httpx/package.py | 34 +++++++++++++++---- 1 file changed, 28 insertions(+), 6 deletions(-) diff --git a/var/spack/repos/builtin/packages/py-httpx/package.py b/var/spack/repos/builtin/packages/py-httpx/package.py index 6266bd0edd..7359213cb1 100644 --- a/var/spack/repos/builtin/packages/py-httpx/package.py +++ b/var/spack/repos/builtin/packages/py-httpx/package.py @@ -13,12 +13,34 @@ class PyHttpx(PythonPackage): homepage = "https://github.com/encode/httpx" pypi = "httpx/httpx-0.15.2.tar.gz" + version('0.22.0', sha256='d8e778f76d9bbd46af49e7f062467e3157a5a3d2ae4876a4bbfd8a51ed9c9cb4') version('0.15.2', sha256='713a2deaf96d85bbd4a1fbdf0edb27d6b4ee2c9aaeda8433042367e4b9e1628d') version('0.11.1', sha256='7d2bfb726eeed717953d15dddb22da9c2fcf48a4d70ba1456aa0a7faeda33cf7') - depends_on('py-setuptools', type='build') - depends_on('py-wheel', type='build') - depends_on('py-certifi') - depends_on('py-sniffio') - depends_on('py-httpcore@0.11:') - depends_on('py-rfc3986+idna2008@1.3:1') + variant('http2', default=False, when='@0.15.2:', description='Enable http2 support') + + depends_on('python@3.6:', type=('build', 'run')) + depends_on('py-setuptools', type='build') + depends_on('py-certifi', type=('build', 'run')) + depends_on('py-charset-normalizer', type=('build', 'run'), when='@0.22.0:') + depends_on('py-async-generator', type=('build', 'run'), when='@0.22.0:^python@:3.6') + + depends_on('py-httpcore@0.11.0:0.11', type=('build', 'run'), when='@0.15.2') + depends_on('py-httpcore@0.14.5:0.14', type=('build', 'run'), when='@0.22.0:') + + depends_on('py-sniffio@1.0:1', type=('build', 'run'), when='@0.11.1') + depends_on('py-sniffio', type=('build', 'run'), when='@0.15.2:') + + depends_on('py-rfc3986@1.3:1', type=('build', 'run'), when='@0.11.1') + depends_on('py-rfc3986+idna2008@1.3:1', type=('build', 'run'), when='@0.15.2:') + + depends_on('py-h2@3.0:3', type=('build', 'run'), when='@0.11.1') + depends_on('py-h2@3.0:3', type=('build', 'run'), when='@0.15.2+http2') + depends_on('py-h2@3.0:4', type=('build', 'run'), when='@0.22.0:+http2') + + # Version 0.11.1 only dependencies + depends_on('py-hstspreload', type=('build', 'run'), when='@0.11.1') + depends_on('py-chardet@3.0:3', type=('build', 'run'), when='@0.11.1') + depends_on('py-h11@0.8:0.9', type=('build', 'run'), when='@0.11.1') + depends_on('py-idna@2.0:2', type=('build', 'run'), when='@0.11.1') + depends_on('py-urllib3@1.0:1', type=('build', 'run'), when='@0.11.1')