Update sanity requirements (#82296)

* Update sanity requirements
* Drop Python 3.7 for mypy

Signed-off-by: Abhijeet Kasurde <akasurde@redhat.com>
pull/82181/merge
Abhijeet Kasurde 2 months ago committed by GitHub
parent ca168eb367
commit b8b12c4be3
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -1,5 +1,5 @@
# edit "sanity.ansible-doc.in" and generate with: hacking/update-sanity-requirements.py --test ansible-doc
Jinja2==3.1.2
MarkupSafe==2.1.3
packaging==23.2
Jinja2==3.1.3
MarkupSafe==2.1.5
packaging==24.0
PyYAML==6.0.1

@ -1,9 +1,9 @@
# edit "sanity.changelog.in" and generate with: hacking/update-sanity-requirements.py --test changelog
antsibull-changelog==0.23.0
antsibull-changelog==0.26.0
docutils==0.18.1
packaging==23.2
packaging==24.0
PyYAML==6.0.1
rstcheck==5.0.0
semantic-version==2.10.0
types-docutils==0.18.3
typing_extensions==4.8.0
typing_extensions==4.10.0

@ -1,4 +1,4 @@
# edit "sanity.import.plugin.in" and generate with: hacking/update-sanity-requirements.py --test import.plugin
Jinja2==3.1.2
MarkupSafe==2.1.3
Jinja2==3.1.3
MarkupSafe==2.1.5
PyYAML==6.0.1

@ -1,18 +1,18 @@
# edit "sanity.mypy.in" and generate with: hacking/update-sanity-requirements.py --test mypy
cffi==1.16.0
cryptography==41.0.4
Jinja2==3.1.2
MarkupSafe==2.1.3
mypy==1.5.1
cryptography==42.0.5
Jinja2==3.1.3
MarkupSafe==2.1.5
mypy==1.9.0
mypy-extensions==1.0.0
packaging==23.2
packaging==24.0
pycparser==2.21
tomli==2.0.1
types-backports==0.1.3
types-paramiko==3.3.0.0
types-PyYAML==6.0.12.12
types-requests==2.31.0.7
types-setuptools==68.2.0.0
types-toml==0.10.8.7
typing_extensions==4.8.0
urllib3==2.0.6
types-paramiko==3.4.0.20240311
types-PyYAML==6.0.12.20240311
types-requests==2.31.0.20240311
types-setuptools==69.2.0.20240317
types-toml==0.10.8.20240310
typing_extensions==4.10.0
urllib3==2.2.1

@ -1,2 +1,2 @@
# edit "sanity.pep8.in" and generate with: hacking/update-sanity-requirements.py --test pep8
pycodestyle==2.11.0
pycodestyle==2.11.1

@ -1,11 +1,11 @@
# edit "sanity.pylint.in" and generate with: hacking/update-sanity-requirements.py --test pylint
astroid==3.0.0
dill==0.3.7
isort==5.12.0
astroid==3.1.0
dill==0.3.8
isort==5.13.2
mccabe==0.7.0
platformdirs==3.11.0
pylint==3.0.1
platformdirs==4.2.0
pylint==3.1.0
PyYAML==6.0.1
tomli==2.0.1
tomlkit==0.12.1
typing_extensions==4.8.0
tomlkit==0.12.4
typing_extensions==4.10.0

@ -1,3 +1,3 @@
# edit "sanity.runtime-metadata.in" and generate with: hacking/update-sanity-requirements.py --test runtime-metadata
PyYAML==6.0.1
voluptuous==0.13.1
voluptuous==0.14.2

@ -1,6 +1,6 @@
# edit "sanity.validate-modules.in" and generate with: hacking/update-sanity-requirements.py --test validate-modules
antsibull-docs-parser==1.0.0
Jinja2==3.1.2
MarkupSafe==2.1.3
Jinja2==3.1.3
MarkupSafe==2.1.5
PyYAML==6.0.1
voluptuous==0.13.1
voluptuous==0.14.2

@ -1,4 +1,4 @@
# edit "sanity.yamllint.in" and generate with: hacking/update-sanity-requirements.py --test yamllint
pathspec==0.11.2
pathspec==0.12.1
PyYAML==6.0.1
yamllint==1.32.0
yamllint==1.35.1

@ -19,6 +19,7 @@ from . import (
from ...constants import (
CONTROLLER_PYTHON_VERSIONS,
REMOTE_ONLY_PYTHON_VERSIONS,
SUPPORTED_PYTHON_VERSIONS,
)
from ...test import (
@ -36,6 +37,7 @@ from ...util import (
ANSIBLE_TEST_CONTROLLER_ROOT,
ApplicationError,
is_subdir,
str_to_version,
)
from ...util_common import (
@ -83,6 +85,13 @@ class MypyTest(SanityMultipleVersion):
"""True if the test requires PyPI, otherwise False."""
return True
@property
def supported_python_versions(self) -> t.Optional[tuple[str, ...]]:
"""A tuple of supported Python versions or None if the test does not depend on specific Python versions."""
# Because the version of typeshed mypy use in 1.9 doesn't support 3.7, neither does mypy 1.9.
# see: https://mypy-lang.blogspot.com/2024/03/mypy-19-released.html
return tuple(version for version in SUPPORTED_PYTHON_VERSIONS if str_to_version(version) >= (3, 8))
def test(self, args: SanityConfig, targets: SanityTargets, python: PythonConfig) -> TestResult:
settings = self.load_processor(args, python.version)

@ -1,4 +1,4 @@
# edit "deprecated-config.requirements.in" and generate with: hacking/update-sanity-requirements.py --test deprecated-config
Jinja2==3.1.2
MarkupSafe==2.1.3
Jinja2==3.1.3
MarkupSafe==2.1.5
PyYAML==6.0.1

@ -1,10 +1,10 @@
# edit "package-data.requirements.in" and generate with: hacking/update-sanity-requirements.py --test package-data
antsibull-changelog==0.23.0
build==1.0.3
antsibull-changelog==0.26.0
build==1.1.1
docutils==0.18.1
Jinja2==3.1.2
MarkupSafe==2.1.3
packaging==23.2
Jinja2==3.1.3
MarkupSafe==2.1.5
packaging==24.0
pyproject_hooks==1.0.0
PyYAML==6.0.1
resolvelib==1.0.1
@ -13,5 +13,5 @@ semantic-version==2.10.0
setuptools==66.1.0
tomli==2.0.1
types-docutils==0.18.3
typing_extensions==4.8.0
wheel==0.41.2
typing_extensions==4.10.0
wheel==0.43.0

@ -1,9 +1,9 @@
# edit "pymarkdown.requirements.in" and generate with: hacking/update-sanity-requirements.py --test pymarkdown
application-properties==0.8.1
application_properties==0.8.2
Columnar==1.4.1
pymarkdownlnt==0.9.13.4
pymarkdownlnt==0.9.18
PyYAML==6.0.1
tomli==2.0.1
toolz==0.12.0
typing_extensions==4.8.0
wcwidth==0.2.8
toolz==0.12.1
typing_extensions==4.10.0
wcwidth==0.2.13

@ -1,2 +1,2 @@
# edit "update-bundled.requirements.in" and generate with: hacking/update-sanity-requirements.py --test update-bundled
packaging==23.2
packaging==24.0

Loading…
Cancel
Save