BLD: pin matplotlib to < 3.11.0#37
Conversation
a6d68b5 to
82e169e
Compare
|
If you want to do this temporarily that's fine, but:
|
|
In addition to that change, please always include an AI disclosure in your original comment, as noted previously. |
* raise ImportError for unsupported matplotlib versions * add `packaging` dependency to pyproject
|
I added a check to Locally, this error does raise when importing ______________________________________________________________________________________________________________________________ ERROR collecting neat_ml/tests ______________________________________________________________________________________________________________________________
/Users/awitmer/anaconda3/envs/neat_ml_3_12/lib/python3.12/importlib/__init__.py:90: in import_module
return _bootstrap._gcd_import(name[level:], package, level)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
<frozen importlib._bootstrap>:1381: in _gcd_import
???
<frozen importlib._bootstrap>:1354: in _find_and_load
???
<frozen importlib._bootstrap>:1304: in _find_and_load_unlocked
???
<frozen importlib._bootstrap>:488: in _call_with_frames_removed
???
<frozen importlib._bootstrap>:1381: in _gcd_import
???
<frozen importlib._bootstrap>:1354: in _find_and_load
???
<frozen importlib._bootstrap>:1304: in _find_and_load_unlocked
???
<frozen importlib._bootstrap>:488: in _call_with_frames_removed
???
<frozen importlib._bootstrap>:1381: in _gcd_import
???
<frozen importlib._bootstrap>:1354: in _find_and_load
???
<frozen importlib._bootstrap>:1325: in _find_and_load_unlocked
???
<frozen importlib._bootstrap>:929: in _load_unlocked
???
<frozen importlib._bootstrap_external>:994: in exec_module
???
<frozen importlib._bootstrap>:488: in _call_with_frames_removed
???
neat_ml/__init__.py:6: in <module>
raise ImportError("Workflow currently only supports `matplotlib<3.11.0`")
E ImportError: Workflow currently only supports `matplotlib<3.11.0`However, currently this check is not covered by our tests, is it common practice to add an explicit test for these checks to the repos test suite? |
No
Right, because with millions of users adding a new dependency for something so simple as a version check is undesirable, but doesn't matter for us. |
|
ok, this looks good to go to me, thanks |
As mentioned in issue #36, the newest release of
matplotlib(3.11.0) includes changes to text and font handling that break tests that rely on pixel level image comparisons (https://matplotlib.org/stable/release/prev_whats_new/whats_new_3.11.0#fonts-and-text). This PR pinsmatplotlibto versions below3.11.0to avoid implementing suggested work-arounds from thematplotlibrelease notes including:matplotlibin our workflow.AI Disclosure: No AI tools were used in generating original commit to this PR. Claude was used to check what was common practice for implementing dependency version checks in open source packages, and suggestions were cross-referenced with widely used open source packages such as
pandas