Skip to content

feat: add default exclude __pycache__ and *.pyc files#3202

Merged
messense merged 2 commits into
PyO3:mainfrom
GuYeying:feat/default-exclude-pycache
May 28, 2026
Merged

feat: add default exclude __pycache__ and *.pyc files#3202
messense merged 2 commits into
PyO3:mainfrom
GuYeying:feat/default-exclude-pycache

Conversation

@GuYeying

Copy link
Copy Markdown
Contributor

This PR adds default exclusion rules for pycache and compiled Python bytecode files in the pyproject.toml template.

This prevents pycache, *.pyc, *.pyo files from being accidentally packaged into wheels, following PEP 427 and common Python packaging best practices.

@messense messense merged commit 6ce7965 into PyO3:main May 28, 2026
83 of 85 checks passed
@GuYeying GuYeying deleted the feat/default-exclude-pycache branch May 29, 2026 01:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants