From edd604f051395ceec523bc573142b3ed82ef298d Mon Sep 17 00:00:00 2001 From: Jens Troeger Date: Tue, 1 Jul 2025 06:33:30 +1000 Subject: [PATCH 1/2] fix: the generated sdist file should contain everything needed to check and test the code, and to build the documentation as well --- pyproject.toml | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index e88532f9..cbe0649e 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -119,19 +119,18 @@ omit = [ ] -# https://flit.pypa.io/en/latest/pyproject_toml.html#sdist-section +# https://flit.pypa.io/en/stable/pyproject_toml.html#sdist-section # See also: https://github.com/pypa/flit/issues/565 +# See also: https://github.com/pypa/flit/discussions/745 [tool.flit.sdist] include = [] exclude = [ ".github/", - "docs/", - "tests/", - ".flake8", + ".vscode/", ".gitignore", - ".pre-commit-config.yaml", + ".gitattributes", "CHANGELOG.md", - "Makefile", + "CODEOWNERS", "SECURITY.md", ] From 098bcd18efe31841d04040a9c5b4190672aeacac Mon Sep 17 00:00:00 2001 From: Jens Troeger Date: Wed, 23 Jul 2025 17:16:28 +1000 Subject: [PATCH 2/2] chore: add CHANGELOG and SECURITY files to the sdist --- pyproject.toml | 2 -- 1 file changed, 2 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index cbe0649e..a7e85859 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -129,9 +129,7 @@ exclude = [ ".vscode/", ".gitignore", ".gitattributes", - "CHANGELOG.md", "CODEOWNERS", - "SECURITY.md", ]