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:
J. Nick Koston
2023-06-29 19:43:01 -05:00
committed by GitHub
parent 2d42ca301f
commit afd54d11d3
4 changed files with 53 additions and 4 deletions

View File

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