Bug 252432 - math/py-matplotlib: Update to 3.3.3
Summary: math/py-matplotlib: Update to 3.3.3
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Only Me
Assignee: Rainer Hurling
URL: https://github.com/matplotlib/matplot...
Keywords:
Depends on:
Blocks:
 
Reported: 2021-01-05 08:41 UTC by Rainer Hurling
Modified: 2021-01-05 17:07 UTC (History)
3 users (show)

See Also:
mainland: maintainer-feedback+


Attachments
patch to update from 3.3.1 to 3.3.3 (4.64 KB, patch)
2021-01-05 08:41 UTC, Rainer Hurling
no flags Details | Diff
patch to update from 3.3.1 to 3.3.3 v2 (2.33 KB, patch)
2021-01-05 15:14 UTC, Rainer Hurling
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Rainer Hurling freebsd_committer freebsd_triage 2021-01-05 08:41:41 UTC
Created attachment 221283 [details]
patch to update from 3.3.1 to 3.3.3

Newest release v3.3.3 of matplotlib is from 2020-11-12. In the two bug fix releases since our current port v3.3.1 there are several fixes:

- Fix calls to Axis.grid with argument visible=True
- Fix fully masked imshow
- Fix inconsistent color mapping in scatter for 3D plots
- Fix notebook/nbAgg figures when used with ipywidgets in the same cell
- Fix notebook/nbAgg/WebAgg on older (e.g., Firefox ESR) browsers
- Fix pcolormesh with datetime coordinates
- Fix performance regression with datetimes
- Fix singular ticks with small log ranges
- Fix timers/animations on wx and notebook backends
- Remove certifi as a hard runtime dependency

- Fix Axis scale on twinned Axes
- Fix auto-close of Figures in nbagg
- Fix automatic title placement if Axes is off the Figure
- Fix autoranging of log scales with barstacked histogram
- Fix extra redraws when using Button or TextBox widgets
- Fix imshow with LogNorm and large vmin/vmax ranges
- Fix plotting Pandas DataFrame with string MultiIndex
- Fix scatter with marker=''
- Fix scatter3d color/linewidth re-projection
- Fix state of mode buttons in TkAgg backends
- Include license files in built distribution


The update of the port does

- Update version from 3.3.1 to 3.3.3
- Reorder some Makefile vars, as suggested by portclippy
  (from ports-mgmt/portfmt)
- Enable pytz and dateutil in files/patch-setup.cfg
- Renew pkg-plist


As the port considers devel/py-pytz and devel/py-dateutil as RUN_DEPENDS, I also enabled them for the build process (via files/patch-setup.cfg). However, I have not carefully tested whether the functionalities are available with it.

The port does not build the libraries in %%PYTHON_SITELIBDIR%%/matplotlib/backends/ (_contour.so, ft2font.so, _image.so, _path.so, _qhull.so, _tri.so, _ttconv.so) with PYTHON_EXT_SUFFIX anymore. Don't know, if this would cause any regression? Probably not ...
Comment 1 Kai Knoblich freebsd_committer freebsd_triage 2021-01-05 12:57:26 UTC
(In reply to Rainer Hurling from comment #0)

I stumbled over this PR because I committed the Python 3.8 build fix for the pkg-plist entries.

The PYTHON_EXT_SUFFIX entries in the pkg-plist are only required for Python 3.8 at the moment.  They will be needed for Python 3.9.2 as well once it's in the Ports tree.

You can test all flavors of a Python port by adding

> FLAVOR_DEFAULT_ALL=yes

to poudriere.conf.  Also add the following line to the make.conf

> BUILD_ALL_PYTHON_FLAVORS=yes
Comment 2 Rainer Hurling freebsd_committer freebsd_triage 2021-01-05 15:14:27 UTC
Created attachment 221290 [details]
patch to update from 3.3.1 to 3.3.3 v2

Thanks Kai, 

For the hint.

I tested for different Flavors with Poudriere, and yes, you are right: PYTHON_EXT_SUFFIX is needed for Python > 3.7.

An updated patch is attached :)
Comment 3 Geoffrey Mainland 2021-01-05 15:22:52 UTC
Thanks for the patch!
Comment 4 commit-hook freebsd_committer freebsd_triage 2021-01-05 17:06:42 UTC
A commit references this bug:

Author: rhurlin
Date: Tue Jan  5 17:05:58 UTC 2021
New revision: 560413
URL: https://svnweb.freebsd.org/changeset/ports/560413

Log:
  math/py-matplotlib: Update to 3.3.3

  Changelog: https://github.com/matplotlib/matplotlib/releases

  PR:		252432
  Approved by:	arrowd (mentor)

Changes:
  head/math/py-matplotlib/Makefile
  head/math/py-matplotlib/distinfo
  head/math/py-matplotlib/files/patch-setup.cfg
Comment 5 Rainer Hurling freebsd_committer freebsd_triage 2021-01-05 17:07:45 UTC
Committed :)