From bebf01c04e9fd197f6c50dd64f9a261f313d325f Mon Sep 17 00:00:00 2001 From: Bob Halley Date: Tue, 16 Nov 2021 07:04:27 -0800 Subject: [PATCH] fix DoH requirements --- pyproject.toml | 4 +++- setup.cfg | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index 4c608374..06648a25 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -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'] diff --git a/setup.cfg b/setup.cfg index be56502a..4d88451c 100644 --- 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 -- 2.47.3