pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/graphics py-matplotlib: updated to 3.1.0



details:   https://anonhg.NetBSD.org/pkgsrc/rev/541ff0058229
branches:  trunk
changeset: 397078:541ff0058229
user:      adam <adam%pkgsrc.org@localhost>
date:      Sun Jun 16 13:11:34 2019 +0000

description:
py-matplotlib: updated to 3.1.0

REL: v3.1.0
The first release of the v3.1 series
This version of Matplotlib support Python 3.6+
Highlights of this release include:
 - A helper method for scatter legends
 - Secondary axis support (ex, degrees and radians)
 - A concise date formatter
 - No longer requires a framework build of Python to use OSX backend
 - Major and minor ticks will no longer collide by default
 - A progress callback for animations
 - mplot3D is always registered
 - deprecated mlab functions have been removed
 - Many function calls have become stricter about invalid or ignored input

REL: v3.0.3
The third and last planned bug-fix release of the 3.0 series
* fix several possible memory leaks
* documentation fixes

jquery-ui is no longer bundled in git repo and is downloaded during
the install or sdist process. If you are installing from pypi the
files will be included, but if you are installing from git you will
need internet access the first time you run `pip install .`. The
install process tries to cache the files and will not need internet
access on future installations.

REL: v3.0.2
This is the second bug-fix release for the v3.0 series.
 - Un-breaks basemap which was broken by partially restoring
   private APIs for cartopy.
 - Fixes bug in warning code when used in an embedded context.
 - Fixes crash when using Tk and closing the first open window before showing it
 - Many documentation improvements.
 - Restore a corner case on ColorBar tick usage.
 - Change the default behavior of `matplotlib.use` to silently allow
   more 'safe' switching after auto-discovery, but before starting an event loop.
 - Improvements to bounding box calculations.
 - Provide the correct length for RcParams instances.

REL: v3.0.1
This is the first bug fix release for the 3.0 series which fixes
several
 - Fix failure to import bug when used with backend-fallback on Python
   3.6.7 and 3.7.1
 - Fixed a number of failure to import bugs around finding fonts
 - Fix Qt4 backend
 - Fix bug on OSX that recursively searched current directory for fonts
 - Fix bouncing-rocket on OSX when doing backend fallback and not
   selecting OSX
 - Temporarily restore several private APIs to unbreak cartopy
 - Make pyplot more tolerant of varying signatures in 3rd-party
   sub-classe
 - Improve datetime64 unit handling
 - Fixed several poor interactions with tight_layout

REL: v3.0.0
The first release of the Matplotlib 3.0 series
This is the first version of Matplotlib to only support Python 3.
Highlights of this release include:
 - GUI backend is selected at run-time based on what toolkits are
   installed.  A GUI toolkit will not be selected on a headless
   server.
 - New cyclic color map *twilight*
 - Improvements to automatic layout of titles, ticks, and GridSpec
 - Many bug fixes!

diffstat:

 graphics/Makefile                                       |    4 +-
 graphics/py-matplotlib-gtk2/DESCR                       |   10 -
 graphics/py-matplotlib-gtk2/Makefile                    |   40 ------
 graphics/py-matplotlib-gtk2/PLIST                       |    3 -
 graphics/py-matplotlib-tk/DESCR                         |   10 -
 graphics/py-matplotlib-tk/Makefile                      |   39 ------
 graphics/py-matplotlib-tk/PLIST                         |    2 -
 graphics/py-matplotlib/MESSAGE                          |   10 +
 graphics/py-matplotlib/Makefile                         |   50 ++-----
 graphics/py-matplotlib/Makefile.common                  |   25 ----
 graphics/py-matplotlib/PLIST                            |  100 ++++++---------
 graphics/py-matplotlib/distinfo                         |   13 +-
 graphics/py-matplotlib/patches/patch-setup.py           |   28 ----
 graphics/py-matplotlib/patches/patch-src___macosx.m     |   17 --
 graphics/py-matplotlib/patches/patch-src_file__compat.h |   29 ----
 15 files changed, 70 insertions(+), 310 deletions(-)

diffs (truncated from 563 to 300 lines):

diff -r d6e38563634d -r 541ff0058229 graphics/Makefile
--- a/graphics/Makefile Sun Jun 16 09:13:11 2019 +0000
+++ b/graphics/Makefile Sun Jun 16 13:11:34 2019 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.819 2019/06/05 21:21:12 wiz Exp $
+# $NetBSD: Makefile,v 1.820 2019/06/16 13:11:34 adam Exp $
 #
 
 COMMENT=       Graphics tools and libraries
@@ -470,8 +470,6 @@
 SUBDIR+=       py-imaging
 SUBDIR+=       py-imagingtk
 SUBDIR+=       py-matplotlib
-SUBDIR+=       py-matplotlib-gtk2
-SUBDIR+=       py-matplotlib-tk
 SUBDIR+=       py-mcomix
 SUBDIR+=       py-nwdiag
 SUBDIR+=       py-objgraph
diff -r d6e38563634d -r 541ff0058229 graphics/py-matplotlib-gtk2/DESCR
--- a/graphics/py-matplotlib-gtk2/DESCR Sun Jun 16 09:13:11 2019 +0000
+++ /dev/null   Thu Jan 01 00:00:00 1970 +0000
@@ -1,10 +0,0 @@
-matplotlib is a pure python plotting library designed to bring
-publication quality plotting to python with a syntax familiar to
-matlab users.  A lot progress towards this goal has been made since
-the first release of matplotlib, the library does produce high quality
-2D plots.  All of the plotting commands can be accessed either via a
-functional interface familiar to matlab users or an object oriented
-interface familiar to python users, and several high resolution output
-formats are supported.
-
-Tutorial: https://matplotlib.org/users/tutorials.html
diff -r d6e38563634d -r 541ff0058229 graphics/py-matplotlib-gtk2/Makefile
--- a/graphics/py-matplotlib-gtk2/Makefile      Sun Jun 16 09:13:11 2019 +0000
+++ /dev/null   Thu Jan 01 00:00:00 1970 +0000
@@ -1,40 +0,0 @@
-# $NetBSD: Makefile,v 1.69 2018/11/14 22:21:45 kleink Exp $
-
-PKGREVISION= 4
-.include "../../graphics/py-matplotlib/Makefile.common"
-
-PKGNAME=       ${PYPKGPREFIX}-${DISTNAME:S/-/-gtk-/}
-COMMENT=       GTK frontend for matplotlib
-
-MPL_PACKAGES=  [setupext.Numpy(),setupext.LibAgg(),setupext.BackendGtkAgg(),setupext.BackendGtk()]
-
-DEPENDS+=      ${PYPKGPREFIX}-matplotlib-[0-9]*:../../graphics/py-matplotlib
-
-PYTHON_VERSIONS_ACCEPTED=      27 # py-gtk2
-
-post-patch:
-       ( ${ECHO} "[directories]"; \
-       ${ECHO} "basedirlist=/usr"; \
-       ${ECHO} "[provide_packages]"; \
-       ${ECHO} "pytz = False"; \
-       ${ECHO} "dateutil = False"; \
-       ${ECHO} "[gui_support]"; \
-       ${ECHO} "gtk = True"; \
-       ${ECHO} "tkagg = False"; \
-       ${ECHO} "wxagg = False"; \
-       ${ECHO} "macosx = False" ) > ${WRKSRC}/setup.cfg
-
-post-install:
-       ${RM} -r ${DESTDIR}/${PREFIX}/${PYSITELIB}/${EGG_INFODIR}
-
-do-test:
-       ${ECHO} "backend      : GTKAgg" > ${WRKSRC}/matplotlibrc
-       ${RUN} cd ${WRKSRC} && MPLCONFIGDIR=${PWD} \
-       MATPLOTLIBDATA=${WRKSRC}/lib/matplotlib/mpl-data \
-       PYTHONPATH=${DESTDIR}${PREFIX}/${PYSITELIB} \
-       ${PYTHONBIN} -c "import matplotlib; matplotlib.test()"
-
-.include "../../lang/python/egg.mk"
-.include "../../math/py-numpy/buildlink3.mk"
-.include "../../x11/py-gtk2/buildlink3.mk"
-.include "../../mk/bsd.pkg.mk"
diff -r d6e38563634d -r 541ff0058229 graphics/py-matplotlib-gtk2/PLIST
--- a/graphics/py-matplotlib-gtk2/PLIST Sun Jun 16 09:13:11 2019 +0000
+++ /dev/null   Thu Jan 01 00:00:00 1970 +0000
@@ -1,3 +0,0 @@
-@comment $NetBSD: PLIST,v 1.2 2008/12/19 22:39:47 markd Exp $
-${PYSITELIB}/matplotlib/backends/_backend_gdk.so
-${PYSITELIB}/matplotlib/backends/_gtkagg.so
diff -r d6e38563634d -r 541ff0058229 graphics/py-matplotlib-tk/DESCR
--- a/graphics/py-matplotlib-tk/DESCR   Sun Jun 16 09:13:11 2019 +0000
+++ /dev/null   Thu Jan 01 00:00:00 1970 +0000
@@ -1,10 +0,0 @@
-matplotlib is a pure python plotting library designed to bring
-publication quality plotting to python with a syntax familiar to
-matlab users.  A lot progress towards this goal has been made since
-the first release of matplotlib, the library does produce high quality
-2D plots.  All of the plotting commands can be accessed either via a
-functional interface familiar to matlab users or an object oriented
-interface familiar to python users, and several high resolution output
-formats are supported.
-
-Tutorial: https://matplotlib.org/users/tutorials.html
diff -r d6e38563634d -r 541ff0058229 graphics/py-matplotlib-tk/Makefile
--- a/graphics/py-matplotlib-tk/Makefile        Sun Jun 16 09:13:11 2019 +0000
+++ /dev/null   Thu Jan 01 00:00:00 1970 +0000
@@ -1,39 +0,0 @@
-# $NetBSD: Makefile,v 1.34 2018/07/11 16:19:32 gson Exp $
-
-PKGREVISION= 1
-.include "../../graphics/py-matplotlib/Makefile.common"
-
-PKGNAME=       ${PYPKGPREFIX}-${DISTNAME:S/-/-tk-/}
-COMMENT=       Tk frontend for matplotlib
-
-DEPENDS+=      ${PYPKGPREFIX}-matplotlib-[0-9]*:../../graphics/py-matplotlib
-DEPENDS+=      ${PYPKGPREFIX}-Tk-[0-9]*:../../x11/py-Tk
-
-MPL_PACKAGES=  [setupext.Numpy(),setupext.LibAgg(),setupext.BackendTkAgg()]
-
-post-patch:
-       ( ${ECHO} "[directories]"; \
-       ${ECHO} "basedirlist=/usr"; \
-       ${ECHO} "[provide_packages]"; \
-       ${ECHO} "pytz = False"; \
-       ${ECHO} "dateutil = False"; \
-       ${ECHO} "[gui_support]"; \
-       ${ECHO} "gtk = False"; \
-       ${ECHO} "tkagg = True"; \
-       ${ECHO} "wxagg = False"; \
-       ${ECHO} "macosx = False" ) > ${WRKSRC}/setup.cfg
-
-post-install:
-       ${RM} -r ${DESTDIR}/${PREFIX}/${PYSITELIB}/${EGG_INFODIR}
-
-do-test:
-       ${ECHO} "backend      : TkAgg" > ${WRKSRC}/matplotlibrc
-       ${RUN} cd ${WRKSRC} && MPLCONFIGDIR=${PWD} \
-       MATPLOTLIBDATA=${WRKSRC}/lib/matplotlib/mpl-data \
-       PYTHONPATH=${DESTDIR}${PREFIX}/${PYSITELIB} \
-       ${PYTHONBIN} -c "import matplotlib; matplotlib.test()"
-
-.include "../../lang/python/egg.mk"
-.include "../../math/py-numpy/buildlink3.mk"
-.include "../../x11/tk/buildlink3.mk"
-.include "../../mk/bsd.pkg.mk"
diff -r d6e38563634d -r 541ff0058229 graphics/py-matplotlib-tk/PLIST
--- a/graphics/py-matplotlib-tk/PLIST   Sun Jun 16 09:13:11 2019 +0000
+++ /dev/null   Thu Jan 01 00:00:00 1970 +0000
@@ -1,2 +0,0 @@
-@comment $NetBSD: PLIST,v 1.3 2014/01/21 19:22:08 drochner Exp $
-${PYSITELIB}/matplotlib/backends/_tkagg.so
diff -r d6e38563634d -r 541ff0058229 graphics/py-matplotlib/MESSAGE
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/graphics/py-matplotlib/MESSAGE    Sun Jun 16 13:11:34 2019 +0000
@@ -0,0 +1,10 @@
+===========================================================================
+$NetBSD: MESSAGE,v 1.1 2019/06/16 13:11:34 adam Exp $
+
+MatPlotLib can use additional user interface backends.
+
+For GTK3-base backends, install devel/py-gobject3 and x11/gtk3 packages.
+For Qt5-base backends, install x11/py-qt5 package.
+For Tk-base backends, install x11/py-Tk package.
+
+===========================================================================
diff -r d6e38563634d -r 541ff0058229 graphics/py-matplotlib/Makefile
--- a/graphics/py-matplotlib/Makefile   Sun Jun 16 09:13:11 2019 +0000
+++ b/graphics/py-matplotlib/Makefile   Sun Jun 16 13:11:34 2019 +0000
@@ -1,52 +1,30 @@
-# $NetBSD: Makefile,v 1.53 2018/07/11 16:19:32 gson Exp $
+# $NetBSD: Makefile,v 1.54 2019/06/16 13:11:34 adam Exp $
 
-.include "Makefile.common"
+DISTNAME=      matplotlib-3.1.0
+PKGNAME=       ${PYPKGPREFIX}-${DISTNAME}
+CATEGORIES=    graphics python
+MASTER_SITES=  ${MASTER_SITE_PYPI:=m/matplotlib/}
 
-PKGNAME=       ${PYPKGPREFIX}-${DISTNAME}
-PKGREVISION=   1
+MAINTAINER=    pkgsrc-users%NetBSD.org@localhost
+HOMEPAGE=      https://matplotlib.org/
 COMMENT=       Matlab-style plotting package for Python
+# LICENSE=     see ${WRKSRC}/LICENSE/LICENSE
 
+DEPENDS+=      ${PYPKGPREFIX}-Pillow>=3.4:../../graphics/py-Pillow
 DEPENDS+=      ${PYPKGPREFIX}-cairo-[0-9]*:../../graphics/py-cairo
 DEPENDS+=      ${PYPKGPREFIX}-cycler>=0.10:../../graphics/py-cycler
 DEPENDS+=      ${PYPKGPREFIX}-dateutil>=2.1:../../time/py-dateutil
 DEPENDS+=      ${PYPKGPREFIX}-kiwisolver>=1.0.1:../../math/py-kiwisolver
-DEPENDS+=      ${PYPKGPREFIX}-pytz>=2008b:../../time/py-pytz
 DEPENDS+=      ${PYPKGPREFIX}-pyparsing>=2.2.0:../../devel/py-pyparsing
-DEPENDS+=      ${PYPKGPREFIX}-six>=1.10:../../lang/py-six
-TEST_DEPENDS+= ${PYPKGPREFIX}-mock-[0-9]*:../../devel/py-mock
-TEST_DEPENDS+= ${PYPKGPREFIX}-nose-[0-9]*:../../devel/py-nose
-
-.include "../../lang/python/pyversion.mk"
-.if "${PYPKGPREFIX}" == "py27"
-DEPENDS+=      ${PYPKGPREFIX}-backports.functools_lru_cache-[0-9]*:../../devel/py-backports.functools_lru_cache
-DEPENDS+=      ${PYPKGPREFIX}-subprocess32-[0-9]*:../../devel/py-subprocess32
-.endif
-
-MPL_PACKAGES=  mpl_packages
+TEST_DEPENDS+= ${PYPKGPREFIX}-test-[0-9]*:../../devel/py-test
 
-REPLACE_PYTHON=                lib/matplotlib/dates.py
-REPLACE_PYTHON+=       lib/matplotlib/sankey.py
-REPLACE_PYTHON+=       lib/mpl_toolkits/mplot3d/art3d.py
-REPLACE_PYTHON+=       lib/mpl_toolkits/mplot3d/axes3d.py
-REPLACE_PYTHON+=       lib/mpl_toolkits/mplot3d/axis3d.py
-REPLACE_PYTHON+=       lib/mpl_toolkits/mplot3d/proj3d.py
+USE_LANGUAGES=         c c++
+USE_TOOLS+=            pkg-config
 
-post-patch:
-       ( ${ECHO} "[directories]"; \
-       ${ECHO} "basedirlist=/usr"; \
-       ${ECHO} "[gui_support]"; \
-       ${ECHO} "gtk = False"; \
-       ${ECHO} "tkagg = False"; \
-       ${ECHO} "wxagg = False" ) > ${WRKSRC}/setup.cfg
+PYTHON_VERSIONS_INCOMPATIBLE=  27
 
-do-test:
-       ${ECHO} "backend      : GTKAgg" > ${WRKSRC}/matplotlibrc
-       ${RUN} cd ${WRKSRC} && MPLCONFIGDIR=${PWD} \
-       MATPLOTLIBDATA=${WRKSRC}/lib/matplotlib/mpl-data \
-       PYTHONPATH=${DESTDIR}${PREFIX}/${PYSITELIB} \
-       ${PYTHONBIN} -c "import matplotlib; matplotlib.test()"
+PYSETUPTESTTARGET=     pytest
 
-.include "../../lang/python/application.mk"
 .include "../../lang/python/egg.mk"
 .include "../../devel/zlib/buildlink3.mk"
 .include "../../graphics/freetype2/buildlink3.mk"
diff -r d6e38563634d -r 541ff0058229 graphics/py-matplotlib/Makefile.common
--- a/graphics/py-matplotlib/Makefile.common    Sun Jun 16 09:13:11 2019 +0000
+++ /dev/null   Thu Jan 01 00:00:00 1970 +0000
@@ -1,25 +0,0 @@
-# $NetBSD: Makefile.common,v 1.6 2018/04/14 12:52:56 adam Exp $
-# used by graphics/py-matplotlib/Makefile
-# used by graphics/py-matplotlib-gtk2/Makefile
-# used by graphics/py-matplotlib-tk/Makefile
-
-DISTNAME=      matplotlib-2.2.2
-CATEGORIES=    graphics python
-MASTER_SITES=  ${MASTER_SITE_PYPI:=m/matplotlib/}
-
-MAINTAINER=    pkgsrc-users%NetBSD.org@localhost
-HOMEPAGE=      https://matplotlib.org/
-# LICENSE=     see ${WRKSRC}/LICENSE/LICENSE
-
-DISTINFO_FILE= ${.CURDIR}/../../graphics/py-matplotlib/distinfo
-PATCHDIR=      ${.CURDIR}/../../graphics/py-matplotlib/patches
-
-USE_LANGUAGES=         c c++
-USE_TOOLS+=            pkg-config
-
-# see patch-setup.py
-SUBST_CLASSES+=                mplpkgs
-SUBST_STAGE.mplpkgs=   pre-configure
-SUBST_MESSAGE.mplpkgs= Selecting mpl packages.
-SUBST_FILES.mplpkgs=   setup.py
-SUBST_VARS.mplpkgs=    MPL_PACKAGES
diff -r d6e38563634d -r 541ff0058229 graphics/py-matplotlib/PLIST
--- a/graphics/py-matplotlib/PLIST      Sun Jun 16 09:13:11 2019 +0000
+++ b/graphics/py-matplotlib/PLIST      Sun Jun 16 13:11:34 2019 +0000
@@ -1,4 +1,4 @@
-@comment $NetBSD: PLIST,v 1.23 2018/04/14 12:52:56 adam Exp $
+@comment $NetBSD: PLIST,v 1.24 2019/06/16 13:11:34 adam Exp $
 ${PYSITELIB}/${EGG_INFODIR}/PKG-INFO
 ${PYSITELIB}/${EGG_INFODIR}/SOURCES.txt
 ${PYSITELIB}/${EGG_INFODIR}/dependency_links.txt
@@ -61,6 +61,9 @@
 ${PYSITELIB}/matplotlib/axes/_base.py
 ${PYSITELIB}/matplotlib/axes/_base.pyc
 ${PYSITELIB}/matplotlib/axes/_base.pyo
+${PYSITELIB}/matplotlib/axes/_secondary_axes.py
+${PYSITELIB}/matplotlib/axes/_secondary_axes.pyc
+${PYSITELIB}/matplotlib/axes/_secondary_axes.pyo
 ${PYSITELIB}/matplotlib/axes/_subplots.py
 ${PYSITELIB}/matplotlib/axes/_subplots.pyc
 ${PYSITELIB}/matplotlib/axes/_subplots.pyo
@@ -80,24 +83,19 @@
 ${PYSITELIB}/matplotlib/backends/__init__.pyc
 ${PYSITELIB}/matplotlib/backends/__init__.pyo
 ${PYSITELIB}/matplotlib/backends/_backend_agg.so
+${PYSITELIB}/matplotlib/backends/_backend_pdf_ps.py
+${PYSITELIB}/matplotlib/backends/_backend_pdf_ps.pyc
+${PYSITELIB}/matplotlib/backends/_backend_pdf_ps.pyo
 ${PYSITELIB}/matplotlib/backends/_backend_tk.py
 ${PYSITELIB}/matplotlib/backends/_backend_tk.pyc
 ${PYSITELIB}/matplotlib/backends/_backend_tk.pyo
-${PYSITELIB}/matplotlib/backends/_gtk3_compat.py
-${PYSITELIB}/matplotlib/backends/_gtk3_compat.pyc
-${PYSITELIB}/matplotlib/backends/_gtk3_compat.pyo
+${PYSITELIB}/matplotlib/backends/_tkagg.so
 ${PYSITELIB}/matplotlib/backends/backend_agg.py
 ${PYSITELIB}/matplotlib/backends/backend_agg.pyc
 ${PYSITELIB}/matplotlib/backends/backend_agg.pyo
 ${PYSITELIB}/matplotlib/backends/backend_cairo.py
 ${PYSITELIB}/matplotlib/backends/backend_cairo.pyc
 ${PYSITELIB}/matplotlib/backends/backend_cairo.pyo
-${PYSITELIB}/matplotlib/backends/backend_gdk.py
-${PYSITELIB}/matplotlib/backends/backend_gdk.pyc



Home | Main Index | Thread Index | Old Index