This is an automated email from the ASF dual-hosted git repository.
kaxilnaik pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/airflow-site.git
The following commit(s) were added to refs/heads/main by this push:
new ca8969139a Fix sphinx_airflow_theme hash instability from __pycache__
ca8969139a is described below
commit ca8969139a596f139a722aeac386c353692e7278
Author: Kaxil Naik <[email protected]>
AuthorDate: Thu Mar 19 13:15:16 2026 +0000
Fix sphinx_airflow_theme hash instability from __pycache__
The version check script hashed all files under the theme module
directory, including __pycache__/*.pyc files. These exist locally
but not in CI, causing the hash to differ between environments
and the hook to fail on every CI run. Skip __pycache__ in the
hash computation.
---
sphinx_airflow_theme/.theme_files_hash | 2 +-
sphinx_airflow_theme/LATEST_VERSION.txt | 2 +-
sphinx_airflow_theme/check_and_bump_version.py | 2 +-
sphinx_airflow_theme/sphinx_airflow_theme/__init__.py | 2 +-
4 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/sphinx_airflow_theme/.theme_files_hash
b/sphinx_airflow_theme/.theme_files_hash
index 4fac9ddc04..264682af3e 100644
--- a/sphinx_airflow_theme/.theme_files_hash
+++ b/sphinx_airflow_theme/.theme_files_hash
@@ -1 +1 @@
-4b2dfa1ea9b94c05ceec51d47b296ca3fe88bf598cb739d90c528eee35645515
+ffadcdd0be04f681b961a04b053387515e1812724d00485fe463cc47de1852ac
diff --git a/sphinx_airflow_theme/LATEST_VERSION.txt
b/sphinx_airflow_theme/LATEST_VERSION.txt
index 1c09c74e22..42045acae2 100644
--- a/sphinx_airflow_theme/LATEST_VERSION.txt
+++ b/sphinx_airflow_theme/LATEST_VERSION.txt
@@ -1 +1 @@
-0.3.3
+0.3.4
diff --git a/sphinx_airflow_theme/check_and_bump_version.py
b/sphinx_airflow_theme/check_and_bump_version.py
index 09f9b62212..e7b0ebec31 100755
--- a/sphinx_airflow_theme/check_and_bump_version.py
+++ b/sphinx_airflow_theme/check_and_bump_version.py
@@ -47,7 +47,7 @@ def compute_theme_hash() -> str:
"""
h = hashlib.sha256()
for f in sorted(THEME_MODULE.rglob("*")):
- if not f.is_file():
+ if not f.is_file() or "__pycache__" in f.parts:
continue
relative = f.relative_to(REPO_ROOT)
h.update(f"{relative}\n".encode())
diff --git a/sphinx_airflow_theme/sphinx_airflow_theme/__init__.py
b/sphinx_airflow_theme/sphinx_airflow_theme/__init__.py
index c1e15cc9e3..c2c048db8a 100644
--- a/sphinx_airflow_theme/sphinx_airflow_theme/__init__.py
+++ b/sphinx_airflow_theme/sphinx_airflow_theme/__init__.py
@@ -18,7 +18,7 @@
from os import path
from sphinx.application import Sphinx
-__version__ = '0.3.3'
+__version__ = '0.3.4'
__version_full__ = __version__