# --- Core Metadata ---
include pyproject.toml
include README.md
include LICENSE
include NOTICE.md
include *.md
include *.yaml

# --- Package Data ---
recursive-include src/pdftl *.py
recursive-include src/pdftl *.pyi
include src/pdftl/py.typed

# --- Tests & Assets ---
# useful for downstream packagers like Debian
recursive-include tests *.py
recursive-include tests/assets *.pdf *.fdf *.txt
recursive-include tests *.cnf *.csr *.pem
recursive-exclude vendor_tests *

# Exclude GPL compatibility tests
prune tests/compat_pdftk

# --- Documentation ---
include docs/Makefile
include docs/README*.md
include docs/*.py
include docs/*.md

# --- Tools/Scripts ---
recursive-include tools *.py
include tools/*php*.sh

# --- Excludes (Global) ---

# Remove CI/CD configuration and local artifacts

prune .github
exclude .gitignore
exclude pytest.log

# Remove Python compilation artifacts

global-exclude __pycache__
global-exclude *.py[cod]
global-exclude *.so
global-exclude *.dylib

# Remove OS/Editor junk

global-exclude .DS_Store
global-exclude .git*
global-exclude *conflicted*
