From cc84b10896f4ad8ce6cbd237936eb6398a6b9c42 Mon Sep 17 00:00:00 2001 From: Jeff Quast Date: Fri, 3 Jul 2026 11:48:05 -0400 Subject: [PATCH] remove pycache files from sdist package when building jinxed-2.1.0 for pypi release and checking file contents, i was surprised to see the ``__pycache__`` folder and contents, this is from "graft tests", which includes everything, even ``.pyc`` files: jinxed-2.1.0/tests/__pycache__/ jinxed-2.1.0/tests/__pycache__/__init__.cpython-313.pyc jinxed-2.1.0/tests/__pycache__/__init__.cpython-314.pyc jinxed-2.1.0/tests/__pycache__/test_terminal.cpython-313.pyc jinxed-2.1.0/tests/__pycache__/test_terminal.cpython-314-pytest-9.0.3.pyc jinxed-2.1.0/tests/__pycache__/test_terminal.cpython-314.pyc jinxed-2.1.0/tests/__pycache__/test_terminfo.cpython-313.pyc jinxed-2.1.0/tests/__pycache__/test_terminfo.cpython-314.pyc jinxed-2.1.0/tests/__pycache__/test_tparm.cpython-313.pyc jinxed-2.1.0/tests/__pycache__/test_tparm.cpython-314.pyc These kinds of ``tests/__pycache__/`` and ``.pyc`` and pypy files have been in every past jinxed sdist release except for 1.4.0 and this most recent one, 2.1.0 where it was noticed and manually removed before publishing. Added global-exclude for pycache files to MANIFEST.in to prevent it. --- MANIFEST.in | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/MANIFEST.in b/MANIFEST.in index 086d36b..a08e705 100644 --- a/MANIFEST.in +++ b/MANIFEST.in @@ -2,3 +2,7 @@ include LICENSE* setup_helpers.py README.* graft doc graft tests include terminals.toml + +global-exclude __pycache__ +global-exclude *.pyc +global-exclude *.pyo