This is an automated email from the ASF dual-hosted git repository.
potiuk pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/airflow.git
The following commit(s) were added to refs/heads/main by this push:
new 979d750b22 Temporarily limits WTForms to below 3.2.0 (#43233)
979d750b22 is described below
commit 979d750b226fccbc5dac174f5b9ac566ec663e56
Author: Jarek Potiuk <[email protected]>
AuthorDate: Mon Oct 21 21:19:17 2024 +0200
Temporarily limits WTForms to below 3.2.0 (#43233)
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
---
hatch_build.py | 9 ++++++++-
1 file changed, 8 insertions(+), 1 deletion(-)
diff --git a/hatch_build.py b/hatch_build.py
index 960f818d48..0e2e82026b 100644
--- a/hatch_build.py
+++ b/hatch_build.py
@@ -376,9 +376,16 @@ DEPENDENCIES = [
"fastapi[standard]>=0.112.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