From 29bb8ad4a84c99e63af603487c8229fabe121c01 Mon Sep 17 00:00:00 2001 From: ypreisler Date: Thu, 16 Jan 2025 16:32:34 +0200 Subject: [PATCH] test old pipenv version --- .github/workflows/update-external-base-images.yml | 4 ++-- .github/workflows/update-internal-base-images.yml | 4 ++-- utils/auto_dockerfile_update/update_dockerfiles.py | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/.github/workflows/update-external-base-images.yml b/.github/workflows/update-external-base-images.yml index 35c06cc16d744..6e4c4c9a5757a 100644 --- a/.github/workflows/update-external-base-images.yml +++ b/.github/workflows/update-external-base-images.yml @@ -16,7 +16,7 @@ jobs: - name: Setup Python uses: actions/setup-python@v4 with: - python-version: '3.12' + python-version: '3.11' - name: Setup Poetry uses: Gr1N/setup-poetry@v8 - name: run @@ -25,7 +25,7 @@ jobs: git config --global user.name "auto dockerfiles update" echo "==== $(date): Starting pipenv setup... ====" python -m pip install --upgrade pip - pip install pipenv==2024.4.0 + pip install pipenv==2023.3.18 pipenv install --python=$(which python) echo "==== Finished ====" [[ ${{ vars.DISABLE_TIMESTAMP_AUTOUPDATES }} = 'true' ]] && tu_flag="--no-timestamp-updates" diff --git a/.github/workflows/update-internal-base-images.yml b/.github/workflows/update-internal-base-images.yml index 12f95dab0aa8d..ecc8a7e9abfd0 100644 --- a/.github/workflows/update-internal-base-images.yml +++ b/.github/workflows/update-internal-base-images.yml @@ -15,7 +15,7 @@ jobs: - name: Setup Python uses: actions/setup-python@v4 with: - python-version: '3.12' + python-version: '3.11' - name: Setup Poetry uses: Gr1N/setup-poetry@v8 - name: run @@ -24,7 +24,7 @@ jobs: git config --global user.name "auto dockerfiles update" echo "==== $(date): Starting pipenv setup... ====" python -m pip install --upgrade pip - pip install pipenv==2024.4.0 + pip install pipenv==2023.3.18 pipenv install --python=$(which python) echo "==== Finished ====" pipenv run python ./utils/auto_dockerfile_update/update_dockerfiles.py -t internal diff --git a/utils/auto_dockerfile_update/update_dockerfiles.py b/utils/auto_dockerfile_update/update_dockerfiles.py index c770b7bf07740..2c0d20f37e17c 100644 --- a/utils/auto_dockerfile_update/update_dockerfiles.py +++ b/utils/auto_dockerfile_update/update_dockerfiles.py @@ -156,7 +156,7 @@ def run_lock(base_path_docker: str, pipfile_or_pyproject_path: str) -> bool: if "Pipfile" in pipfile_or_pyproject_path: # waits for the process to end. completed_process = subprocess.run( - ["pipenv", "lock"], + ["pipenv", "lock", "--keep-outdated"], check=True, stdout=subprocess.DEVNULL, stderr=subprocess.PIPE, @@ -165,7 +165,7 @@ def run_lock(base_path_docker: str, pipfile_or_pyproject_path: str) -> bool: return False elif "pyproject.toml" in pipfile_or_pyproject_path: completed_process = subprocess.run( - ["poetry", "lock"], + ["poetry", "lock", "--no-update"], stderr=subprocess.PIPE, check=True, stdout=subprocess.DEVNULL,