]> git.ipfire.org Git - thirdparty/dnspython.git/commitdiff
fix DoH requirements
authorBob Halley <halley@dnspython.org>
Tue, 16 Nov 2021 15:04:27 +0000 (07:04 -0800)
committerBob Halley <halley@dnspython.org>
Tue, 16 Nov 2021 15:04:27 +0000 (07:04 -0800)
pyproject.toml
setup.cfg

index 4c6083744c2534bd7717f835e81873c024f5706c..06648a255aac4a79807bf462e0dd2d520426468d 100644 (file)
@@ -30,6 +30,8 @@ exclude = [
 
 [tool.poetry.dependencies]
 python = "^3.6"
+httpx = {version=">=0.21.1", optional=true, python=">=3.6.2"}
+h2 = {version=">=4.1.0", optional=true, python=">=3.6.2"}
 requests-toolbelt = {version="^0.9.1", optional=true}
 requests = {version="^2.23.0", optional=true}
 idna = {version=">=2.1,<4.0", optional=true}
@@ -50,7 +52,7 @@ wheel = "^0.35.0"
 pylint = "^2.7.4"
 
 [tool.poetry.extras]
-doh = ['httpx[http2]', 'requests', 'requests-toolbelt']
+doh = ['httpx', 'h2', 'requests', 'requests-toolbelt']
 idna = ['idna']
 dnssec = ['cryptography']
 trio = ['trio']
index be56502a1c59717e2bac5ad26328c4b1cbdde9cd..4d88451c1a93484a44ec921cf99981f9be4113af 100644 (file)
--- a/setup.cfg
+++ b/setup.cfg
@@ -44,7 +44,7 @@ test_suite = tests
 setup_requires = setuptools>=44; wheel; setuptools_scm[toml]>=3.4.3
 
 [options.extras_require]
-DOH = requests; requests-toolbelt
+DOH = httpx>=0.21.1; h2>=4.1.0; requests; requests-toolbelt
 IDNA = idna>=2.1
 DNSSEC = cryptography>=2.6
 trio = trio>=0.14.0; sniffio>=1.1