Skip to content

Commit 5bc8fde

Browse files
committed
setup-poetry: Use requirements.txt format instead of pylock.toml
1 parent 32083f1 commit 5bc8fde

11 files changed

Lines changed: 3282 additions & 5692 deletions

File tree

setup-poetry/action.yml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -93,9 +93,7 @@ runs:
9393
run: |
9494
python -m venv "$POETRY_HOME"
9595
if [ x"$USE_LOCK_FILE" = x"true" ]; then
96-
# pylock.toml support was added in pip 26.1
97-
"$POETRY_HOME_BIN/python" -m pip install -U pip
98-
"$POETRY_HOME_BIN/python" -m pip install --no-deps -r "$GITHUB_ACTION_PATH/versions/$POETRY_VERSION/pylock.toml"
96+
"$POETRY_HOME_BIN/python" -m pip install --no-deps -r "$GITHUB_ACTION_PATH/versions/$POETRY_VERSION/requirements.txt"
9997
else
10098
"$POETRY_HOME_BIN/python" -m pip install "poetry==$POETRY_VERSION"
10199
fi

setup-poetry/update_lock_files.sh

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@
66
for i in versions/*; do
77
pushd $i
88
poetry lock
9-
poetry export -f pylock.toml -o pylock.toml
9+
# After we drop Python 3.9, consider switching to pylock.toml format.
10+
# (pip 26.1 added pylock.toml support, but it also dropped Python 3.9 support.)
11+
poetry export -o requirements.txt
1012
popd
1113
done

setup-poetry/versions/2.1.4/poetry.lock

Lines changed: 3 additions & 398 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

setup-poetry/versions/2.1.4/pylock.toml

Lines changed: 0 additions & 1463 deletions
This file was deleted.

setup-poetry/versions/2.1.4/requirements.txt

Lines changed: 780 additions & 0 deletions
Large diffs are not rendered by default.

setup-poetry/versions/2.2.1/pylock.toml

Lines changed: 0 additions & 1479 deletions
This file was deleted.

setup-poetry/versions/2.2.1/requirements.txt

Lines changed: 943 additions & 0 deletions
Large diffs are not rendered by default.

setup-poetry/versions/2.3.4/pylock.toml

Lines changed: 0 additions & 1174 deletions
This file was deleted.

setup-poetry/versions/2.3.4/requirements.txt

Lines changed: 776 additions & 0 deletions
Large diffs are not rendered by default.

setup-poetry/versions/2.4.1/pylock.toml

Lines changed: 0 additions & 1174 deletions
This file was deleted.

0 commit comments

Comments
 (0)