Skip to content

[v3-1-test] Automatically add pydantic extra when installing airflow 2 in breeze (#60264)#60267

Merged
potiuk merged 1 commit intov3-1-testfrom
backport-336b816-v3-1-test
Jan 9, 2026
Merged

[v3-1-test] Automatically add pydantic extra when installing airflow 2 in breeze (#60264)#60267
potiuk merged 1 commit intov3-1-testfrom
backport-336b816-v3-1-test

Conversation

@github-actions
Copy link

@github-actions github-actions bot commented Jan 8, 2026

When installing Airflow 2 in Breeze, we need to add pydantic as
extra, because pydantic in Airflow 2 was not a required dependency
and installation of airflow even with constraints willl not
downgrade pydantic to the version that was supported in Airflow 2.

When we detect that airflow 2 is installed (either by specified
version number or by retrieving the version from the dist package)
we simply extend the extras with pydantic and that causes airflow
installation to downgrade pydantic to the version that is specified
in constraints of selected airflow version.
(cherry picked from commit 336b816)

Co-authored-by: Jarek Potiuk jarek@potiuk.com

…2 in breeze (#60264)

When installing Airflow 2 in Breeze, we need to add pydantic as
extra, because pydantic in Airflow 2 was not a required dependency
and installation of airflow even with constraints willl not
downgrade pydantic to the version that was supported in Airflow 2.

When we detect that airflow 2 is installed (either by specified
version number or by retrieving the version from the dist package)
we simply extend the extras with pydantic and that causes airflow
installation to downgrade pydantic to the version that is specified
in constraints of selected airflow version.
(cherry picked from commit 336b816)

Co-authored-by: Jarek Potiuk <jarek@potiuk.com>
@boring-cyborg boring-cyborg bot added area:dev-tools backport-to-v3-1-test Mark PR with this label to backport to v3-1-test branch labels Jan 8, 2026
@potiuk potiuk marked this pull request as ready for review January 9, 2026 00:12
@potiuk potiuk merged commit 1e6c420 into v3-1-test Jan 9, 2026
5 checks passed
@potiuk potiuk deleted the backport-336b816-v3-1-test branch January 9, 2026 00:12
ephraimbuddy pushed a commit that referenced this pull request Jan 13, 2026
…2 in breeze (#60264) (#60267)

When installing Airflow 2 in Breeze, we need to add pydantic as
extra, because pydantic in Airflow 2 was not a required dependency
and installation of airflow even with constraints willl not
downgrade pydantic to the version that was supported in Airflow 2.

When we detect that airflow 2 is installed (either by specified
version number or by retrieving the version from the dist package)
we simply extend the extras with pydantic and that causes airflow
installation to downgrade pydantic to the version that is specified
in constraints of selected airflow version.
(cherry picked from commit 336b816)

Co-authored-by: Jarek Potiuk <jarek@potiuk.com>
ephraimbuddy pushed a commit that referenced this pull request Jan 14, 2026
…2 in breeze (#60264) (#60267)

When installing Airflow 2 in Breeze, we need to add pydantic as
extra, because pydantic in Airflow 2 was not a required dependency
and installation of airflow even with constraints willl not
downgrade pydantic to the version that was supported in Airflow 2.

When we detect that airflow 2 is installed (either by specified
version number or by retrieving the version from the dist package)
we simply extend the extras with pydantic and that causes airflow
installation to downgrade pydantic to the version that is specified
in constraints of selected airflow version.
(cherry picked from commit 336b816)

Co-authored-by: Jarek Potiuk <jarek@potiuk.com>
ephraimbuddy pushed a commit that referenced this pull request Jan 16, 2026
…2 in breeze (#60264) (#60267)

When installing Airflow 2 in Breeze, we need to add pydantic as
extra, because pydantic in Airflow 2 was not a required dependency
and installation of airflow even with constraints willl not
downgrade pydantic to the version that was supported in Airflow 2.

When we detect that airflow 2 is installed (either by specified
version number or by retrieving the version from the dist package)
we simply extend the extras with pydantic and that causes airflow
installation to downgrade pydantic to the version that is specified
in constraints of selected airflow version.
(cherry picked from commit 336b816)

Co-authored-by: Jarek Potiuk <jarek@potiuk.com>
@ephraimbuddy ephraimbuddy added this to the Airflow 3.1.7 milestone Jan 28, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:dev-tools backport-to-v3-1-test Mark PR with this label to backport to v3-1-test branch

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants