Skip to content

Commit 059304f

Browse files
authored
Restrict setuptools to <79.0.0 for SETUPTOOLS_ENABLE_FEATURES=legacy-editable to work (#2617)
1 parent 631b48a commit 059304f

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

.github/workflows/test.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ jobs:
3030
python-version: ${{ matrix.python-version }}
3131
- name: Install dependencies
3232
run: |
33-
pip install -U pip setuptools wheel
33+
pip install -U pip "setuptools<79.0.0" wheel
3434
SETUPTOOLS_ENABLE_FEATURES=legacy-editable pip install -r ./requirements.txt
3535
3636
- name: Run mypy on plugin code
@@ -63,7 +63,7 @@ jobs:
6363
python-version: ${{ matrix.python-version }}
6464
- name: Install dependencies
6565
run: |
66-
pip install -U pip setuptools wheel
66+
pip install -U pip "setuptools<79.0.0" wheel
6767
SETUPTOOLS_ENABLE_FEATURES=legacy-editable pip install -r ./requirements.txt
6868
6969
# Must match `shard` definition in the test matrix:
@@ -91,7 +91,7 @@ jobs:
9191
python-version: ${{ matrix.python-version }}
9292
- name: Install dependencies
9393
run: |
94-
pip install -U pip setuptools wheel
94+
pip install -U pip "setuptools<79.0.0" wheel
9595
SETUPTOOLS_ENABLE_FEATURES=legacy-editable pip install -r ./requirements.txt
9696
9797
- name: Run stubtest
@@ -112,7 +112,7 @@ jobs:
112112
python-version: ${{ matrix.python-version }}
113113
- name: Install dependencies
114114
run: |
115-
pip install -U pip setuptools wheel
115+
pip install -U pip "setuptools<79.0.0" wheel
116116
SETUPTOOLS_ENABLE_FEATURES=legacy-editable pip install -r ./requirements.txt
117117
- name: Run pyright on the stubs
118118
uses: jakebailey/pyright-action@v2
@@ -146,7 +146,7 @@ jobs:
146146
python-version: ${{ matrix.python-version }}
147147
- name: Install dependencies
148148
run: |
149-
pip install -U pip setuptools wheel
149+
pip install -U pip "setuptools<79.0.0" wheel
150150
SETUPTOOLS_ENABLE_FEATURES=legacy-editable pip install -r ./requirements.txt
151151
pip install "Django==${{ matrix.django-version }}"
152152
pip check

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,4 +56,4 @@ known-first-party = ["django_stubs_ext", "mypy_django_plugin"]
5656
split-on-trailing-comma = false
5757

5858
[build-system]
59-
requires = ["setuptools", "wheel"]
59+
requires = ["setuptools<79.0.0", "wheel"]

0 commit comments

Comments
 (0)