From a9651ca19431f2a80c2926290ca54e4d8c61501f Mon Sep 17 00:00:00 2001 From: Will Thames Date: Tue, 12 Dec 2023 10:28:09 +1000 Subject: [PATCH] Add typing-extensions dependency to the package Split out test dependencies and type dependencies to validate that the required libraries are actually getting installed (pytest was working because mypy brought in typing-extensions, it should have failed) --- pyproject.toml | 3 ++- src/kubernetes_validate/version.py | 2 +- test-deps.txt | 4 ---- tox.ini | 2 +- types-deps.txt | 4 ++++ 5 files changed, 8 insertions(+), 7 deletions(-) create mode 100644 types-deps.txt diff --git a/pyproject.toml b/pyproject.toml index 300c594b..41053764 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -12,8 +12,9 @@ requires-python = ">=3.7" keywords = ["kubernetes", "schema", "validate", "validator"] license = {text = "Apache"} dependencies = [ - "PyYAML", + 'PyYAML', 'jsonschema', + 'typing-extensions' ] dynamic = ["version", "readme"] diff --git a/src/kubernetes_validate/version.py b/src/kubernetes_validate/version.py index a3233850..01764576 100644 --- a/src/kubernetes_validate/version.py +++ b/src/kubernetes_validate/version.py @@ -1 +1 @@ -__version__ = '1.28.1' +__version__ = '1.28.2' diff --git a/test-deps.txt b/test-deps.txt index 16b02ee0..da4bfde5 100644 --- a/test-deps.txt +++ b/test-deps.txt @@ -3,7 +3,3 @@ pytest pep8-naming tox wheel -mypy -types-jsonschema -types-setuptools -types-PyYAML diff --git a/tox.ini b/tox.ini index 3aa34966..6dc125ba 100644 --- a/tox.ini +++ b/tox.ini @@ -25,7 +25,7 @@ usedevelop = True recreate = False [testenv:mypy] -deps = -rtest-deps.txt +deps = -r types-deps.txt commands = mypy src \ --disallow-untyped-calls \ --disallow-untyped-defs \ diff --git a/types-deps.txt b/types-deps.txt new file mode 100644 index 00000000..b4006bea --- /dev/null +++ b/types-deps.txt @@ -0,0 +1,4 @@ +mypy +types-jsonschema +types-setuptools +types-PyYAML