Skip to content

Pydantic v2 and FastAPI as core dependency - #41857

Merged
pierrejeambrun merged 5 commits into
apache:mainfrom
astronomer:pydantic-as-core-dependency
Aug 29, 2024
Merged

Pydantic v2 and FastAPI as core dependency#41857
pierrejeambrun merged 5 commits into
apache:mainfrom
astronomer:pydantic-as-core-dependency

Conversation

@pierrejeambrun

Copy link
Copy Markdown
Member

As discussed here #41798, pydantic v2 will be part of core requirement now. Mostly because fastapi requires pydantic. Even if fastapi can still (for now) work with pydantic v1, airflow 3 will only support pydantic v2.

@pierrejeambrunpierrejeambrun added this to the Airflow 3.0.0 milestone Aug 29, 2024
@pierrejeambrunpierrejeambrun changed the title Pydantic v2 as core dependencyPydantic v2 and FastAPI as core dependencyAug 29, 2024
@potiuk

potiuk commented Aug 29, 2024

Copy link
Copy Markdown
Member

The failing Test Open API has been fixed by #41856 (comment)

@pierrejeambrunpierrejeambrun mentioned this pull request Aug 29, 2024
@pierrejeambrun
pierrejeambrunforce-pushed the pydantic-as-core-dependency branch from 0d17367 to 2358a89CompareAugust 29, 2024 13:16
@pierrejeambrun

Copy link
Copy Markdown
MemberAuthor

Thanks @potiuk for the tips, rebased.

@pierrejeambrunpierrejeambrun added the AIP-84 Modern Rest API label Aug 29, 2024
@pierrejeambrun

Copy link
Copy Markdown
MemberAuthor

🤔 the db tests are still failing due to the unique constraint on dag run failing. Not sure how this is related to pydantic

@potiuk

potiuk commented Aug 29, 2024

Copy link
Copy Markdown
Member

🤔 the db tests are still failing due to the unique constraint on dag run failing. Not sure how this is related to pydantic

Was just looking at it - when you removed pydantic test, you have not removed all of it - the run_as_task is executed twice in the same test now.

@potiuk

Copy link
Copy Markdown
Member
Screenshot 2024-08-29 at 16 14 38

Comment threadtests/operators/test_python.py Outdated
@pierrejeambrun
pierrejeambrun merged commit 38e69c7 into apache:mainAug 29, 2024
@pierrejeambrun
pierrejeambrun deleted the pydantic-as-core-dependency branch August 29, 2024 15:52
@jscheffljscheffl added the airflow3.0:breaking Candidates for Airflow 3.0 that contain breaking changes label Aug 29, 2024
@pierrejeambrunpierrejeambrun mentioned this pull request Sep 20, 2024
12 tasks
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

AIP-84Modern Rest APIairflow3.0:breakingCandidates for Airflow 3.0 that contain breaking changesarea:dev-toolsarea:serialization

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants

@pierrejeambrun@potiuk@jedcunningham@jscheffl