Skip to content

Commit

Permalink
Set modern-installation config option to false
Browse files Browse the repository at this point in the history
As of Poetry v1.4.1, packages were required to use modern installation (see: python-poetry/poetry#7686). This is potentially problematic when relying on older versions of packages and for packages who are still using non-modern installers.

This commit adds an additional step to disable that modern-installation requirement, which should get the workflow working again.
  • Loading branch information
kaitj committed Mar 31, 2023
1 parent fc7f725 commit fae7b0a
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions .github/workflows/python-testing.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,10 +33,13 @@ jobs:
# ----- install & configure poetry -----
#----------------------------------------------
- name: Install Poetry
uses: snok/install-poetry@v1
with:
- uses: snok/install-poetry@v1
- with:
virtualenvs-create: true
virtualenvs-in-project: true
- run: |
poetry config installer.modern-installation false
#----------------------------------------------
#----------------------------------------------
# load cached venv if cache exists
#----------------------------------------------
Expand Down Expand Up @@ -93,10 +96,12 @@ jobs:
# ----- install & configure poetry -----
#----------------------------------------------
- name: Install Poetry
uses: snok/install-poetry@v1
with:
- uses: snok/install-poetry@v1
- with:
virtualenvs-create: true
virtualenvs-in-project: true
- run: |
poetry config installer.modern-installation false
#----------------------------------------------
# load cached venv if cache exists
#----------------------------------------------
Expand Down

0 comments on commit fae7b0a

Please sign in to comment.