Commit 16cd54f
committed
fix: ship shared capa test fixtures in the wheel
MANIFEST.in already declares that the three shared capa fixtures --
``response_xml_factory``, ``helpers`` and ``test_util`` -- must stay in the
distribution because openedx-platform imports them from its own test suite:
# --- TEST UTILITY INCLUSIONS ---
# Re-include specific test files that are excluded above.
# We do this because openedx-platform imports these specific test helpers.
include xblocks_contrib/problem/capa/tests/test_util.py
include xblocks_contrib/problem/capa/tests/helpers.py
include xblocks_contrib/problem/capa/tests/response_xml_factory.py
MANIFEST.in only governs the sdist though. Wheel contents come from
``[tool.setuptools.packages.find]``, whose blanket ``*tests*`` exclusion drops
the whole ``xblocks_contrib.problem.capa.tests`` package, so the intent above
has not applied to the wheel since 1.0.0.
Consequence: any openedx-platform version installing xblocks-contrib >=1.0.0
fails to collect ~17 of its own test modules with
ModuleNotFoundError: No module named 'xblocks_contrib.problem.capa.tests'
which is why openedx-platform is pinned back to 0.17.0 and cannot pick up
newer releases.
Spell the exclusions out per package instead of using a blanket glob, so the
capa fixtures stay discoverable. Verified by building the wheel: the capa
tests package is present, no other test package is, and the uncompressed size
grows 5.07MB -> 5.54MB.1 parent 996977d commit 16cd54f
1 file changed
Lines changed: 23 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
127 | 127 | | |
128 | 128 | | |
129 | 129 | | |
130 | | - | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
131 | 150 | | |
132 | 151 | | |
133 | 152 | | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
134 | 156 | | |
135 | 157 | | |
136 | 158 | | |
| |||
0 commit comments