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.
This commit is contained in:
Jonas Witschel 2020-03-30 22:46:14 +02:00
parent ef59293515
commit 18defb8301

View file

@ -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"