From 7d3f9cb5239e7b6c5e6115048d37eb0c845ddaa3 Mon Sep 17 00:00:00 2001 From: "Jason R. Coombs" Date: Mon, 8 Nov 2021 17:21:04 -0500 Subject: [PATCH 1/2] Fall back to legacy resolver in pip. Workaround for pypa/pip#9143. --- tox.ini | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tox.ini b/tox.ini index 3ca2af3..ba3c5d2 100644 --- a/tox.ini +++ b/tox.ini @@ -12,6 +12,9 @@ commands = pytest {posargs} usedevelop = True extras = testing +setenv = + # workaround pypa/pip#9143 + PIP_USE_DEPRECATED=legacy-resolver [testenv:docs] extras = From 75649c2b1a02c5366f3380b2445409fc65c590f3 Mon Sep 17 00:00:00 2001 From: "Jason R. Coombs" Date: Mon, 8 Nov 2021 17:24:01 -0500 Subject: [PATCH 2/2] Restore new resolver for pip. Proper fix for pypa/pip#9143. --- .github/workflows/main.yml | 5 +++++ tox.ini | 3 --- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 6aad7f1..847b0b9 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -17,6 +17,11 @@ jobs: runs-on: ${{ matrix.platform }} steps: - uses: actions/checkout@v2 + with: + # fetch all branches and tags (to get tags for versioning) + # ref actions/checkout#448 + fetch-depth: 0 + - name: Setup Python uses: actions/setup-python@v2 with: diff --git a/tox.ini b/tox.ini index ba3c5d2..3ca2af3 100644 --- a/tox.ini +++ b/tox.ini @@ -12,9 +12,6 @@ commands = pytest {posargs} usedevelop = True extras = testing -setenv = - # workaround pypa/pip#9143 - PIP_USE_DEPRECATED=legacy-resolver [testenv:docs] extras =