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:
parent
ef59293515
commit
18defb8301
1 changed files with 8 additions and 3 deletions
|
@ -20,11 +20,16 @@ attrs = "^19.3.0"
|
||||||
logbook = "^1.5.3"
|
logbook = "^1.5.3"
|
||||||
pygments = "^2.6.1"
|
pygments = "^2.6.1"
|
||||||
matrix-nio = { version = "^0.9.0", extras = [ "e2e" ] }
|
matrix-nio = { version = "^0.9.0", extras = [ "e2e" ] }
|
||||||
python-magic = "^0.4.15"
|
python-magic = { version = "^0.4.15", optional = true }
|
||||||
aiohttp = "^3.6.2"
|
aiohttp = { version = "^3.6.2", optional = true }
|
||||||
requests = "^2.23.0"
|
requests = { version = "^2.23.0", optional = true }
|
||||||
typing = { version = "^3.7.4", python = "<3.5" }
|
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]
|
[build-system]
|
||||||
requires = ["poetry>=0.12"]
|
requires = ["poetry>=0.12"]
|
||||||
build-backend = "poetry.masonry.api"
|
build-backend = "poetry.masonry.api"
|
||||||
|
|
Loading…
Reference in a new issue