From 92091e0e731a2f6fd5da020d121a848e1cdf990f Mon Sep 17 00:00:00 2001 From: Bruno Alla Date: Sat, 7 Feb 2026 12:55:44 +0000 Subject: [PATCH] Add back setuptools Was added to testing requirements in https://github.com/encode/django-rest-framework/pull/9818 But that was lost in: https://github.com/encode/django-rest-framework/pull/9842 Moving to optional dep group as it's only needed for coreapi --- pyproject.toml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pyproject.toml b/pyproject.toml index 93430d668..3079e13d4 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -74,6 +74,8 @@ optional = [ "psycopg[binary]>=3.1.8", "pygments>=2.17,<2.20", "pyyaml>=5.3.1,<6.1", + # setuptools is needed for coreapi (imports pkg_resources) + "setuptools", ] django42 = [ "django>=4.2,<5.0" ] django50 = [ "django>=5.0,<5.1" ]