fix(deps): require preliz>=0.27.0 for matplotlib 3.11 compatibility - #37
Closed
frankbuckley wants to merge 1 commit into
Closed
fix(deps): require preliz>=0.27.0 for matplotlib 3.11 compatibility#37frankbuckley wants to merge 1 commit into
frankbuckley wants to merge 1 commit into
Conversation
The matplotlib 3.10.9 -> 3.11.0 bump (336bff1) removed the private matplotlib.style.core submodule. preliz <=0.26.0 imports it at module load, so `import preliz` raised AttributeError during pytest collection and aborted the whole test-python job (CI run 27759402631). preliz 0.27.0 ships the fix (arviz-devs/preliz#727). Pin the floor in both environment.yml and pyproject.toml so CI and the package metadata require the fixed release. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
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.
Problem
CI run 27759402631 failed in the
test-pythonjob.pytestaborted during collection (exit code 2):Because collection was interrupted, none of the other 128 tests ran.
Root cause
A dependency-version collision triggered by a Dependabot bump:
matplotlib.style.coresubmodule.prelizwas unpinned, so CI installed 0.26.0, which still importsmatplotlib.style.coreat module load — hence theAttributeErroronimport preliz.The run was unlucky on timing: preliz 0.27.0 — which ships the fix (arviz-devs/preliz#727, "Fix import failure on matplotlib 3.11") — was published ~50 minutes after CI executed pytest.
Fix
Pin the floor to
preliz>=0.27.0in bothenvironment.yml(used by CI) andsrc/python/pyproject.toml(package metadata), so the fixed release is required and a cached/olderprelizcannot regress.🤖 Generated with Claude Code