From b6c41cdb8a351452bcd23cf510081c68cf23eb94 Mon Sep 17 00:00:00 2001 From: Dimitri Papadopoulos <3234522+DimitriPapadopoulos@users.noreply.github.com> Date: Thu, 5 Mar 2026 10:43:55 +0100 Subject: [PATCH] A few fixes for flit builds The build backend should be `flit_core`, not `flit`: https://flit.pypa.io/en/stable/pyproject_toml.html#build-system-section File `_version.py` should be part of sdist and wheel distributions. --- .gitignore | 2 +- pyproject.toml | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/.gitignore b/.gitignore index 0495ac79..22a97b4c 100644 --- a/.gitignore +++ b/.gitignore @@ -1,4 +1,4 @@ -/tabulate/version.py +/tabulate/_version.py build dist diff --git a/pyproject.toml b/pyproject.toml index 2a80daa5..b8308077 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,5 +1,5 @@ [build-system] -requires = ["flit>=3.12", "flit_scm"] +requires = ["flit_core>=3.12", "flit_scm"] build-backend = "flit_scm:buildapi" [project] @@ -34,7 +34,6 @@ tabulate = "tabulate:_main" [tool.flit.sdist] include = ["CHANGELOG", "test/", "tox.ini"] -exclude = ["tabulate/_version.py"] [tool.setuptools_scm] write_to = "tabulate/_version.py"