mirror of
https://github.com/python-kasa/python-kasa.git
synced 2025-10-14 19:38:02 +00:00
Add optional kasa-crypt dependency for speedups (#464)
If installed, use the optimized protocol encryption procedures implemented as a C extension by kasa-crypt (https://pypi.org/project/kasa-crypt/
This commit is contained in:
@@ -25,7 +25,8 @@ asyncclick = ">=8"
|
||||
pydantic = "^1"
|
||||
|
||||
# speed ups
|
||||
orjson = { "version" = ">=3.9.1", optional = true, extras = ["speedups"] }
|
||||
orjson = { "version" = ">=3.9.1", optional = true }
|
||||
kasa-crypt = { "version" = ">=0.2.0", optional = true }
|
||||
|
||||
# required only for docs
|
||||
sphinx = { version = "^4", optional = true }
|
||||
@@ -50,6 +51,7 @@ coverage = {version = "*", extras = ["toml"]}
|
||||
|
||||
[tool.poetry.extras]
|
||||
docs = ["sphinx", "sphinx_rtd_theme", "sphinxcontrib-programoutput", "myst-parser", "docutils"]
|
||||
speedups = ["orjson", "kasa-crypt"]
|
||||
|
||||
|
||||
[tool.isort]
|
||||
|
Reference in New Issue
Block a user