Skip to content

Commit 1a34281

Browse files
authored
Restrict setuptools version to <79.0.0 (#756)
setuptools v79.0.0 removed support for `legacy-editable` installs.
1 parent 0e6db64 commit 1a34281

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

.github/workflows/test.yml

+3-3
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ jobs:
3333
python-version: ${{ matrix.python-version }}
3434
- name: Install dependencies
3535
run: |
36-
pip install -U pip setuptools wheel
36+
pip install -U pip "setuptools<79.0.0" wheel
3737
SETUPTOOLS_ENABLE_FEATURES=legacy-editable pip install -r ./requirements.txt
3838
- name: Run mypy on plugin code
3939
run: mypy --strict mypy_drf_plugin
@@ -61,7 +61,7 @@ jobs:
6161
python-version: ${{ matrix.python-version }}
6262
- name: Install dependencies
6363
run: |
64-
pip install -U pip setuptools wheel
64+
pip install -U pip "setuptools<79.0.0" wheel
6565
SETUPTOOLS_ENABLE_FEATURES=legacy-editable pip install -r ./requirements.txt
6666
6767
- name: Run tests
@@ -87,7 +87,7 @@ jobs:
8787
python-version: ${{ matrix.python-version }}
8888
- name: Install dependencies
8989
run: |
90-
pip install -U pip setuptools wheel
90+
pip install -U pip "setuptools<79.0.0" wheel
9191
SETUPTOOLS_ENABLE_FEATURES=legacy-editable pip install -r ./requirements.txt
9292
9393
- name: Run stubtest

pyproject.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -41,4 +41,4 @@ split-on-trailing-comma = false
4141
extra-standard-library = ["_typeshed"]
4242

4343
[build-system]
44-
requires = ["setuptools", "wheel"]
44+
requires = ["setuptools<79.0.0", "wheel"]

0 commit comments

Comments
 (0)