This is an automated email from the ASF dual-hosted git repository.

hubcio pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/iggy.git


The following commit(s) were added to refs/heads/master by this push:
     new 700221b39 fix(python): pin python version and add uv caching (#3690)
700221b39 is described below

commit 700221b3913cd026efad148b5b6df137ea5b9d30
Author: Rimuksh Kansal <[email protected]>
AuthorDate: Thu Jul 23 20:00:20 2026 +0900

    fix(python): pin python version and add uv caching (#3690)
---
 .typos.toml                                   |  1 +
 bdd/python/.python-version                    |  1 +
 examples/python/.gitignore                    |  3 ---
 examples/python/.python-version               |  1 +
 foreign/python/.gitignore                     |  2 --
 foreign/python/.python-version                |  1 +
 foreign/python/pyproject.toml                 | 10 ++++++++++
 licenserc.toml                                |  1 +
 scripts/ci/sync-python-interpreter-version.sh | 15 +++++++++++++++
 9 files changed, 30 insertions(+), 5 deletions(-)

diff --git a/.typos.toml b/.typos.toml
index 2cf8f2ff4..3b4d0f6fb 100644
--- a/.typos.toml
+++ b/.typos.toml
@@ -155,4 +155,5 @@ extend-exclude = [
     "core/bench/dashboard/frontend/dist",
     # WireMock test fixtures with base64-encoded JWT data
     "**/wiremock/__files/*.json",
+    "**/.python-version",
 ]
diff --git a/bdd/python/.python-version b/bdd/python/.python-version
new file mode 100644
index 000000000..c8cfe3959
--- /dev/null
+++ b/bdd/python/.python-version
@@ -0,0 +1 @@
+3.10
diff --git a/examples/python/.gitignore b/examples/python/.gitignore
index 5e0072e33..24b68574c 100644
--- a/examples/python/.gitignore
+++ b/examples/python/.gitignore
@@ -68,7 +68,4 @@ docs/_build/
 # VSCode
 .vscode/
 
-# Pyenv
-.python-version
-
 Cargo.lock
diff --git a/examples/python/.python-version b/examples/python/.python-version
new file mode 100644
index 000000000..c8cfe3959
--- /dev/null
+++ b/examples/python/.python-version
@@ -0,0 +1 @@
+3.10
diff --git a/foreign/python/.gitignore b/foreign/python/.gitignore
index 5e0072e33..3339df97c 100644
--- a/foreign/python/.gitignore
+++ b/foreign/python/.gitignore
@@ -68,7 +68,5 @@ docs/_build/
 # VSCode
 .vscode/
 
-# Pyenv
-.python-version
 
 Cargo.lock
diff --git a/foreign/python/.python-version b/foreign/python/.python-version
new file mode 100644
index 000000000..c8cfe3959
--- /dev/null
+++ b/foreign/python/.python-version
@@ -0,0 +1 @@
+3.10
diff --git a/foreign/python/pyproject.toml b/foreign/python/pyproject.toml
index 785d9248d..d7f878885 100644
--- a/foreign/python/pyproject.toml
+++ b/foreign/python/pyproject.toml
@@ -149,6 +149,16 @@ filterwarnings = [
 
 [tool.uv]
 exclude-newer = "7 days"
+cache-keys = [
+    { file = "pyproject.toml" },
+    { file = "Cargo.toml" },
+    { file = "Cargo.lock" },
+    { file = "../../Cargo.toml" },
+    { file = "../../Cargo.lock" },
+    { file = "src/**/*.rs" },
+    { file = "../../core/**/Cargo.toml" },
+    { file = "../../core/**/*.rs" },
+]
 
 [tool.pyrefly]
 search-path = ["."]
diff --git a/licenserc.toml b/licenserc.toml
index 350f449b6..8e6bb68c3 100644
--- a/licenserc.toml
+++ b/licenserc.toml
@@ -77,6 +77,7 @@ excludes = [
     "**/.gitkeep",
     "**/META-INF/services/**",
     ".github/config/hawkeye.version",
+    "**/.python-version",
 ]
 
 [mapping.DOUBLESLASH_STYLE]
diff --git a/scripts/ci/sync-python-interpreter-version.sh 
b/scripts/ci/sync-python-interpreter-version.sh
index 5f666d023..bc6a2de29 100755
--- a/scripts/ci/sync-python-interpreter-version.sh
+++ b/scripts/ci/sync-python-interpreter-version.sh
@@ -314,6 +314,21 @@ ensure_wheel_interpreters() {
 
 ensure_classifiers "$SOURCE_FILE"
 
+PYTHON_VERSION_FILES=(
+    "foreign/python/.python-version"
+    "bdd/python/.python-version"
+    "examples/python/.python-version"
+)
+
+for python_version_file in "${PYTHON_VERSION_FILES[@]}"; do
+    ensure_line \
+        "$python_version_file" \
+        "^[0-9]+\\.[0-9]+(\\.[0-9]+)?$" \
+        "^${PYTHON_VERSION_REGEX}$" \
+        "$PYTHON_VERSION" \
+        "pyenv Python version"
+done
+
 ensure_line \
     "foreign/python/Dockerfile.test" \
     "^(FROM python:)[0-9]+\\.[0-9]+(-slim-trixie AS base)$" \

Reply via email to