]> git.ipfire.org Git - thirdparty/dnspython.git/commitdiff
match setup.py's extra_requires functionality
authorkimbo <kimballleavitt@gmail.com>
Thu, 7 May 2020 15:21:07 +0000 (09:21 -0600)
committerkimbo <kimballleavitt@gmail.com>
Thu, 7 May 2020 15:21:07 +0000 (09:21 -0600)
pyproject.toml

index ab9177d0b810f78a56fd2d51a23b525ffc503013..f84ac9d133656ee2bef6c17842e8c132914734be 100644 (file)
@@ -10,16 +10,21 @@ packages = [
 
 [tool.poetry.dependencies]
 python = "^3.6"
-requests-toolbelt = "^0.9.1"
-requests = "^2.23.0"
-idna = "^2.1"
-cryptography = "^2.6"
+requests-toolbelt = {version="^0.9.1", optional=true}
+requests = {version="^2.23.0", optional=true}
+idna = {version="^2.1", optional=true}
+cryptography = {version="^2.6", optional=true}
 
 [tool.poetry.dev-dependencies]
 mypy = "^0.770"
 pytest = "^5.4.1"
 flake8 = "^3.7.9"
 
+[tool.poetry.extras]
+doh = ['requests', 'requests-toolbelt']
+idna = ['idna']
+dnssec = ['cryptography']
+
 [build-system]
 requires = ["poetry>=0.12"]
 build-backend = "poetry.masonry.api"