Repository navigation
Commit 8e1bd1b
劲松
test: make tests a regular package and fix find_packages exclude
- 补 tests/__init__.py 与 tests/unit/__init__.py:仓库测试从 namespace 目录变
为正规包,避免被 site-packages 中同名 tests 包遮蔽(本机 2026-09-02 实测:
环境被装入了带 __init__.py 的 tests 包后,tests.unit.mock_server 无法导入)
- setup.py find_packages 的 exclude=("tests") 裸字符串按字符拆分、实际不排除
任何包;改为 ("tests", "tests.*"),防止 tests 进入 wheel1 parent e812483 commit 8e1bd1b
3 files changed
Lines changed: 3 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
48 | 48 | | |
49 | 49 | | |
50 | 50 | | |
51 | | - | |
| 51 | + | |
52 | 52 | | |
53 | 53 | | |
54 | 54 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
0 commit comments