Skip to content

Commit c63734d

Browse files
committed
Update to Poetry v2
1 parent 926db13 commit c63734d

File tree

3 files changed

+79
-37
lines changed

3 files changed

+79
-37
lines changed

.github/workflows/tests.yml

+2-10
Original file line numberDiff line numberDiff line change
@@ -54,15 +54,7 @@ jobs:
5454
5555
- name: Install poetry
5656
run: |
57-
curl -fsS https://install.python-poetry.org | python - --preview -y
58-
59-
- name: Update PATH
60-
if: ${{ matrix.os != 'Windows' }}
61-
run: echo "$HOME/.local/bin" >> $GITHUB_PATH
62-
63-
- name: Update Path for Windows
64-
if: ${{ matrix.os == 'Windows' }}
65-
run: echo "$APPDATA\Python\Scripts" >> $GITHUB_PATH
57+
pipx install poetry>=2
6658
6759
- name: Configure poetry
6860
run: poetry config virtualenvs.in-project true
@@ -90,7 +82,7 @@ jobs:
9082

9183
- name: Uninstall typing dependencies
9284
# This ensures pendulum runs without typing_extensions installed
93-
run: poetry install --only main --only test --only build --sync --no-root -vvv
85+
run: poetry sync --only main --only test --only build --no-root -vvv
9486

9587
- name: Test Pure Python
9688
run: |

0 commit comments

Comments
 (0)