From df6410f03705607635639f009604ddba9ef06065 Mon Sep 17 00:00:00 2001 From: Leo Ji Date: Thu, 2 Apr 2026 06:28:39 +0000 Subject: [PATCH] Fix sdist missing tests/__init__.py causing ImportError The sdist tarball on PyPI omitted the tests/__init__.py file because MANIFEST.in only listed top-level files (README.rst and LICENSE). Without tests/__init__.py, importing `from tests import OrderedDict` in test_compliance.py fails with: ImportError: cannot import name 'OrderedDict' from 'tests' (unknown location) Add `recursive-include tests *` to MANIFEST.in so that all files under the tests/ directory are included in the source distribution. Fixes #341 Made-with: Cursor --- MANIFEST.in | 1 + 1 file changed, 1 insertion(+) diff --git a/MANIFEST.in b/MANIFEST.in index a5021c60..6742c856 100644 --- a/MANIFEST.in +++ b/MANIFEST.in @@ -1,2 +1,3 @@ include README.rst include LICENSE +recursive-include tests *