#33778: pyproject.toml uses the incorrect "legacy" setuptools backend and
unnecessary wheel dep
------------------------------+------------------------------------
Reporter: Michał Górny | Owner: nobody
Type: Bug | Status: new
Component: Packaging | Version: 4.0
Severity: Normal | Resolution:
Keywords: | Triage Stage: Accepted
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 1 | UI/UX: 0
------------------------------+------------------------------------
Comment (by Michał Górny):
Well, unless I'm testing wrong, after changing pyproject.toml to:
{{{
[build-system]
requires = ['setuptools>=40.8.0']
build-backend = 'setuptools.build_meta'
[tool.black]
target-version = ['py38']
extend-exclude = 'tests/test_runner_apps/tagged/tests_syntax_error.py'
}}}
editable install just works™:
{{{
$ pip install -e .
Obtaining file:///tmp/django
Installing build dependencies ... done
Checking if build backend supports build_editable ... done
Getting requirements to build wheel ... done
Installing backend dependencies ... done
Preparing metadata (pyproject.toml) ... done
Collecting sqlparse>=0.2.2
Using cached sqlparse-0.4.2-py3-none-any.whl (42 kB)
Collecting asgiref<4,>=3.4.1
Using cached asgiref-3.5.2-py3-none-any.whl (22 kB)
Installing collected packages: sqlparse, asgiref, Django
Running setup.py develop for Django
Successfully installed Django-4.0.6.dev20220613071132 asgiref-3.5.2
sqlparse-0.4.2
}}}
This is with pip-22.0.4 (as injected into venv by Python).
Note that [https://peps.python.org/pep-0660/ PEP 660] explicitly
provisions for editable installs.
--
Ticket URL: <https://code.djangoproject.com/ticket/33778#comment:4>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
--
You received this message because you are subscribed to the Google Groups
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/django-updates/010701815c36b76e-cf05f7c4-1978-4a91-8a6f-d9c0fe8e1556-000000%40eu-central-1.amazonses.com.