This is an automated email from the ASF dual-hosted git repository.

ephraimanierobi pushed a commit to branch v2-7-test
in repository https://gitbox.apache.org/repos/asf/airflow.git

commit 9536fad87b44003502d65c28dd4b581b225d921e
Author: Jarek Potiuk <[email protected]>
AuthorDate: Wed Aug 9 00:29:12 2023 +0200

    For now limit Pydantic to < 2.0.0 (#33235)
    
    * For now limit Pydantic to < 2.0.0
    
    Pydantic 2 adds few warnings/deprecations and until AWS dependencies
    are updated, we cannot move to it anyway.
    
    Limiting Pydantic to <2 for now should prevent the warnings and
    heep our dependencies in check.
    
    * Update setup.cfg
    
    Co-authored-by: Jed Cunningham 
<[email protected]>
    
    ---------
    
    Co-authored-by: Jed Cunningham 
<[email protected]>
    (cherry picked from commit a752c902861d9a829d7451cc69d1343cbe5b54dc)
---
 setup.cfg | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/setup.cfg b/setup.cfg
index a4eb4ac850..cdaad2dc2a 100644
--- a/setup.cfg
+++ b/setup.cfg
@@ -126,7 +126,10 @@ install_requires =
     pendulum>=2.0
     pluggy>=1.0
     psutil>=4.2.0
-    pydantic>=1.10.0
+    # We limit Pydantic to <2.0.0 until we can upgrade - there are limitation 
for Pydantic in AWS provider
+    # dependency (aws-sam-translator) - also we need to change orm-mode to 
from_attributes in definitions
+    # of the ORM models. See for the previous attempt 
https://github.com/apache/airflow/pull/33220
+    pydantic>=1.10.0,<2.0.0
     pygments>=2.0.1
     pyjwt>=2.0.0
     python-daemon>=3.0.0

Reply via email to