Skip to content

[BACKPORT] make Breeze installation and reinstallation support both uv and pipx … - #43626

Merged
potiuk merged 1 commit into
apache:v2-10-testfrom
potiuk:breeze-reinstallation-with-uv
Nov 4, 2024
Merged

[BACKPORT] make Breeze installation and reinstallation support both uv and pipx …#43626
potiuk merged 1 commit into
apache:v2-10-testfrom
potiuk:breeze-reinstallation-with-uv

Conversation

@potiuk

Copy link
Copy Markdown
Member

…(#43607)

So far breeze fully supported only pipx installation. For example it would reinstall itself automatically with pipx if you attempted to run it from another workspace/checked out repository of Airflow, and it only provided instructions for pipx.

With this PR:

  • the uv tool is preferred way to install breeze
  • the pipx is PSF-governance managed alternative
  • breeze will reinstall itself using uv if it has been installed with uv before when it is run from a different workspace or different airflow repo checked out in another folder

Also documentation is updated to make uv the recommended tool and describing how to install it - with pipx provided as an alternative.

Warning is printed in case pre-commit-uv is not installed with the pre-commit (pre-commit-uv significantly speeds up installation of the venvs by pre-commit). This warning also provides instructions how to install it.

(cherry picked from commit ddc5670)


^ 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.

@potiuk
potiukforce-pushed the breeze-reinstallation-with-uv branch from 9640174 to 5d58c49CompareNovember 4, 2024 09:27
@potiuk

Copy link
Copy Markdown
MemberAuthor

I've added a few more things in CI/selectuve to sync with latest version in main. I could have cherry-picked individual PRs but at this stage it's easier to just "make it works" in v2-10-test as there are significant non-cherry-pickable changes (new UI, new providers support etc. - all of which are not usable /harmful in v2-10-test.

@potiukpotiuk changed the title mAKe Breeze installation and reinstallation support both uv and pipx …[BACKPORT] make Breeze installation and reinstallation support both uv and pipx …Nov 4, 2024
@potiuk

Copy link
Copy Markdown
MemberAuthor

Backport of #43607

@potiuk
potiukforce-pushed the breeze-reinstallation-with-uv branch from 5d58c49 to 437bda8CompareNovember 4, 2024 09:55
@potiuk

Copy link
Copy Markdown
MemberAuthor

ok. looks like we have now full support for uv in breeze / venv also for the v2-10-test branch after we merge it.

@potiuk
potiukforce-pushed the breeze-reinstallation-with-uv branch from 437bda8 to 6628fa2CompareNovember 4, 2024 10:51
…pache#43607)
So far `breeze` fully supported only `pipx` installation. For
example it would reinstall itself automatically with pipx if you
attempted to run it from another workspace/checked out repository
of Airflow, and it only provided instructions for pipx.
With this PR:
* the `uv tool` is preferred way to install breeze
* the `pipx` is PSF-governance managed alternative
* breeze will reinstall itself using uv if it has been installed with uv
before when it is run from a different workspace or different
airflow repo checked out in another folder
Also documentation is updated to make `uv` the recommended tool and
describing how to install it - with `pipx` provided as an alternative.
Warning is printed in case pre-commit-uv is not installed with the
pre-commit (pre-commit-uv significantly speeds up installation of
the venvs by pre-commit). This warning also provides instructions
how to install it.
(cherry picked from commit ddc5670)
@potiuk
potiukforce-pushed the breeze-reinstallation-with-uv branch from 6628fa2 to 9b7412fCompareNovember 4, 2024 11:16
@potiuk
potiuk merged commit 07a080e into apache:v2-10-testNov 4, 2024
@potiuk
potiuk deleted the breeze-reinstallation-with-uv branch November 4, 2024 16:52
@utkarsharma2utkarsharma2 added the changelog:skip Changes that should be skipped from the changelog (CI, tests, etc..) label Dec 4, 2024
@utkarsharma2utkarsharma2 added this to the Airflow 2.10.4 milestone Dec 4, 2024
utkarsharma2 pushed a commit that referenced this pull request Dec 4, 2024
…43607) (#43626)
So far `breeze` fully supported only `pipx` installation. For
example it would reinstall itself automatically with pipx if you
attempted to run it from another workspace/checked out repository
of Airflow, and it only provided instructions for pipx.
With this PR:
* the `uv tool` is preferred way to install breeze
* the `pipx` is PSF-governance managed alternative
* breeze will reinstall itself using uv if it has been installed with uv
before when it is run from a different workspace or different
airflow repo checked out in another folder
Also documentation is updated to make `uv` the recommended tool and
describing how to install it - with `pipx` provided as an alternative.
Warning is printed in case pre-commit-uv is not installed with the
pre-commit (pre-commit-uv significantly speeds up installation of
the venvs by pre-commit). This warning also provides instructions
how to install it.
(cherry picked from commit ddc5670)
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:dev-toolschangelog:skipChanges that should be skipped from the changelog (CI, tests, etc..)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants

@potiuk@hussein-awala@utkarsharma2