This is an automated email from the ASF dual-hosted git repository.
kevinjqliu pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/iceberg.git
The following commit(s) were added to refs/heads/main by this push:
new 4c0db5abf0 Build: Support building site with uv (#15118)
4c0db5abf0 is described below
commit 4c0db5abf0ecc6136c28a56c188d56115d83c240
Author: Manu Zhang <[email protected]>
AuthorDate: Mon Feb 16 23:38:44 2026 +0800
Build: Support building site with uv (#15118)
---
.gitignore | 3 +++
site/dev/common.sh | 5 +++--
2 files changed, 6 insertions(+), 2 deletions(-)
diff --git a/.gitignore b/.gitignore
index bcac4d1610..2b5930edbb 100644
--- a/.gitignore
+++ b/.gitignore
@@ -73,5 +73,8 @@ derby.log
# jenv
.java-version
+# uv
+.python-version
+
# sdkman
.sdkmanrc
diff --git a/site/dev/common.sh b/site/dev/common.sh
index 147c17d225..6556a4df76 100755
--- a/site/dev/common.sh
+++ b/site/dev/common.sh
@@ -19,7 +19,7 @@
set -e
export REMOTE="iceberg_docs"
-export VENV_DIR=".venv"
+export VENV_DIR="${VENV_DIR:-.venv}"
# Ensures the presence of a specified remote repository for documentation.
# If the remote doesn't exist, it adds it using the provided URL.
@@ -48,7 +48,8 @@ install_deps () {
echo " --> install deps"
# Use pip from venv to install or upgrade dependencies from the
'requirements.txt' file quietly
- "${VENV_DIR}/bin/pip3" -q install -r requirements.txt --upgrade
+ local PIP="${PIP:-${VENV_DIR}/bin/pip3}"
+ ${PIP} -q install -r requirements.txt --upgrade
}
# Checks if a provided argument is not empty. If empty, displays an error
message and exits with a status code 1.