Skip to content

Commit f7cda1e

Browse files
ci: Workaround bug preventing Django test runs
Workaround pypa/setuptools#4519 by constraining `setuptools<72.0.0` when installing dependencies for Django tests.
1 parent 194e430 commit f7cda1e

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

.github/workflows/test-integrations-web-frameworks-1.yml

+2
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,7 @@ jobs:
6464
- name: Test django latest
6565
run: |
6666
set -x # print commands that are executed
67+
export PIP_CONSTRAINT=constraints.txt
6768
./scripts/runtox.sh "py${{ matrix.python-version }}-django-latest"
6869
- name: Test flask latest
6970
run: |
@@ -140,6 +141,7 @@ jobs:
140141
- name: Test django pinned
141142
run: |
142143
set -x # print commands that are executed
144+
export PIP_CONSTRAINT=constraints.txt
143145
./scripts/runtox.sh --exclude-latest "py${{ matrix.python-version }}-django"
144146
- name: Test flask pinned
145147
run: |

constraints.txt

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# Workaround for https://github.com/pypa/setuptools/issues/4519.
2+
# Applies only for Django tests.
3+
setuptools<72.0.0

0 commit comments

Comments
 (0)