Skip to content

Commit 6a49509

Browse files
committed
Install requirements.txt with SETUPTOOLS_ENABLE_FEATURES=legacy-editable
This appears to be needed for passing CI now. It’s not the best solution and will probably stop working after a while, but at least it will allow development to proceed for now. Signed-off-by: Anders Kaseorg <[email protected]>
1 parent 3ac34f1 commit 6a49509

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

.github/workflows/test.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ jobs:
2222
- name: Install dependencies
2323
run: |
2424
pip install -U pip setuptools wheel
25-
pip install -r ./requirements.txt
25+
SETUPTOOLS_ENABLE_FEATURES=legacy-editable pip install -r ./requirements.txt
2626
2727
- name: Run pre-commit
2828
run: pre-commit install && pre-commit run --all-files
@@ -43,7 +43,7 @@ jobs:
4343
- name: Install dependencies
4444
run: |
4545
pip install -U pip setuptools wheel
46-
pip install -r ./requirements.txt
46+
SETUPTOOLS_ENABLE_FEATURES=legacy-editable pip install -r ./requirements.txt
4747
4848
- name: Run tests
4949
run: pytest --mypy-ini-file=mypy.ini
@@ -68,7 +68,7 @@ jobs:
6868
- name: Install dependencies
6969
run: |
7070
pip install -U pip setuptools wheel
71-
pip install -r ./requirements.txt
71+
SETUPTOOLS_ENABLE_FEATURES=legacy-editable pip install -r ./requirements.txt
7272
7373
- name: Run tests
7474
run: python ./scripts/typecheck_tests.py --django_version="${{ matrix.django-version }}"

CONTRIBUTING.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ source .venv/bin/activate
4343
Then install the dev requirements:
4444

4545
```bash
46-
pip install -r ./requirements.txt
46+
env SETUPTOOLS_ENABLE_FEATURES=legacy-editable pip install -r ./requirements.txt
4747
```
4848

4949
Finally, install the pre-commit hooks:

0 commit comments

Comments
 (0)