Skip to content

Conversation

@potiuk
Copy link
Member

@potiuk potiuk commented Nov 4, 2024

Breeze sometimes creates "internal" virtualenvs in local ".build"
directory when it needs - for example in order to run k8s tests
or for release management commands.

This PR adds capability to switch breeze to use uv instead of
pip to install depdendencies in those envs.

You can now switch breeze to use uv by breeze setup config --use-uv
and switch back to pip by breeze setup config --no-use-uv.

(cherry picked from commit potiuk@a2a0ef0)


^ Add meaningful description above
Read the Pull Request Guidelines for more information.
In case of fundamental code changes, an Airflow Improvement Proposal (AIP) is needed.
In case of a new dependency, check compliance with the ASF 3rd Party License Policy.
In case of backwards incompatible changes please leave a note in a newsfragment file, named {pr_number}.significant.rst or {issue_number}.significant.rst, in newsfragments.

@boring-cyborg boring-cyborg bot added area:dev-tools area:production-image Production image improvements and fixes labels Nov 4, 2024
@potiuk potiuk changed the title Allow to switch breeze to use uv internally to create virtualenvs (#43587) [BACKPORT] Allow to switch breeze to use uv internally to create virtualenvs (#43587) Nov 4, 2024
@potiuk
Copy link
Member Author

potiuk commented Nov 4, 2024

Backport of #43587 (depends on #43623

…ache#43587)

Breeze sometimes creates "internal" virtualenvs in local ".build"
directory when it needs - for example in order to run k8s tests
or for release management commands.

This PR adds capability to switch breeze to use `uv` instead of
`pip` to install depdendencies in those envs.

You can now switch breeze to use uv by `breeze setup config --use-uv`
and switch back to pip by `breeze setup config --no-use-uv`.

(cherry picked from commit a2a0ef0)
@potiuk potiuk force-pushed the allow-to-switch-uv-backport branch from a7ddca9 to e94d25f Compare November 4, 2024 08:57
@potiuk potiuk merged commit c3d246b into apache:v2-10-test Nov 4, 2024
@potiuk potiuk deleted the allow-to-switch-uv-backport branch November 4, 2024 08:59
utkarsharma2 pushed a commit that referenced this pull request Dec 4, 2024
…3587) (#43624)

Breeze sometimes creates "internal" virtualenvs in local ".build"
directory when it needs - for example in order to run k8s tests
or for release management commands.

This PR adds capability to switch breeze to use `uv` instead of
`pip` to install depdendencies in those envs.

You can now switch breeze to use uv by `breeze setup config --use-uv`
and switch back to pip by `breeze setup config --no-use-uv`.

(cherry picked from commit a2a0ef0)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:dev-tools area:production-image Production image improvements and fixes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants