From 18defb83011681228e72d9ffe59952ff8a820289 Mon Sep 17 00:00:00 2001 From: Jonas Witschel Date: Mon, 30 Mar 2020 22:46:14 +0200 Subject: [PATCH] pyproject.toml: make python-magic, aiohttp and requests optional These dependencies are only required for the contrib scripts, so they don't need to be installed for the main WeeChat script. --- pyproject.toml | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index 33fcf3a..28f59af 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -20,11 +20,16 @@ attrs = "^19.3.0" logbook = "^1.5.3" pygments = "^2.6.1" matrix-nio = { version = "^0.9.0", extras = [ "e2e" ] } -python-magic = "^0.4.15" -aiohttp = "^3.6.2" -requests = "^2.23.0" +python-magic = { version = "^0.4.15", optional = true } +aiohttp = { version = "^3.6.2", optional = true } +requests = { version = "^2.23.0", optional = true } typing = { version = "^3.7.4", python = "<3.5" } +[tool.poetry.extras] +matrix_decrypt = ["requests"] +matrix_sso_helper = ["aiohttp"] +matrix_upload = ["python-magic", "requests"] + [build-system] requires = ["poetry>=0.12"] build-backend = "poetry.masonry.api"