Skip to content

Commit

Permalink
Add typing-extensions dependency to the package
Browse files Browse the repository at this point in the history
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)
  • Loading branch information
willthames committed Dec 12, 2023
1 parent 20744ad commit 43b75f4
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 7 deletions.
3 changes: 2 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"]

Expand Down
2 changes: 1 addition & 1 deletion src/kubernetes_validate/version.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = '1.28.1'
__version__ = '1.28.2'
4 changes: 0 additions & 4 deletions test-deps.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,3 @@ pytest
pep8-naming
tox
wheel
mypy
types-jsonschema
types-setuptools
types-PyYAML
2 changes: 1 addition & 1 deletion tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -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 \
Expand Down
4 changes: 4 additions & 0 deletions types-deps.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
mypy
types-jsonschema
types-setuptools
types-PyYAML

0 comments on commit 43b75f4

Please sign in to comment.