fix: downgrade Python version from 3.14 to 3.12 in Airflow installation scripts

This commit is contained in:
MickLesk
2026-05-10 23:06:03 +02:00
parent a83cb625d3
commit 8a04cfe5e1
2 changed files with 4 additions and 4 deletions

View File

@@ -48,7 +48,7 @@ function update_script() {
msg_info "Updating Apache Airflow to ${LATEST}" msg_info "Updating Apache Airflow to ${LATEST}"
$STD uv pip install --python /opt/airflow/.venv/bin/python \ $STD uv pip install --python /opt/airflow/.venv/bin/python \
"apache-airflow[postgres,fab]==${LATEST}" \ "apache-airflow[postgres,fab]==${LATEST}" \
--constraint "https://raw.githubusercontent.com/apache/airflow/constraints-${LATEST}/constraints-3.14.txt" --constraint "https://raw.githubusercontent.com/apache/airflow/constraints-${LATEST}/constraints-3.12.txt"
echo "${LATEST}" >~/.airflow echo "${LATEST}" >~/.airflow
msg_ok "Updated Apache Airflow to ${LATEST}" msg_ok "Updated Apache Airflow to ${LATEST}"

View File

@@ -22,7 +22,7 @@ $STD apt install -y \
python3-dev python3-dev
msg_ok "Installed Dependencies" msg_ok "Installed Dependencies"
UV_PYTHON="3.14" setup_uv UV_PYTHON="3.12" setup_uv
PG_VERSION="16" setup_postgresql PG_VERSION="16" setup_postgresql
PG_DB_NAME="airflow" PG_DB_USER="airflow" setup_postgresql_db PG_DB_NAME="airflow" PG_DB_USER="airflow" setup_postgresql_db
@@ -30,10 +30,10 @@ msg_info "Installing Apache Airflow"
AIRFLOW_VERSION="3.2.1" AIRFLOW_VERSION="3.2.1"
mkdir -p /opt/airflow/{dags,logs,plugins} mkdir -p /opt/airflow/{dags,logs,plugins}
cd /opt/airflow cd /opt/airflow
$STD uv venv --python 3.14 $STD uv venv --python 3.12
$STD uv pip install --python /opt/airflow/.venv/bin/python \ $STD uv pip install --python /opt/airflow/.venv/bin/python \
"apache-airflow[postgres,fab]==${AIRFLOW_VERSION}" \ "apache-airflow[postgres,fab]==${AIRFLOW_VERSION}" \
--constraint "https://raw.githubusercontent.com/apache/airflow/constraints-${AIRFLOW_VERSION}/constraints-3.14.txt" --constraint "https://raw.githubusercontent.com/apache/airflow/constraints-${AIRFLOW_VERSION}/constraints-3.12.txt"
echo "${AIRFLOW_VERSION}" >~/.airflow echo "${AIRFLOW_VERSION}" >~/.airflow
msg_ok "Installed Apache Airflow" msg_ok "Installed Apache Airflow"