datasette/pyproject.toml
Luke Hsiao 3a7e9dd63e build(pyproject): drop unused setuptools runtime dependency
setuptools became a dependency in commit 249fcf8e3e ("Add setuptools
to dependencies") because app.py imported pkg_resources and Rye-managed
virtualenvs do not ship setuptools. That import was replaced in
commit 852f501485 ("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
2026-07-30 09:01:23 -06:00

105 lines
2.6 KiB
TOML

[project]
name = "datasette"
dynamic = ["version"]
description = "An open source multi-tool for exploring and publishing data"
readme = { file = "README.md", content-type = "text/markdown" }
authors = [
{ name = "Simon Willison" },
]
license = "Apache-2.0"
requires-python = ">=3.10"
classifiers = [
"Development Status :: 4 - Beta",
"Framework :: Datasette",
"Intended Audience :: Developers",
"Intended Audience :: Science/Research",
"Intended Audience :: End Users/Desktop",
"Topic :: Database",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Programming Language :: Python :: 3.14",
]
dependencies = [
"asgiref>=3.2.10",
"click>=7.1.1",
"click-default-group>=1.2.3",
"Jinja2>=2.10.3",
"hupper>=1.9",
"httpx>=0.20,<1.0",
"pluggy>=1.0",
"uvicorn>=0.11",
"aiofiles>=0.4",
"PyYAML>=5.3",
"mergedeep>=1.1.1",
"itsdangerous>=1.1",
"sqlite-utils>=4.0",
"asyncinject>=0.7",
"pip",
"pydantic>=2",
]
[project.urls]
Homepage = "https://datasette.io/"
Documentation = "https://docs.datasette.io/en/stable/"
Changelog = "https://docs.datasette.io/en/stable/changelog.html"
"Live demo" = "https://latest.datasette.io/"
"Source code" = "https://github.com/simonw/datasette"
Issues = "https://github.com/simonw/datasette/issues"
CI = "https://github.com/simonw/datasette/actions?query=workflow%3ATest"
[project.scripts]
datasette = "datasette.cli:cli"
[project.entry-points.pytest11]
datasette = "datasette._pytest_plugin"
[dependency-groups]
dev = [
"pytest>=9",
"pytest-xdist>=2.2.1",
"pytest-asyncio>=1.2.0",
"beautifulsoup4>=4.8.1",
"black==26.3.1",
"blacken-docs==1.20.0",
"pytest-timeout>=1.4.2",
"trustme>=0.7",
"cogapp>=3.3.0",
"multipart-form-data-conformance==0.1a0",
"ruff>=0.16.0",
# docs
"Sphinx==7.4.7",
"furo==2025.9.25",
"sphinx-autobuild",
"codespell>=2.2.5",
"sphinx-copybutton",
"sphinx-inline-tabs",
"myst-parser",
"sphinx-markdown-builder",
"ruamel.yaml",
"psutil>=5.9",
]
playwright = [
"pytest-playwright>=0.8.0",
]
[project.optional-dependencies]
rich = ["rich"]
[build-system]
requires = ["setuptools"]
build-backend = "setuptools.build_meta"
[tool.setuptools.packages.find]
include = ["datasette*"]
[tool.setuptools.package-data]
datasette = ["templates/*.html"]
[tool.setuptools.dynamic]
version = {attr = "datasette.version.__version__"}
[tool.uv]
package = true