This is an automated email from the ASF dual-hosted git repository. ephraimanierobi pushed a commit to branch v2-8-test in repository https://gitbox.apache.org/repos/asf/airflow.git
commit 23ebf3e39e458eba0f831b3c452a0e2da020ae02 Author: Jarek Potiuk <[email protected]> AuthorDate: Sun Feb 25 18:28:27 2024 +0100 Bump min versions of openapi validators (#37691) The openapi validators in older versions do not work well for some moto tests which use the validators. Bumping specifically the min versions of those validators should help with better dependency resolving (wheb using uv and lowest transitive versions strategy it will downgrade the validators and will cause the tests to fail as seen in #37683. Those are only test and development dependencies and we already use the min version specified in our CI, so it should have no impact on production airflow (but should help wiht CI/dependency resolution) (cherry picked from commit f3159df40627d591f877c1b7d49e6cbc4b176cf7) --- .pre-commit-config.yaml | 2 +- airflow/providers/amazon/provider.yaml | 2 ++ generated/provider_dependencies.json | 4 +++- pyproject.toml | 2 ++ 4 files changed, 8 insertions(+), 2 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index e558331a86..28f5f4efaa 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -374,7 +374,7 @@ repos: name: Lint OpenAPI using openapi-spec-validator entry: openapi-spec-validator --schema 3.0.0 language: python - additional_dependencies: ['openapi-spec-validator>=0.6.0'] + additional_dependencies: ['openapi-spec-validator>=0.7.1', 'openapi-schema-validator>=0.6.2'] files: ^airflow/api_connexion/openapi/ - id: lint-dockerfile name: Lint Dockerfile diff --git a/airflow/providers/amazon/provider.yaml b/airflow/providers/amazon/provider.yaml index eb9394891a..c22ce19ca4 100644 --- a/airflow/providers/amazon/provider.yaml +++ b/airflow/providers/amazon/provider.yaml @@ -122,6 +122,8 @@ devel-dependencies: - mypy-boto3-redshift-data>=1.33.0 - mypy-boto3-s3>=1.33.0 - s3fs>=2023.10.0 + - openapi-schema-validator>=0.6.2 + - openapi-spec-validator>=0.7.1 integrations: - integration-name: Amazon Athena diff --git a/generated/provider_dependencies.json b/generated/provider_dependencies.json index b9eefc68a6..84b4bf955c 100644 --- a/generated/provider_dependencies.json +++ b/generated/provider_dependencies.json @@ -46,7 +46,9 @@ "mypy-boto3-rds>=1.33.0", "mypy-boto3-redshift-data>=1.33.0", "mypy-boto3-s3>=1.33.0", - "s3fs>=2023.10.0" + "s3fs>=2023.10.0", + "openapi-schema-validator>=0.6.2", + "openapi-spec-validator>=0.7.1" ], "cross-providers-deps": [ "apache.hive", diff --git a/pyproject.toml b/pyproject.toml index acb3237d88..22e3e244c1 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -569,6 +569,8 @@ amazon = [ # source: airflow/providers/amazon/provider.yaml "mypy-boto3-redshift-data>=1.33.0", "mypy-boto3-s3>=1.33.0", "s3fs>=2023.10.0", + "openapi-schema-validator>=0.6.2", + "openapi-spec-validator>=0.7.1", ] apache-beam = [ # source: airflow/providers/apache/beam/provider.yaml "apache-beam>=2.53.0;python_version != \"3.12\"",
