Skip to content

Commit

Permalink
Upgrade to latest versions of pip and pipx in CI runners (apache#…
Browse files Browse the repository at this point in the history
…36646)

The CI runners did not have latest version of `pip` and `pipx`. This
change updates the installation scripts to fix `pip` to the same
version as in the CI image and down-binds pipx to 1.4.1 which is
recently released bugfix version with better logging and installation
instructions.
  • Loading branch information
potiuk authored Jan 7, 2024
1 parent 19ebcac commit 75bc05c
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 7 deletions.
5 changes: 2 additions & 3 deletions BREEZE.rst
Original file line number Diff line number Diff line change
Expand Up @@ -176,14 +176,13 @@ The pipx tool
We are using ``pipx`` tool to install and manage Breeze. The ``pipx`` tool is created by the creators
of ``pip`` from `Python Packaging Authority <https://www.pypa.io/en/latest/>`_

Note that ``pipx`` >= 1.2.1 is needed in order to deal with breaking ``packaging`` release in September
2023 that broke earlier versions of ``pipx``.
Note that ``pipx`` >= 1.4.1 is used.

Install pipx

.. code-block:: bash
pip install --user "pipx>=1.2.1"
pip install --user "pipx>=1.4.1"
Breeze, is not globally accessible until your PATH is updated. Add <USER FOLDER>\.local\bin as a variable
environments. This can be done automatically by the following command (follow instructions printed).
Expand Down
2 changes: 1 addition & 1 deletion dev/breeze/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,6 @@ PLEASE DO NOT MODIFY THE HASH BELOW! IT IS AUTOMATICALLY UPDATED BY PRE-COMMIT.

---------------------------------------------------------------------------------------------------------

Package config hash: c7d80ab49c6dc4bf2b54957663b0126ab9c8f48df28a34c0eb56340540cb1f52d063ef99ee5f9cacbd375b1a711278884f9ef9aab41e620fa70fffd81f7ece3c
Package config hash: ac1e65234e1a780d1f21ac28e27451c763e308cc901ab8f72acc6414db8da14c8f841e4757b134a4cc6f3c76186af340db0610cd3fa155ed5fcf1abca45381e8

---------------------------------------------------------------------------------------------------------
1 change: 1 addition & 0 deletions dev/breeze/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ dependencies = [
"jinja2>=3.1.0",
"jsonschema>=4.19.1",
"packaging>=23.2",
"pipx>=1.4.1",
"pre-commit>=3.5.0",
"psutil>=5.9.6",
"pygithub>=2.1.1",
Expand Down
5 changes: 2 additions & 3 deletions scripts/ci/install_breeze.sh
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,7 @@ set -euxo pipefail

cd "$( dirname "${BASH_SOURCE[0]}" )/../../"

# Limit `pipx` temporarily to avoid --force-reinstall added in a wrong place
# Can be removed after https://github.com/pypa/pipx/issues/1122 is solved (and possibly yanked)
python -m pip install "pipx>=1.2.1,!=1.3.0"
python -m pip install --upgrade pip==23.3.2
python -m pip install "pipx>=1.4.1"
python -m pipx install --editable ./dev/breeze/ --force
echo '/home/runner/.local/bin' >> "${GITHUB_PATH}"

0 comments on commit 75bc05c

Please sign in to comment.