TST: Use proper matplotlib dev check#12059
Conversation
| TEX_UNAVAILABLE = not matplotlib.checkdep_usetex(True) | ||
|
|
||
| MATPLOTLIB_GT_3_4_3 = Version(matplotlib.__version__) > Version('3.4.3 ') | ||
| MATPLOTLIB_DEV = Version(matplotlib.__version__).is_devrelease |
There was a problem hiding this comment.
@pllim, you're more familiar with the history of this problem. Are only dev releases problematic, or have pre-releases likewise had dpi attribute weirdness? Looking at
https://packaging.pypa.io/en/latest/version.html#packaging.version.Version.is_prerelease
I see there's a flag .is_prerelease that is True for both pre and dev releases.
There was a problem hiding this comment.
Not sure. But we never test prerelease in the CI. If you look at tox.ini, it either installs stable versions or from source. 🤷
There was a problem hiding this comment.
Fair enough. Can always be adjusted later if we ever test on pre-releases.
|
It looks like me adding the "merge-when-ci-passes" label retriggered the daily and weekly CRON jobs. That's probably not supposed to happed 😬 |
|
Ops... @nstarman , can you please open an issue about the labeling CI bug? I will just cancel this rerun. There is no point to run them again. |
|
Thanks for the quick review! |
|
@meeseeksdev backport to v4.3.x |
|
Owee, I'm MrMeeseeks, Look at me. There seem to be a conflict, please backport manually. Here are approximate instructions:
And apply the correct labels and milestones. Congratulation you did some good work ! Hopefully your backport PR will be tested by the continuous integration and merged soon! If these instruction are inaccurate, feel free to suggest an improvement. |
|
Manual backport to v4.3.x done in c16c982 . I don't see this failure in LTS. |
TST: Use proper matplotlib dev check
|
I had to backport this to LTS in the end so updating the milestone |
Description
This pull request is to use proper check logic for matplotlib dev/stable version check, made possible by matplotlib/matplotlib#19419 (which was milestoned to 3.5.0). If some of our jobs fail, this PR might have to wait till the minversion of matplotlib can use this feature.
With this patch, we no longer have to bump the matplotlib version check in this file after every matplotlib release, as we had to do in the past in #11717 and #12052.
Fixes #12055
Checklist for package maintainer(s)
This checklist is meant to remind the package maintainer(s) who will review this pull request of some common things to look for. This list is not exhaustive.
Extra CIlabel.no-changelog-entry-neededlabel.astropy-botcheck might be missing; do not let the green checkmark fool you.backport-X.Y.xlabel(s) before merge.