Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pydantic v2 and FastAPI as core dependency #41857

Merged
merged 5 commits into from
Aug 29, 2024

Conversation

pierrejeambrun
Copy link
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.

@pierrejeambrun pierrejeambrun added this to the Airflow 3.0.0 milestone Aug 29, 2024
@pierrejeambrun pierrejeambrun changed the title Pydantic v2 as core dependency Pydantic v2 and FastAPI as core dependency Aug 29, 2024
@potiuk
Copy link
Member

potiuk commented Aug 29, 2024

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

@pierrejeambrun
Copy link
Member Author

Thanks @potiuk for the tips, rebased.

@pierrejeambrun pierrejeambrun added the AIP-84 Modern Rest API label Aug 29, 2024
@pierrejeambrun
Copy link
Member Author

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

@potiuk
Copy link
Member

potiuk commented Aug 29, 2024

🤔 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
Member

potiuk commented Aug 29, 2024

Screenshot 2024-08-29 at 16 14 38

@pierrejeambrun pierrejeambrun merged commit 38e69c7 into apache:main Aug 29, 2024
107 checks passed
@pierrejeambrun pierrejeambrun deleted the pydantic-as-core-dependency branch August 29, 2024 15:52
@jscheffl jscheffl added the airflow3.0:breaking Candidates for Airflow 3.0 that contain breaking changes label Aug 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
AIP-84 Modern Rest API airflow3.0:breaking Candidates for Airflow 3.0 that contain breaking changes area:core-operators Operators, Sensors and hooks within Core Airflow area:dev-tools area:serialization
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants