This is an automated email from the ASF dual-hosted git repository.
kaxilnaik pushed a commit to branch v2-10-test
in repository https://gitbox.apache.org/repos/asf/airflow.git
The following commit(s) were added to refs/heads/v2-10-test by this push:
new 8b6a4503026 Backport: Bump Flask-AppBuilder to ``4.5.2`` (#43309)
(#43318)
8b6a4503026 is described below
commit 8b6a45030269b82cfd4f32505176f070dc111b1c
Author: Kaxil Naik <[email protected]>
AuthorDate: Wed Oct 23 18:17:27 2024 +0100
Backport: Bump Flask-AppBuilder to ``4.5.2`` (#43309) (#43318)
---
Dockerfile.ci | 7 +++++--
airflow/providers/fab/provider.yaml | 2 +-
dev/breeze/tests/test_packages.py | 6 +++---
generated/provider_dependencies.json | 2 +-
hatch_build.py | 7 -------
5 files changed, 10 insertions(+), 14 deletions(-)
diff --git a/Dockerfile.ci b/Dockerfile.ci
index 144392c5c5c..d23e810fa36 100644
--- a/Dockerfile.ci
+++ b/Dockerfile.ci
@@ -1203,8 +1203,11 @@ SHELL ["/bin/bash", "-o", "pipefail", "-o", "errexit",
"-o", "nounset", "-o", "n
ARG PYTHON_BASE_IMAGE
ARG AIRFLOW_IMAGE_REPOSITORY="https://github.com/apache/airflow"
-# By increasing this number we can do force build of all dependencies
-ARG DEPENDENCIES_EPOCH_NUMBER="11"
+# By increasing this number we can do force build of all dependencies.
+# NOTE! When you want to make sure dependencies are installed from scratch in
your PR after removing
+# some dependencies, you also need to set "disable image cache" in your PR to
make sure the image is
+# not built using the "main" version of those dependencies.
+ARG DEPENDENCIES_EPOCH_NUMBER="13"
# Make sure noninteractive debian install is used and language variables set
ENV PYTHON_BASE_IMAGE=${PYTHON_BASE_IMAGE} \
diff --git a/airflow/providers/fab/provider.yaml
b/airflow/providers/fab/provider.yaml
index ed8131cdb22..52c6dbe053b 100644
--- a/airflow/providers/fab/provider.yaml
+++ b/airflow/providers/fab/provider.yaml
@@ -51,7 +51,7 @@ dependencies:
# Every time we update FAB version here, please make sure that you review
the classes and models in
# `airflow/providers/fab/auth_manager/security_manager/override.py` with
their upstream counterparts.
# In particular, make sure any breaking changes, for example any new
methods, are accounted for.
- - flask-appbuilder==4.5.1
+ - flask-appbuilder==4.5.2
- flask-login>=0.6.2
- google-re2>=1.0
- jmespath>=0.7.0
diff --git a/dev/breeze/tests/test_packages.py
b/dev/breeze/tests/test_packages.py
index aad2428be7e..7a5b22c3bc7 100644
--- a/dev/breeze/tests/test_packages.py
+++ b/dev/breeze/tests/test_packages.py
@@ -166,7 +166,7 @@ def test_get_documentation_package_path():
"",
"""
"apache-airflow>=2.9.0",
- "flask-appbuilder==4.5.1",
+ "flask-appbuilder==4.5.2",
"flask-login>=0.6.2",
"flask>=2.2,<2.3",
"google-re2>=1.0",
@@ -179,7 +179,7 @@ def test_get_documentation_package_path():
"dev0",
"""
"apache-airflow>=2.9.0.dev0",
- "flask-appbuilder==4.5.1",
+ "flask-appbuilder==4.5.2",
"flask-login>=0.6.2",
"flask>=2.2,<2.3",
"google-re2>=1.0",
@@ -192,7 +192,7 @@ def test_get_documentation_package_path():
"beta0",
"""
"apache-airflow>=2.9.0b0",
- "flask-appbuilder==4.5.1",
+ "flask-appbuilder==4.5.2",
"flask-login>=0.6.2",
"flask>=2.2,<2.3",
"google-re2>=1.0",
diff --git a/generated/provider_dependencies.json
b/generated/provider_dependencies.json
index ef1f83af72e..111d6f0b7c9 100644
--- a/generated/provider_dependencies.json
+++ b/generated/provider_dependencies.json
@@ -550,7 +550,7 @@
"fab": {
"deps": [
"apache-airflow>=2.9.0",
- "flask-appbuilder==4.5.1",
+ "flask-appbuilder==4.5.2",
"flask-login>=0.6.2",
"flask>=2.2,<2.3",
"google-re2>=1.0",
diff --git a/hatch_build.py b/hatch_build.py
index a652c168820..3af7375e11b 100644
--- a/hatch_build.py
+++ b/hatch_build.py
@@ -438,13 +438,6 @@ DEPENDENCIES = [
# all parameters now are mandatory which make
AirflowDatabaseSessionInterface incompatible with this version.
"flask-session>=0.4.0,<0.6",
"flask-wtf>=1.1.0",
- # WTForms are limited to 3.2.0 because of the error in tests. We
technically do not need it directly
- # as this is a dependency of Flask-WTF, but we need to specify it here to
add the limitation
- # The issue to track it is
https://github.com/pallets-eco/wtforms/issues/863
- # Note. 3.2.0 has been broken because of imports
https://github.com/pallets-eco/wtforms/issues/861 which
- # was fixed in 3.2.1, but after import was fixed, the tests started to
work with 3.2.1
- # when the issue 863 is fixed, we should likely leave the line below and
specify !=3.2.0,!=3.2.1
- "wtforms>=3.1.0,<3.2.0",
# Flask 2.3 is scheduled to introduce a number of deprecation removals -
some of them might be breaking
# for our dependencies - notably `_app_ctx_stack` and `_request_ctx_stack`
removals.
# We should remove the limitation after 2.3 is released and our
dependencies are updated to handle it