Skip to content

Commit 9505412

Browse files
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.
1 parent be414c1 commit 9505412

File tree

1 file changed

+15
-1
lines changed

1 file changed

+15
-1
lines changed

pyproject.toml

+15-1
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,21 @@ docs = ["myst_parser", "sphinx", "sphinx_rtd_theme"]
5757
package = "./pypdf"
5858

5959
[tool.flit.sdist]
60-
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"]
60+
exclude = [
61+
".gitblame-ignore-revs",
62+
".github/*",
63+
".gitignore",
64+
".gitmodules",
65+
".pre-commit-config.yaml",
66+
"docs/*",
67+
"make_release.py",
68+
"Makefile",
69+
"requirements/*",
70+
"sample-files/.github/*",
71+
"sample-files/.gitignore",
72+
"sample-files/.pre-commit-config.yaml",
73+
"tests/pdf_cache/*",
74+
]
6175
include = ["resources/", "tests/"]
6276

6377
[tool.pytest.ini_options]

0 commit comments

Comments
 (0)