This is an automated email from the ASF dual-hosted git repository.
jscheffl 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 7daa556828 Temporarily limits WTForms to below 3.2.0 (#43233) (#43234)
7daa556828 is described below
commit 7daa556828593a252b2f0844e8cce32eccd6a253
Author: Jens Scheffler <[email protected]>
AuthorDate: Mon Oct 21 21:46:43 2024 +0200
Temporarily limits WTForms to below 3.2.0 (#43233) (#43234)
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
(cherry picked from commit 979d750b226fccbc5dac174f5b9ac566ec663e56)
Co-authored-by: Jarek Potiuk <[email protected]>
---
hatch_build.py | 9 ++++++++-
1 file changed, 8 insertions(+), 1 deletion(-)
diff --git a/hatch_build.py b/hatch_build.py
index 8aafdfd5c2..a652c16882 100644
--- a/hatch_build.py
+++ b/hatch_build.py
@@ -435,9 +435,16 @@ DEPENDENCIES = [
"dill>=0.2.2",
"flask-caching>=2.0.0",
# Flask-Session 0.6 add new arguments into the SqlAlchemySessionInterface
constructor as well as
- # all parameters now are mandatory which make
AirflowDatabaseSessionInterface incopatible with this version.
+ # 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