From f072af7c275a8fb97b36d5e052269e7bbed5a794 Mon Sep 17 00:00:00 2001 From: Daniel Szoke <7881302+szokeasaurusrex@users.noreply.github.com> Date: Mon, 29 Jul 2024 13:52:14 +0200 Subject: [PATCH] ci: Workaround bug preventing Django test runs (#3371) Workaround https://github.com/pypa/setuptools/issues/4519 by constraining `setuptools<72.0.0` when installing dependencies for Django tests. --- constraints.txt | 3 +++ tox.ini | 1 + 2 files changed, 4 insertions(+) create mode 100644 constraints.txt diff --git a/constraints.txt b/constraints.txt new file mode 100644 index 0000000000..697aca1388 --- /dev/null +++ b/constraints.txt @@ -0,0 +1,3 @@ +# Workaround for https://github.com/pypa/setuptools/issues/4519. +# Applies only for Django tests. +setuptools<72.0.0 diff --git a/tox.ini b/tox.ini index 3ab1bae529..eae6f054b5 100644 --- a/tox.ini +++ b/tox.ini @@ -648,6 +648,7 @@ setenv = OBJC_DISABLE_INITIALIZE_FORK_SAFETY=YES COVERAGE_FILE=.coverage-{envname} django: DJANGO_SETTINGS_MODULE=tests.integrations.django.myapp.settings + py3.12-django: PIP_CONSTRAINT=constraints.txt common: TESTPATH=tests gevent: TESTPATH=tests