From 6bdb8bfb1a25db45e8e3dd1b40f29c76bfaa6199 Mon Sep 17 00:00:00 2001 From: Michael Weiss Date: Thu, 3 Sep 2026 23:04:24 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=93=A6=20Ship=20the=20complete=20test=20t?= =?UTF-8?q?ree=20and=20its=20resources=20in=20the=20sdist?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The sdist only contained the four top-level `test*.py` files that setuptools picks up by default: `tests/resources/` and the `splitter_tests` and `middleware_tests` subpackages were missing, so running the test suite from an unpacked sdist failed with `FileNotFoundError: tests/resources/gbk_test.bib`. Add a `MANIFEST.in` grafting `tests`. The wheel is unaffected, as `[tool.setuptools.packages.find]` restricts it to `bibtexparser*`. Fixes #486 Co-Authored-By: Claude Opus 5 --- MANIFEST.in | 4 ++++ 1 file changed, 4 insertions(+) create mode 100644 MANIFEST.in diff --git a/MANIFEST.in b/MANIFEST.in new file mode 100644 index 0000000..0a3e670 --- /dev/null +++ b/MANIFEST.in @@ -0,0 +1,4 @@ +# The sdist ships the full test suite, so that it can be run from source. +graft tests + +global-exclude __pycache__ *.py[cod]