Skip to content

Commit

Permalink
DEV: Avoid bundling the PDF cache directory in sdists (#3122)
Browse files Browse the repository at this point in the history
Otherwise, building the package on local systems leads to sdists being 408 MB instead of 4.8 MB.
  • Loading branch information
stefan6419846 authored Feb 12, 2025
1 parent be414c1 commit 9505412
Showing 1 changed file with 15 additions and 1 deletion.
16 changes: 15 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down

0 comments on commit 9505412

Please sign in to comment.