From 9e76713aab8968b7e34f5c76629a7d35a3c17ce5 Mon Sep 17 00:00:00 2001 From: michalpokusa <72110769+michalpokusa@users.noreply.github.com> Date: Tue, 22 Apr 2025 00:37:22 +0200 Subject: [PATCH] Restrict setuptools to <79.0.0 for SETUPTOOLS_ENABLE_FEATURES=legacy-editable to work --- .github/workflows/test.yml | 10 +++++----- pyproject.toml | 2 +- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 71a7d343d..09113e84e 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -30,7 +30,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 @@ -63,7 +63,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 # Must match `shard` definition in the test matrix: @@ -91,7 +91,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 @@ -112,7 +112,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 pyright on the stubs uses: jakebailey/pyright-action@v2 @@ -146,7 +146,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 pip install "Django==${{ matrix.django-version }}" pip check diff --git a/pyproject.toml b/pyproject.toml index 63224f03f..f524f8ec9 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -56,4 +56,4 @@ known-first-party = ["django_stubs_ext", "mypy_django_plugin"] split-on-trailing-comma = false [build-system] -requires = ["setuptools", "wheel"] +requires = ["setuptools<79.0.0", "wheel"]