Repository navigation
Conversation
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>
dudemaga
approved these changes
Nov 5, 2026
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
BLUF
plotext>=5.2.0,<6and adds two tests that render the burn-up chart through the installed plotext.display/chart.pyuses, so new pip installs fail with anAttributeError(Error: module 'plotext' has no attribute 'clear_figure'Β #15). The 0.8.0 standalone/npm binaries also fail, because plotext 6's compiledkernel.soisn't bundled by PyInstaller (0.8.0 standalone/npm binaries crash: "plotext cannot draw: its C++ part, kernel.so, was not built"Β #16).src/.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: newTestCreateChartthat callsBurnupChart._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:
maindeps (plotext 6.1.0)AttributeError: module 'plotext' has no attribute 'clear_figure'pytest --cov=ccburnon Python 3.10 / 3.11 / 3.12 / 3.13 (pip install -e ".[dev]", resolves plotext 5.3.2)ruff check src/ tests/python -m build+twine check dist/*Requires-Dist: plotext<6,>=5.2.0release.ymlPyInstaller command, thenccburn session --oncein a 140Γ50 ptykernel.soImportError here)Notes
--version, which the broken 0.8.0 binary passes. A smoke test that draws a chart offline would have caught this.kernel.sowould also need--collect-binaries plotextin the PyInstaller step. The pin is the minimal fix in the meantime.π€ Generated with Claude Code