Skip to content

Commit

Permalink
For now limit Pydantic to < 2.0.0 (#33235)
Browse files Browse the repository at this point in the history
* 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 a752c90)
  • Loading branch information
potiuk authored and ephraimbuddy committed Aug 9, 2023
1 parent 29dbd32 commit 9536fad
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 9536fad

Please sign in to comment.