Skip to content

Commit

Permalink
test old pipenv version
Browse files Browse the repository at this point in the history
  • Loading branch information
yaakovpraisler committed Jan 16, 2025
1 parent 181582b commit 29bb8ad
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/update-external-base-images.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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"
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/update-internal-base-images.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down
4 changes: 2 additions & 2 deletions utils/auto_dockerfile_update/update_dockerfiles.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand All @@ -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,
Expand Down

0 comments on commit 29bb8ad

Please sign in to comment.