From 871c82ca3dedd89276ac989ecff0fb95b9d8a4c9 Mon Sep 17 00:00:00 2001 From: Shurong Cao <170531907+CAOShurong@users.noreply.github.com> Date: Sat, 29 Aug 2026 08:29:06 +0800 Subject: [PATCH] fix: include tests/__init__.py in sdist (resolves #341) MANIFEST.in only listed README.rst and LICENSE. Because setup.py excludes 'tests' from packages, setuptools dropped the package marker tests/__init__.py from the source distribution while still shipping the loose tests/test_*.py modules. A downstream build that does 'from tests import OrderedDict' (test_compliance.py) then fails with ImportError: cannot import name 'OrderedDict' from 'tests'. Adding 'recursive-include tests *.py' makes the sdist carry the __init__.py package marker alongside the test modules. --- MANIFEST.in | 1 + 1 file changed, 1 insertion(+) diff --git a/MANIFEST.in b/MANIFEST.in index a5021c60..fe243962 100644 --- a/MANIFEST.in +++ b/MANIFEST.in @@ -1,2 +1,3 @@ include README.rst include LICENSE +recursive-include tests *.py