]> git.apps.os.sepia.ceph.com Git - ceph-build.git/commitdiff
ceph-build-pull-requests: Use uv
authorZack Cerza <zack@cerza.org>
Fri, 1 Aug 2025 21:44:52 +0000 (15:44 -0600)
committerZack Cerza <zack@cerza.org>
Thu, 11 Sep 2025 21:25:24 +0000 (15:25 -0600)
To install Python dependencies for this job, use uv instead of pip. This is
faster and quieter.

Signed-off-by: Zack Cerza <zack@cerza.org>
ceph-build-pull-requests/build/build

index aab998808fa77ed1bb07393d51fef6756ac8a43b..be79aa0eea37db1374909d54640aa37e68b76d06 100644 (file)
@@ -2,11 +2,13 @@
 
 set -e
 
-# the following two methods exist in scripts/build_utils.sh
+"$WORKSPACE/scripts/setup_uv.sh"
+PATH=$PATH:$HOME/.local/bin
+uv venv
+
 pkgs=( "ansible" "ansible-core" "git+https://opendev.org/jjb/jenkins-job-builder@60f0316389" "urllib3==1.26.1" "pyopenssl" "ndg-httpsclient" "pyasn1" "xmltodict" )
-TEMPVENV=$(create_venv_dir)
-VENV=${TEMPVENV}/bin
-install_python_packages $TEMPVENV "pkgs[@]"
+VENV=./.venv/bin
+uv pip install "${pkgs[@]}"
 
 rm -rf xml
 # Test every definition if available in the current repository and update the jobs