From c9070cea27ebec97d53e48c8dfc4d767d529307c Mon Sep 17 00:00:00 2001 From: David Mannion <46465555+davidmannion@users.noreply.github.com> Date: Sat, 26 Apr 2025 21:49:51 +0100 Subject: [PATCH] Restrict setuptools version to <79.0.0 setuptools v79.0.0 removed support for `legacy-editable` installs. --- .github/workflows/test.yml | 6 +++--- pyproject.toml | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 603fc2431..9456ff81c 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -33,7 +33,7 @@ jobs: python-version: ${{ matrix.python-version }} - name: Install dependencies run: | - pip install -U pip setuptools wheel + pip install -U pip "setuptools<79.0.0" wheel SETUPTOOLS_ENABLE_FEATURES=legacy-editable pip install -r ./requirements.txt - name: Run mypy on plugin code run: mypy --strict mypy_drf_plugin @@ -61,7 +61,7 @@ jobs: python-version: ${{ matrix.python-version }} - name: Install dependencies run: | - pip install -U pip setuptools wheel + pip install -U pip "setuptools<79.0.0" wheel SETUPTOOLS_ENABLE_FEATURES=legacy-editable pip install -r ./requirements.txt - name: Run tests @@ -87,7 +87,7 @@ jobs: python-version: ${{ matrix.python-version }} - name: Install dependencies run: | - pip install -U pip setuptools wheel + pip install -U pip "setuptools<79.0.0" wheel SETUPTOOLS_ENABLE_FEATURES=legacy-editable pip install -r ./requirements.txt - name: Run stubtest diff --git a/pyproject.toml b/pyproject.toml index 9da516794..cae1f4c65 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -41,4 +41,4 @@ split-on-trailing-comma = false extra-standard-library = ["_typeshed"] [build-system] -requires = ["setuptools", "wheel"] +requires = ["setuptools<79.0.0", "wheel"]