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"]