From ed0211889f9a757b66dd5bbb123a9bf2946b68d6 Mon Sep 17 00:00:00 2001 From: Jason Kai Date: Fri, 31 Mar 2023 14:36:03 -0400 Subject: [PATCH] Set modern-installation config option to false As of Poetry v1.4.1, packages were required to use modern installation (see: https://github.com/python-poetry/poetry/issues/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. --- .github/workflows/python-testing.yml | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/.github/workflows/python-testing.yml b/.github/workflows/python-testing.yml index d248cbf7..8336b176 100644 --- a/.github/workflows/python-testing.yml +++ b/.github/workflows/python-testing.yml @@ -33,10 +33,13 @@ jobs: # ----- install & configure poetry ----- #---------------------------------------------- - name: Install Poetry - uses: snok/install-poetry@v1 + - 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 #---------------------------------------------- @@ -93,10 +96,12 @@ jobs: # ----- install & configure poetry ----- #---------------------------------------------- - name: Install Poetry - uses: snok/install-poetry@v1 + - 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 #----------------------------------------------