mirror of
https://github.com/simonw/datasette.git
synced 2026-09-03 15:14:08 +02:00
build(pyproject): drop unused setuptools runtime dependency
setuptools became a dependency in commit249fcf8e3e("Add setuptools to dependencies") because app.py imported pkg_resources and Rye-managed virtualenvs do not ship setuptools. That import was replaced in commit852f501485("Switch from pkg_resources to importlib.metadata in app.py, refs #2057"), so nothing in Datasette has consumed the dependency since. pluggy's load_setuptools_entrypoints() reads entry points through importlib.metadata despite its name, and the publish/package Dockerfile templates never reference setuptools. Discovered using `pyproject-udeps` [[1]]. [1]: https://github.com/lukehsiao/pyproject-udeps Tested: in a fresh uv venv, which ships without setuptools: $ uv venv t && uv pip install --python t/bin/python . $ t/bin/python -c "import setuptools" ModuleNotFoundError: No module named 'setuptools' $ t/bin/datasette --version datasette, version 1.0a36 $ t/bin/datasette plugins [] $ t/bin/datasette --get /-/versions.json {"ok": true, ...} Ref: https://github.com/simonw/datasette/issues/2065 Ref: https://github.com/simonw/datasette/issues/2057
This commit is contained in:
parent
e889403d3b
commit
3a7e9dd63e
1 changed files with 0 additions and 1 deletions
|
|
@ -37,7 +37,6 @@ dependencies = [
|
|||
"itsdangerous>=1.1",
|
||||
"sqlite-utils>=4.0",
|
||||
"asyncinject>=0.7",
|
||||
"setuptools",
|
||||
"pip",
|
||||
"pydantic>=2",
|
||||
]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue