Commit 07dfc92
fix(ci): add tabulate to core dependencies
Windows Python 3.10 CI runs failed 4 tests in TestReportGeneration
and test_report_contains_new_sections with:
ImportError: Missing optional dependency 'tabulate'.
pandas ``.to_markdown()`` dispatches to ``tabulate`` which pandas
lists as optional. Our ``sp.causal(...).report(fmt='markdown'|'html')``
path uses ``.to_markdown()`` internally, so the dependency has to be
declared core on the StatsPAI side — otherwise a user who does
r = sp.causal(...).report('markdown')
hits an ImportError at runtime on systems that happen not to pull
tabulate in transitively (Windows being the canonical case).
Adds ``tabulate>=0.9.0`` to ``[project].dependencies`` in
``pyproject.toml``. Published sdist and wheel already shipped, so
this ships in v1.0.2 via the next PyPI release.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>1 parent 9e4a8f2 commit 07dfc92
1 file changed
Lines changed: 5 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
49 | 49 | | |
50 | 50 | | |
51 | 51 | | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
52 | 57 | | |
53 | 58 | | |
54 | 59 | | |
| |||
0 commit comments