From 950541280643f4185faf50d90efb599f35b0a2b4 Mon Sep 17 00:00:00 2001 From: Stefan <96178532+stefan6419846@users.noreply.github.com> Date: Wed, 12 Feb 2025 14:40:29 +0100 Subject: [PATCH] DEV: Avoid bundling the PDF cache directory in sdists (#3122) Otherwise, building the package on local systems leads to sdists being 408 MB instead of 4.8 MB. --- pyproject.toml | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index 71ebbdf26..773cdcb7f 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -57,7 +57,21 @@ docs = ["myst_parser", "sphinx", "sphinx_rtd_theme"] package = "./pypdf" [tool.flit.sdist] -exclude = [".github/*", "docs/*", "sample-files/.github/*", "sample-files/.gitignore", "sample-files/.pre-commit-config.yaml", "requirements/*", ".flake8", ".gitignore", ".gitmodules", ".pylintrc", "tox.ini", "make_release.py", ".pre-commit-config.yaml", ".gitblame-ignore-revs", "Makefile"] +exclude = [ + ".gitblame-ignore-revs", + ".github/*", + ".gitignore", + ".gitmodules", + ".pre-commit-config.yaml", + "docs/*", + "make_release.py", + "Makefile", + "requirements/*", + "sample-files/.github/*", + "sample-files/.gitignore", + "sample-files/.pre-commit-config.yaml", + "tests/pdf_cache/*", +] include = ["resources/", "tests/"] [tool.pytest.ini_options]