Skip to content

[high] πŸ› Pin plotext below 6 to fix chart rendering - #17

Open
elhoim wants to merge 1 commit into
JuanjoFuchs:mainfrom
elhoim:fix/pin-plotext-below-6
Open

elhoim wants to merge 1 commit into
JuanjoFuchs:mainfrom
elhoim:fix/pin-plotext-below-6

Conversation

@elhoim

@elhoim elhoim commented Oct 12, 2026

Copy link
Copy Markdown

BLUF

Fixes #15
Fixes #16

Changes

  • pyproject.toml: plotext>=5.2.0 β†’ plotext>=5.2.0,<6, with a comment saying why.
  • tests/test_chart.py: new TestCreateChart that calls BurnupChart._create_chart() with and without data. The existing chart tests only cover _compute_display_window, which is why CI stayed green on 0.8.0 while resolving plotext 6.1.0.

Verification

Every CI job reproduced locally:

Check Result
New tests on unpinned main deps (plotext 6.1.0) ❌ both fail: AttributeError: module 'plotext' has no attribute 'clear_figure'
pytest --cov=ccburn on Python 3.10 / 3.11 / 3.12 / 3.13 (pip install -e ".[dev]", resolves plotext 5.3.2) βœ… 110 passed on each
ruff check src/ tests/ βœ… clean
python -m build + twine check dist/* βœ… passed; wheel metadata reads Requires-Dist: plotext<6,>=5.2.0
release.yml PyInstaller command, then ccburn session --once in a 140Γ—50 pty βœ… chart renders (the published 0.8.0 binary raises the kernel.so ImportError here)

Notes

  • A patch release is needed so the npm and GitHub binaries get rebuilt.
  • Possible follow-up, not in this PR: the release workflow's "Test executable" step only runs --version, which the broken 0.8.0 binary passes. A smoke test that draws a chart offline would have caught this.
  • Moving to the plotext 6 API is a larger change, and plotext 6's kernel.so would also need --collect-binaries plotext in the PyInstaller step. The pin is the minimal fix in the meantime.

πŸ€– Generated with Claude Code

plotext 6 is a rewrite: it removed the module-level API that
display/chart.py uses (clear_figure, plot, build, plotsize, ...) and
ships a compiled kernel.so that the PyInstaller release build doesn't
bundle. Unpinned installs fail with AttributeError, and the 0.8.0
standalone/npm binaries fail with "plotext cannot draw: its C++ part,
kernel.so, was not built".

Pin plotext>=5.2.0,<6 and add tests that render the chart through the
installed plotext, so a breaking plotext release fails CI instead of
shipping.

Fixes JuanjoFuchs#15
Fixes JuanjoFuchs#16

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

2 participants