From af8ca90356d0e7439c528018d72f1d844af47a93 Mon Sep 17 00:00:00 2001 From: Sebastian Goscik Date: Fri, 18 Mar 2022 22:51:48 +0000 Subject: [PATCH] Adjusting typing dependencies to fix CI --- poetry.lock | 60 ++++++++++++++++++++++++++++++-------------------- pyproject.toml | 7 ++++-- 2 files changed, 41 insertions(+), 26 deletions(-) diff --git a/poetry.lock b/poetry.lock index 64791f0..cfb0b46 100644 --- a/poetry.lock +++ b/poetry.lock @@ -57,7 +57,7 @@ name = "appnope" version = "0.1.2" description = "Disable App Nap on macOS >= 10.9" category = "main" -optional = false +optional = true python-versions = "*" [[package]] @@ -65,7 +65,7 @@ name = "asttokens" version = "2.0.5" description = "Annotate AST trees with source code positions" category = "main" -optional = false +optional = true python-versions = "*" [package.dependencies] @@ -117,7 +117,7 @@ name = "backcall" version = "0.2.0" description = "Specifications for callback functions passed in to an API" category = "main" -optional = false +optional = true python-versions = "*" [[package]] @@ -270,7 +270,7 @@ name = "decorator" version = "5.1.1" description = "Decorators for Humans" category = "main" -optional = false +optional = true python-versions = ">=3.5" [[package]] @@ -294,7 +294,7 @@ name = "executing" version = "0.8.3" description = "Get the currently executing AST node of a frame, and other information" category = "main" -optional = false +optional = true python-versions = "*" [[package]] @@ -390,7 +390,7 @@ name = "ipdb" version = "0.13.9" description = "IPython-enabled pdb" category = "main" -optional = false +optional = true python-versions = ">=2.7" [package.dependencies] @@ -403,7 +403,7 @@ name = "ipython" version = "8.1.1" description = "IPython: Productive Interactive Computing" category = "main" -optional = false +optional = true python-versions = ">=3.8" [package.dependencies] @@ -452,7 +452,7 @@ name = "jedi" version = "0.18.1" description = "An autocompletion tool for Python that can be used for text editors." category = "main" -optional = false +optional = true python-versions = ">=3.6" [package.dependencies] @@ -497,7 +497,7 @@ name = "matplotlib-inline" version = "0.1.3" description = "Inline Matplotlib backend for Jupyter" category = "main" -optional = false +optional = true python-versions = ">=3.5" [package.dependencies] @@ -568,7 +568,7 @@ name = "parso" version = "0.8.3" description = "A Python Parser" category = "main" -optional = false +optional = true python-versions = ">=3.6" [package.extras] @@ -588,7 +588,7 @@ name = "pexpect" version = "4.8.0" description = "Pexpect allows easy control of interactive console applications." category = "main" -optional = false +optional = true python-versions = "*" [package.dependencies] @@ -599,7 +599,7 @@ name = "pickleshare" version = "0.7.5" description = "Tiny 'shelve'-like database with concurrency support" category = "main" -optional = false +optional = true python-versions = "*" [[package]] @@ -666,7 +666,7 @@ name = "prompt-toolkit" version = "3.0.28" description = "Library for building powerful interactive command lines in Python" category = "main" -optional = false +optional = true python-versions = ">=3.6.2" [package.dependencies] @@ -677,7 +677,7 @@ name = "ptyprocess" version = "0.7.0" description = "Run a subprocess in a pseudo terminal" category = "main" -optional = false +optional = true python-versions = "*" [[package]] @@ -685,7 +685,7 @@ name = "pure-eval" version = "0.2.2" description = "Safely evaluate AST nodes without side effects" category = "main" -optional = false +optional = true python-versions = "*" [package.extras] @@ -757,7 +757,7 @@ name = "pygments" version = "2.11.2" description = "Pygments is a syntax highlighting package written in Python." category = "main" -optional = false +optional = true python-versions = ">=3.5" [[package]] @@ -992,7 +992,7 @@ name = "stack-data" version = "0.2.0" description = "Extract data from python stack frames and tracebacks for informative displays" category = "main" -optional = false +optional = true python-versions = "*" [package.dependencies] @@ -1008,7 +1008,7 @@ name = "toml" version = "0.10.2" description = "Python Library for Tom's Obvious, Minimal Language" category = "main" -optional = false +optional = true python-versions = ">=2.6, !=3.0.*, !=3.1.*, !=3.2.*" [[package]] @@ -1076,7 +1076,7 @@ name = "traitlets" version = "5.1.1" description = "Traitlets Python configuration system" category = "main" -optional = false +optional = true python-versions = ">=3.7" [package.extras] @@ -1119,12 +1119,20 @@ dev = ["autoflake (>=1.3.1,<2.0.0)", "flake8 (>=3.8.3,<4.0.0)"] doc = ["mkdocs (>=1.1.2,<2.0.0)", "mkdocs-material (>=5.4.0,<6.0.0)", "markdown-include (>=0.5.1,<0.6.0)"] test = ["shellingham (>=1.3.0,<2.0.0)", "pytest (>=4.4.0,<5.4.0)", "pytest-cov (>=2.10.0,<3.0.0)", "coverage (>=5.2,<6.0)", "pytest-xdist (>=1.32.0,<2.0.0)", "pytest-sugar (>=0.9.4,<0.10.0)", "mypy (==0.910)", "black (>=19.10b0,<20.0b0)", "isort (>=5.0.6,<6.0.0)"] +[[package]] +name = "types-cryptography" +version = "3.3.18" +description = "Typing stubs for cryptography" +category = "main" +optional = false +python-versions = "*" + [[package]] name = "types-pytz" version = "2021.3.5" description = "Typing stubs for pytz" category = "main" -optional = false +optional = true python-versions = "*" [[package]] @@ -1195,7 +1203,7 @@ name = "wcwidth" version = "0.2.5" description = "Measures the displayed width of unicode strings in a terminal" category = "main" -optional = false +optional = true python-versions = "*" [[package]] @@ -1231,13 +1239,13 @@ docs = ["sphinx", "jaraco.packaging (>=8.2)", "rst.linker (>=1.9)"] testing = ["pytest (>=6)", "pytest-checkdocs (>=2.4)", "pytest-flake8", "pytest-cov", "pytest-enabler (>=1.0.1)", "jaraco.itertools", "func-timeout", "pytest-black (>=0.3.7)", "pytest-mypy"] [extras] -dev = ["tox", "pre-commit", "virtualenv", "pip", "twine", "toml", "bump2version", "tox-asdf"] -test = ["pytest", "black", "isort", "mypy", "flake8", "flake8-docstrings", "pytest-cov"] +dev = ["tox", "pre-commit", "virtualenv", "pip", "twine", "toml", "bump2version", "tox-asdf", "ipdb"] +test = ["pytest", "black", "isort", "mypy", "flake8", "flake8-docstrings", "pytest-cov", "types-pytz"] [metadata] lock-version = "1.1" python-versions = ">=3.9.0,<4.0" -content-hash = "a54d30e6000120d66452041a2a2283c50c4086b5bfc6f6e2ea3d23d0c92e50f1" +content-hash = "46d8a3be305d84d94aaba9502d47be0db432269de41f0794abd2f4cb28ac7338" [metadata.files] aiocron = [ @@ -2024,6 +2032,10 @@ typer = [ {file = "typer-0.4.0-py3-none-any.whl", hash = "sha256:d81169725140423d072df464cad1ff25ee154ef381aaf5b8225352ea187ca338"}, {file = "typer-0.4.0.tar.gz", hash = "sha256:63c3aeab0549750ffe40da79a1b524f60e08a2cbc3126c520ebf2eeaf507f5dd"}, ] +types-cryptography = [ + {file = "types-cryptography-3.3.18.tar.gz", hash = "sha256:448feaf9ae31226149bc6bce1cf8fff54da661ef04837f7c0c316829885c3628"}, + {file = "types_cryptography-3.3.18-py3-none-any.whl", hash = "sha256:d745cba4b1d0ec0a141b8b7693f887a02c332d8f6036c100db3cac98443e2ddb"}, +] types-pytz = [ {file = "types-pytz-2021.3.5.tar.gz", hash = "sha256:fef8de238ee95135952229a2a23bfb87bd63d5a6c8598106a46cfcf48f069ea8"}, {file = "types_pytz-2021.3.5-py3-none-any.whl", hash = "sha256:8831f689379ac9e2a62668157381379ed74b3702980e08e71f8673c179c4e3c7"}, diff --git a/pyproject.toml b/pyproject.toml index f9865dc..d0602d0 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -43,6 +43,7 @@ pyunifiprotect = "^3.2.1" aiocron = "^1.8" ipdb = {version = "^0.13.9", optional = true} types-pytz = {version = "^2021.3.5", optional = true} +types-cryptography = {version = "^3.3.18", optional = true} [tool.poetry.extras] test = [ @@ -52,10 +53,12 @@ test = [ "mypy", "flake8", "flake8-docstrings", - "pytest-cov" + "pytest-cov", + "types-pytz", + "types-cryptography" ] -dev = ["tox", "pre-commit", "virtualenv", "pip", "twine", "toml", "bump2version", "tox-asdf", "ipdb", "types-pytz"] +dev = ["tox", "pre-commit", "virtualenv", "pip", "twine", "toml", "bump2version", "tox-asdf", "ipdb"] [tool.poetry.scripts] unifi-protect-backup = 'unifi_protect_backup.cli:main'