[arch-commits] Commit in python-matplotlib/repos (6 files)
Felix Yan
fyan at archlinux.org
Fri Oct 30 07:19:02 UTC 2015
Date: Friday, October 30, 2015 @ 08:19:01
Author: fyan
Revision: 145285
archrelease: copy trunk to community-i686, community-x86_64
Added:
python-matplotlib/repos/community-i686/PKGBUILD
(from rev 145284, python-matplotlib/trunk/PKGBUILD)
python-matplotlib/repos/community-x86_64/PKGBUILD
(from rev 145284, python-matplotlib/trunk/PKGBUILD)
Deleted:
python-matplotlib/repos/community-i686/PKGBUILD
python-matplotlib/repos/community-i686/fix-numpy-warning.patch
python-matplotlib/repos/community-x86_64/PKGBUILD
python-matplotlib/repos/community-x86_64/fix-numpy-warning.patch
------------------------------------------+
/PKGBUILD | 228 +++++++++++++++++++++++++++++
community-i686/PKGBUILD | 117 --------------
community-i686/fix-numpy-warning.patch | 35 ----
community-x86_64/PKGBUILD | 117 --------------
community-x86_64/fix-numpy-warning.patch | 35 ----
5 files changed, 228 insertions(+), 304 deletions(-)
Deleted: community-i686/PKGBUILD
===================================================================
--- community-i686/PKGBUILD 2015-10-30 07:18:27 UTC (rev 145284)
+++ community-i686/PKGBUILD 2015-10-30 07:19:01 UTC (rev 145285)
@@ -1,117 +0,0 @@
-# $Id$
-# Maintainer: Felix Yan <felixonmars at archlinux.org>
-# Contributor: Stéphane Gaudreault <stephane at archlinux.org>
-# Contributor: Stefan Husmann <stefan-husmann at t-online.de>
-# Contributor: Angel 'angvp' Velasquez <angvp[at]archlinux.com.ve>
-# Contributor: Douglas Soares de Andrade <dsa at aur.archlinux.org>
-
-pkgbase=python-matplotlib
-pkgname=('python2-matplotlib' 'python-matplotlib')
-pkgver=1.4.3
-pkgrel=4
-pkgdesc="A python plotting library, making publication quality plots"
-arch=('i686' 'x86_64')
-url='http://matplotlib.org'
-license=('custom')
-checkdepends=('python-nose' 'python2-nose' 'python-mock' 'python2-mock' 'xorg-server-xvfb'
- 'texlive-core' 'texlive-latexextra' 'imagemagick' 'ffmpeg' 'mencoder' 'inkscape')
-makedepends=('python2-pytz' 'python2-numpy' 'python2-pyqt4' 'python-pytz' 'python-numpy'
- 'python-pyqt4' 'tk' 'python-cairocffi' 'python2-cairocffi' 'python-dateutil'
- 'python2-dateutil' 'python-gobject' 'python2-gobject' 'python-pyparsing'
- 'python2-pyparsing' 'pygtk' 'python-six' 'ghostscript' 'texlive-bin'
- 'python-tornado' 'python2-tornado' 'gtk3' 'wxpython' 'python-pyqt5' 'python2-pyqt5'
- 'libxkbcommon-x11' 'python-pillow' 'python2-pillow')
-source=("$pkgbase-$pkgver.tar.gz::https://github.com/matplotlib/matplotlib/archive/v$pkgver.tar.gz"
- fix-numpy-warning.patch)
-sha512sums=('4aebbda31934bedbee5206b783e5cbe07db17367d50117a50bb80b7ea4aad987ec225958bed58885c561f00582c309d6e8c0a69861d3b4210a09b2d63975d2aa'
- '5cfb8458c1b71f853cc1571fc0e4c8e3ebcf555f24a043a9b94f023e16dca8aa700339646783453918b0dc986de0f9d622f6e04ca785882ce189247b7f7a60b3')
-
-prepare() {
- # https://github.com/matplotlib/matplotlib/commit/5e8fb6213394ee27ea0d5ff6337ef6efd3e9c667
- (cd matplotlib-${pkgver}; patch -p1 -i ../fix-numpy-warning.patch)
-
- cp -a matplotlib-${pkgver} matplotlib-${pkgver}-py2
-
- cd matplotlib-${pkgver}
- for file in $(find . -name '*.py' -print); do
- sed -i -e "s|^#!.*/usr/bin/python|#!/usr/bin/python3|" \
- -e "s|^#!.*/usr/bin/env *python|#!/usr/bin/env python3|" ${file}
- done
-
- cd ../matplotlib-${pkgver}-py2
- for file in $(find . -name '*.py' -print); do
- sed -i -e "s|^#!.*/usr/bin/python|#!/usr/bin/python2|" \
- -e "s|^#!.*/usr/bin/env *python|#!/usr/bin/env python2|" ${file}
- done
-}
-
-build() {
- # this seems to need to be present or gtk/gdk dies
- # and hangs the build checking if gtk3cairo is installed
- export XDG_RUNTIME_DIR=/tmp
-
- cd matplotlib-${pkgver}
- python3 setup.py build
-
- cd ../matplotlib-${pkgver}-py2
- python2 setup.py build
-}
-
-check() {
- cd matplotlib-${pkgver}
- (
- export PYTHONPATH="$PWD/build/lib.linux-$CARCH-3.5:$PYTHONPATH"
- python -c "from matplotlib import font_manager"
- rm -rf ../tmp_test_dir && mkdir ../tmp_test_dir && cd ../tmp_test_dir
- xvfb-run -a -s "+extension GLX +extension RANDR +render -screen 0 1280x1024x24" \
- python ../matplotlib-${pkgver}/tests.py -sv --processes=8 --process-timeout=300 || warning "Tests failed"
- )
-
- cd ../matplotlib-${pkgver}-py2
- (
- export PYTHONPATH="$PWD/build/lib.linux-$CARCH-2.7:$PYTHONPATH"
- python2 -c "from matplotlib import font_manager"
- rm -rf ../tmp_test_dir && mkdir ../tmp_test_dir && cd ../tmp_test_dir
- xvfb-run -a -s "+extension GLX +extension RANDR +render -screen 0 1280x1024x24" \
- python2 ../matplotlib-${pkgver}-py2/tests.py -sv --processes=8 --process-timeout=300 || warning "Tests failed"
- )
-}
-
-package_python2-matplotlib() {
- depends=('python2-pytz' 'python2-numpy' 'python2-pyqt5' 'python2-dateutil' 'python2-pyparsing' 'libxkbcommon-x11')
- optdepends=('pygtk: for GTK/GTKAgg/GTKCairo backend'
- 'python2-cairo: for GTKCairo/GTK3Cairo backend'
- 'python2-cairocffi: for GTKCairo/GTK3Cairo backend (alternative to python2-cairo)'
- 'python2-pyqt4: for Qt4Agg backend'
- 'tk: used by the TkAgg backend'
- 'ghostscript: usetex dependencies'
- 'texlive-bin: usetex dependencies'
- 'python2-tornado: for webagg backend'
- 'python2-gobject: for GTK3Agg/GTK3Cairo backend'
- 'wxpython: for WX/WXAgg backend'
- 'python2-pillow: for reading/saving .jpg/bmp/tiff files')
-
- cd matplotlib-${pkgver}-py2
- python2 setup.py install -O1 --skip-build --root "${pkgdir}" --prefix=/usr
-
- install -dm755 "${pkgdir}"/usr/share/licenses/python2-matplotlib
- install -m 644 doc/users/license.rst "${pkgdir}"/usr/share/licenses/python2-matplotlib
-}
-
-package_python-matplotlib() {
- depends=('python-pytz' 'python-numpy' 'python-pyqt5' 'python-dateutil' 'python-pyparsing' 'libxkbcommon-x11')
- optdepends=('python-gobject: for GTK3Agg/GTK3Cairo backend'
- 'python-cairocffi: for GTK3Agg/GTK3Cairo backend'
- 'python-pyqt4: for Qt4Agg backend'
- 'tk: used by the TkAgg backend'
- 'ghostscript: usetex dependencies'
- 'texlive-bin: usetex dependencies'
- 'python-tornado: for webagg backend'
- 'python-pillow: for reading/saving .jpg/bmp/tiff files')
-
- cd matplotlib-${pkgver}
- python3 setup.py install -O1 --skip-build --root "${pkgdir}" --prefix=/usr
-
- install -dm755 "${pkgdir}"/usr/share/licenses/python-matplotlib
- install -m 644 doc/users/license.rst "${pkgdir}"/usr/share/licenses/python-matplotlib
-}
Copied: python-matplotlib/repos/community-i686/PKGBUILD (from rev 145284, python-matplotlib/trunk/PKGBUILD)
===================================================================
--- community-i686/PKGBUILD (rev 0)
+++ community-i686/PKGBUILD 2015-10-30 07:19:01 UTC (rev 145285)
@@ -0,0 +1,114 @@
+# $Id$
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+# Contributor: Stéphane Gaudreault <stephane at archlinux.org>
+# Contributor: Stefan Husmann <stefan-husmann at t-online.de>
+# Contributor: Angel 'angvp' Velasquez <angvp[at]archlinux.com.ve>
+# Contributor: Douglas Soares de Andrade <dsa at aur.archlinux.org>
+
+pkgbase=python-matplotlib
+pkgname=('python2-matplotlib' 'python-matplotlib')
+pkgver=1.5.0
+pkgrel=1
+pkgdesc="A python plotting library, making publication quality plots"
+arch=('i686' 'x86_64')
+url='http://matplotlib.org'
+license=('custom')
+checkdepends=('python-nose' 'python2-nose' 'python-mock' 'python2-mock' 'xorg-server-xvfb'
+ 'texlive-core' 'texlive-latexextra' 'imagemagick' 'ffmpeg' 'mencoder' 'inkscape')
+makedepends=('python2-pytz' 'python2-numpy' 'python2-pyqt4' 'python-pytz' 'python-numpy'
+ 'python-pyqt4' 'tk' 'python-cairocffi' 'python2-cairocffi' 'python-dateutil'
+ 'python2-dateutil' 'python-gobject' 'python2-gobject' 'python-pyparsing'
+ 'python2-pyparsing' 'pygtk' 'python-six' 'ghostscript' 'texlive-bin'
+ 'python-tornado' 'python2-tornado' 'gtk3' 'wxpython' 'python-pyqt5' 'python2-pyqt5'
+ 'libxkbcommon-x11' 'python-pillow' 'python2-pillow' 'python-setuptools'
+ 'python2-setuptools' 'python-cycler' 'python2-cycler' 'pep8' 'python2-pep8'
+ 'python-pandas' 'python2-pandas')
+source=("$pkgbase-$pkgver.tar.gz::https://github.com/matplotlib/matplotlib/archive/v$pkgver.tar.gz")
+sha512sums=('4096515f70410e5c86f86497ae566793c751eca01ec3197e0b710e6097280b7e1617535fdb565c3fbcec6dd747be49d12295163716439a9936f8f091b6861c0c')
+
+prepare() {
+ cp -a matplotlib-${pkgver} matplotlib-${pkgver}-py2
+
+ cd matplotlib-${pkgver}
+ for file in $(find . -name '*.py' -print); do
+ sed -i -e "s|^#!.*/usr/bin/python|#!/usr/bin/python3|" \
+ -e "s|^#!.*/usr/bin/env *python|#!/usr/bin/env python3|" ${file}
+ done
+
+ cd ../matplotlib-${pkgver}-py2
+ for file in $(find . -name '*.py' -print); do
+ sed -i -e "s|^#!.*/usr/bin/python|#!/usr/bin/python2|" \
+ -e "s|^#!.*/usr/bin/env *python|#!/usr/bin/env python2|" ${file}
+ done
+}
+
+build() {
+ # this seems to need to be present or gtk/gdk dies
+ # and hangs the build checking if gtk3cairo is installed
+ export XDG_RUNTIME_DIR=/tmp
+
+ cd matplotlib-${pkgver}
+ python3 setup.py build
+
+ cd ../matplotlib-${pkgver}-py2
+ python2 setup.py build
+}
+
+check() {
+ cd matplotlib-${pkgver}
+ (
+ export PYTHONPATH="$PWD/build/lib.linux-$CARCH-3.5:$PYTHONPATH"
+ python -c "from matplotlib import font_manager"
+ rm -rf ../tmp_test_dir && mkdir ../tmp_test_dir && cd ../tmp_test_dir
+ xvfb-run -a -s "+extension GLX +extension RANDR +render -screen 0 1280x1024x24" \
+ python ../matplotlib-${pkgver}/tests.py -sv --processes=8 --process-timeout=300 || warning "Tests failed"
+ )
+
+ cd ../matplotlib-${pkgver}-py2
+ (
+ export PYTHONPATH="$PWD/build/lib.linux-$CARCH-2.7:$PYTHONPATH"
+ python2 -c "from matplotlib import font_manager"
+ rm -rf ../tmp_test_dir && mkdir ../tmp_test_dir && cd ../tmp_test_dir
+ xvfb-run -a -s "+extension GLX +extension RANDR +render -screen 0 1280x1024x24" \
+ python2 ../matplotlib-${pkgver}-py2/tests.py -sv --processes=8 --process-timeout=300 || warning "Tests failed"
+ )
+}
+
+package_python2-matplotlib() {
+ depends=('python2-pytz' 'python2-numpy' 'python2-pyqt5' 'python2-dateutil' 'python2-pyparsing' 'python2-cycler' 'libxkbcommon-x11')
+ optdepends=('pygtk: for GTK/GTKAgg/GTKCairo backend'
+ 'python2-cairo: for GTKCairo/GTK3Cairo backend'
+ 'python2-cairocffi: for GTKCairo/GTK3Cairo backend (alternative to python2-cairo)'
+ 'python2-pyqt4: for Qt4Agg backend'
+ 'tk: used by the TkAgg backend'
+ 'ghostscript: usetex dependencies'
+ 'texlive-bin: usetex dependencies'
+ 'python2-tornado: for webagg backend'
+ 'python2-gobject: for GTK3Agg/GTK3Cairo backend'
+ 'wxpython: for WX/WXAgg backend'
+ 'python2-pillow: for reading/saving .jpg/bmp/tiff files')
+
+ cd matplotlib-${pkgver}-py2
+ python2 setup.py install -O1 --skip-build --root "${pkgdir}" --prefix=/usr
+
+ install -dm755 "${pkgdir}"/usr/share/licenses/python2-matplotlib
+ install -m 644 doc/users/license.rst "${pkgdir}"/usr/share/licenses/python2-matplotlib
+}
+
+package_python-matplotlib() {
+ depends=('python-pytz' 'python-numpy' 'python-pyqt5' 'python-dateutil' 'python-pyparsing' 'python-cycler' 'libxkbcommon-x11')
+ optdepends=('python-gobject: for GTK3Agg/GTK3Cairo backend'
+ 'python-cairocffi: for GTK3Agg/GTK3Cairo backend'
+ 'python-pyqt4: for Qt4Agg backend'
+ 'tk: used by the TkAgg backend'
+ 'ghostscript: usetex dependencies'
+ 'texlive-bin: usetex dependencies'
+ 'python-tornado: for webagg backend'
+ 'python-pillow: for reading/saving .jpg/bmp/tiff files')
+
+ cd matplotlib-${pkgver}
+ python3 setup.py install -O1 --skip-build --root "${pkgdir}" --prefix=/usr
+
+ install -dm755 "${pkgdir}"/usr/share/licenses/python-matplotlib
+ install -m 644 doc/users/license.rst "${pkgdir}"/usr/share/licenses/python-matplotlib
+}
Deleted: community-i686/fix-numpy-warning.patch
===================================================================
--- community-i686/fix-numpy-warning.patch 2015-10-30 07:18:27 UTC (rev 145284)
+++ community-i686/fix-numpy-warning.patch 2015-10-30 07:19:01 UTC (rev 145285)
@@ -1,35 +0,0 @@
-From 5e8fb6213394ee27ea0d5ff6337ef6efd3e9c667 Mon Sep 17 00:00:00 2001
-From: Jens Hedegaard Nielsen <jens.nielsen at ucl.ac.uk>
-Date: Sat, 15 Aug 2015 09:15:57 +0100
-Subject: [PATCH] Make sure _edgecolors is a string before comparison
-
-Fixes numpy deprecation warning. Comparing a numpy array to a string
-will return an array in future numpy versions
----
- lib/matplotlib/collections.py | 6 ++++--
- 1 file changed, 4 insertions(+), 2 deletions(-)
-
-diff --git a/lib/matplotlib/collections.py b/lib/matplotlib/collections.py
-index 6b87963..37393c6 100644
---- a/lib/matplotlib/collections.py
-+++ b/lib/matplotlib/collections.py
-@@ -617,7 +617,8 @@ def get_facecolor(self):
- get_facecolors = get_facecolor
-
- def get_edgecolor(self):
-- if self._edgecolors == str('face'):
-+ if (isinstance(self._edgecolors, six.string_types)
-+ and self._edgecolors == str('face')):
- return self.get_facecolors()
- else:
- return self._edgecolors
-@@ -678,7 +679,8 @@ def set_alpha(self, alpha):
- except (AttributeError, TypeError, IndexError):
- pass
- try:
-- if self._edgecolors_original != str('face'):
-+ if (not isinstance(self._edgecolors_original, six.string_types)
-+ or self._edgecolors_original != str('face')):
- self._edgecolors = mcolors.colorConverter.to_rgba_array(
- self._edgecolors_original, self._alpha)
- except (AttributeError, TypeError, IndexError):
Deleted: community-x86_64/PKGBUILD
===================================================================
--- community-x86_64/PKGBUILD 2015-10-30 07:18:27 UTC (rev 145284)
+++ community-x86_64/PKGBUILD 2015-10-30 07:19:01 UTC (rev 145285)
@@ -1,117 +0,0 @@
-# $Id$
-# Maintainer: Felix Yan <felixonmars at archlinux.org>
-# Contributor: Stéphane Gaudreault <stephane at archlinux.org>
-# Contributor: Stefan Husmann <stefan-husmann at t-online.de>
-# Contributor: Angel 'angvp' Velasquez <angvp[at]archlinux.com.ve>
-# Contributor: Douglas Soares de Andrade <dsa at aur.archlinux.org>
-
-pkgbase=python-matplotlib
-pkgname=('python2-matplotlib' 'python-matplotlib')
-pkgver=1.4.3
-pkgrel=4
-pkgdesc="A python plotting library, making publication quality plots"
-arch=('i686' 'x86_64')
-url='http://matplotlib.org'
-license=('custom')
-checkdepends=('python-nose' 'python2-nose' 'python-mock' 'python2-mock' 'xorg-server-xvfb'
- 'texlive-core' 'texlive-latexextra' 'imagemagick' 'ffmpeg' 'mencoder' 'inkscape')
-makedepends=('python2-pytz' 'python2-numpy' 'python2-pyqt4' 'python-pytz' 'python-numpy'
- 'python-pyqt4' 'tk' 'python-cairocffi' 'python2-cairocffi' 'python-dateutil'
- 'python2-dateutil' 'python-gobject' 'python2-gobject' 'python-pyparsing'
- 'python2-pyparsing' 'pygtk' 'python-six' 'ghostscript' 'texlive-bin'
- 'python-tornado' 'python2-tornado' 'gtk3' 'wxpython' 'python-pyqt5' 'python2-pyqt5'
- 'libxkbcommon-x11' 'python-pillow' 'python2-pillow')
-source=("$pkgbase-$pkgver.tar.gz::https://github.com/matplotlib/matplotlib/archive/v$pkgver.tar.gz"
- fix-numpy-warning.patch)
-sha512sums=('4aebbda31934bedbee5206b783e5cbe07db17367d50117a50bb80b7ea4aad987ec225958bed58885c561f00582c309d6e8c0a69861d3b4210a09b2d63975d2aa'
- '5cfb8458c1b71f853cc1571fc0e4c8e3ebcf555f24a043a9b94f023e16dca8aa700339646783453918b0dc986de0f9d622f6e04ca785882ce189247b7f7a60b3')
-
-prepare() {
- # https://github.com/matplotlib/matplotlib/commit/5e8fb6213394ee27ea0d5ff6337ef6efd3e9c667
- (cd matplotlib-${pkgver}; patch -p1 -i ../fix-numpy-warning.patch)
-
- cp -a matplotlib-${pkgver} matplotlib-${pkgver}-py2
-
- cd matplotlib-${pkgver}
- for file in $(find . -name '*.py' -print); do
- sed -i -e "s|^#!.*/usr/bin/python|#!/usr/bin/python3|" \
- -e "s|^#!.*/usr/bin/env *python|#!/usr/bin/env python3|" ${file}
- done
-
- cd ../matplotlib-${pkgver}-py2
- for file in $(find . -name '*.py' -print); do
- sed -i -e "s|^#!.*/usr/bin/python|#!/usr/bin/python2|" \
- -e "s|^#!.*/usr/bin/env *python|#!/usr/bin/env python2|" ${file}
- done
-}
-
-build() {
- # this seems to need to be present or gtk/gdk dies
- # and hangs the build checking if gtk3cairo is installed
- export XDG_RUNTIME_DIR=/tmp
-
- cd matplotlib-${pkgver}
- python3 setup.py build
-
- cd ../matplotlib-${pkgver}-py2
- python2 setup.py build
-}
-
-check() {
- cd matplotlib-${pkgver}
- (
- export PYTHONPATH="$PWD/build/lib.linux-$CARCH-3.5:$PYTHONPATH"
- python -c "from matplotlib import font_manager"
- rm -rf ../tmp_test_dir && mkdir ../tmp_test_dir && cd ../tmp_test_dir
- xvfb-run -a -s "+extension GLX +extension RANDR +render -screen 0 1280x1024x24" \
- python ../matplotlib-${pkgver}/tests.py -sv --processes=8 --process-timeout=300 || warning "Tests failed"
- )
-
- cd ../matplotlib-${pkgver}-py2
- (
- export PYTHONPATH="$PWD/build/lib.linux-$CARCH-2.7:$PYTHONPATH"
- python2 -c "from matplotlib import font_manager"
- rm -rf ../tmp_test_dir && mkdir ../tmp_test_dir && cd ../tmp_test_dir
- xvfb-run -a -s "+extension GLX +extension RANDR +render -screen 0 1280x1024x24" \
- python2 ../matplotlib-${pkgver}-py2/tests.py -sv --processes=8 --process-timeout=300 || warning "Tests failed"
- )
-}
-
-package_python2-matplotlib() {
- depends=('python2-pytz' 'python2-numpy' 'python2-pyqt5' 'python2-dateutil' 'python2-pyparsing' 'libxkbcommon-x11')
- optdepends=('pygtk: for GTK/GTKAgg/GTKCairo backend'
- 'python2-cairo: for GTKCairo/GTK3Cairo backend'
- 'python2-cairocffi: for GTKCairo/GTK3Cairo backend (alternative to python2-cairo)'
- 'python2-pyqt4: for Qt4Agg backend'
- 'tk: used by the TkAgg backend'
- 'ghostscript: usetex dependencies'
- 'texlive-bin: usetex dependencies'
- 'python2-tornado: for webagg backend'
- 'python2-gobject: for GTK3Agg/GTK3Cairo backend'
- 'wxpython: for WX/WXAgg backend'
- 'python2-pillow: for reading/saving .jpg/bmp/tiff files')
-
- cd matplotlib-${pkgver}-py2
- python2 setup.py install -O1 --skip-build --root "${pkgdir}" --prefix=/usr
-
- install -dm755 "${pkgdir}"/usr/share/licenses/python2-matplotlib
- install -m 644 doc/users/license.rst "${pkgdir}"/usr/share/licenses/python2-matplotlib
-}
-
-package_python-matplotlib() {
- depends=('python-pytz' 'python-numpy' 'python-pyqt5' 'python-dateutil' 'python-pyparsing' 'libxkbcommon-x11')
- optdepends=('python-gobject: for GTK3Agg/GTK3Cairo backend'
- 'python-cairocffi: for GTK3Agg/GTK3Cairo backend'
- 'python-pyqt4: for Qt4Agg backend'
- 'tk: used by the TkAgg backend'
- 'ghostscript: usetex dependencies'
- 'texlive-bin: usetex dependencies'
- 'python-tornado: for webagg backend'
- 'python-pillow: for reading/saving .jpg/bmp/tiff files')
-
- cd matplotlib-${pkgver}
- python3 setup.py install -O1 --skip-build --root "${pkgdir}" --prefix=/usr
-
- install -dm755 "${pkgdir}"/usr/share/licenses/python-matplotlib
- install -m 644 doc/users/license.rst "${pkgdir}"/usr/share/licenses/python-matplotlib
-}
Copied: python-matplotlib/repos/community-x86_64/PKGBUILD (from rev 145284, python-matplotlib/trunk/PKGBUILD)
===================================================================
--- community-x86_64/PKGBUILD (rev 0)
+++ community-x86_64/PKGBUILD 2015-10-30 07:19:01 UTC (rev 145285)
@@ -0,0 +1,114 @@
+# $Id$
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+# Contributor: Stéphane Gaudreault <stephane at archlinux.org>
+# Contributor: Stefan Husmann <stefan-husmann at t-online.de>
+# Contributor: Angel 'angvp' Velasquez <angvp[at]archlinux.com.ve>
+# Contributor: Douglas Soares de Andrade <dsa at aur.archlinux.org>
+
+pkgbase=python-matplotlib
+pkgname=('python2-matplotlib' 'python-matplotlib')
+pkgver=1.5.0
+pkgrel=1
+pkgdesc="A python plotting library, making publication quality plots"
+arch=('i686' 'x86_64')
+url='http://matplotlib.org'
+license=('custom')
+checkdepends=('python-nose' 'python2-nose' 'python-mock' 'python2-mock' 'xorg-server-xvfb'
+ 'texlive-core' 'texlive-latexextra' 'imagemagick' 'ffmpeg' 'mencoder' 'inkscape')
+makedepends=('python2-pytz' 'python2-numpy' 'python2-pyqt4' 'python-pytz' 'python-numpy'
+ 'python-pyqt4' 'tk' 'python-cairocffi' 'python2-cairocffi' 'python-dateutil'
+ 'python2-dateutil' 'python-gobject' 'python2-gobject' 'python-pyparsing'
+ 'python2-pyparsing' 'pygtk' 'python-six' 'ghostscript' 'texlive-bin'
+ 'python-tornado' 'python2-tornado' 'gtk3' 'wxpython' 'python-pyqt5' 'python2-pyqt5'
+ 'libxkbcommon-x11' 'python-pillow' 'python2-pillow' 'python-setuptools'
+ 'python2-setuptools' 'python-cycler' 'python2-cycler' 'pep8' 'python2-pep8'
+ 'python-pandas' 'python2-pandas')
+source=("$pkgbase-$pkgver.tar.gz::https://github.com/matplotlib/matplotlib/archive/v$pkgver.tar.gz")
+sha512sums=('4096515f70410e5c86f86497ae566793c751eca01ec3197e0b710e6097280b7e1617535fdb565c3fbcec6dd747be49d12295163716439a9936f8f091b6861c0c')
+
+prepare() {
+ cp -a matplotlib-${pkgver} matplotlib-${pkgver}-py2
+
+ cd matplotlib-${pkgver}
+ for file in $(find . -name '*.py' -print); do
+ sed -i -e "s|^#!.*/usr/bin/python|#!/usr/bin/python3|" \
+ -e "s|^#!.*/usr/bin/env *python|#!/usr/bin/env python3|" ${file}
+ done
+
+ cd ../matplotlib-${pkgver}-py2
+ for file in $(find . -name '*.py' -print); do
+ sed -i -e "s|^#!.*/usr/bin/python|#!/usr/bin/python2|" \
+ -e "s|^#!.*/usr/bin/env *python|#!/usr/bin/env python2|" ${file}
+ done
+}
+
+build() {
+ # this seems to need to be present or gtk/gdk dies
+ # and hangs the build checking if gtk3cairo is installed
+ export XDG_RUNTIME_DIR=/tmp
+
+ cd matplotlib-${pkgver}
+ python3 setup.py build
+
+ cd ../matplotlib-${pkgver}-py2
+ python2 setup.py build
+}
+
+check() {
+ cd matplotlib-${pkgver}
+ (
+ export PYTHONPATH="$PWD/build/lib.linux-$CARCH-3.5:$PYTHONPATH"
+ python -c "from matplotlib import font_manager"
+ rm -rf ../tmp_test_dir && mkdir ../tmp_test_dir && cd ../tmp_test_dir
+ xvfb-run -a -s "+extension GLX +extension RANDR +render -screen 0 1280x1024x24" \
+ python ../matplotlib-${pkgver}/tests.py -sv --processes=8 --process-timeout=300 || warning "Tests failed"
+ )
+
+ cd ../matplotlib-${pkgver}-py2
+ (
+ export PYTHONPATH="$PWD/build/lib.linux-$CARCH-2.7:$PYTHONPATH"
+ python2 -c "from matplotlib import font_manager"
+ rm -rf ../tmp_test_dir && mkdir ../tmp_test_dir && cd ../tmp_test_dir
+ xvfb-run -a -s "+extension GLX +extension RANDR +render -screen 0 1280x1024x24" \
+ python2 ../matplotlib-${pkgver}-py2/tests.py -sv --processes=8 --process-timeout=300 || warning "Tests failed"
+ )
+}
+
+package_python2-matplotlib() {
+ depends=('python2-pytz' 'python2-numpy' 'python2-pyqt5' 'python2-dateutil' 'python2-pyparsing' 'python2-cycler' 'libxkbcommon-x11')
+ optdepends=('pygtk: for GTK/GTKAgg/GTKCairo backend'
+ 'python2-cairo: for GTKCairo/GTK3Cairo backend'
+ 'python2-cairocffi: for GTKCairo/GTK3Cairo backend (alternative to python2-cairo)'
+ 'python2-pyqt4: for Qt4Agg backend'
+ 'tk: used by the TkAgg backend'
+ 'ghostscript: usetex dependencies'
+ 'texlive-bin: usetex dependencies'
+ 'python2-tornado: for webagg backend'
+ 'python2-gobject: for GTK3Agg/GTK3Cairo backend'
+ 'wxpython: for WX/WXAgg backend'
+ 'python2-pillow: for reading/saving .jpg/bmp/tiff files')
+
+ cd matplotlib-${pkgver}-py2
+ python2 setup.py install -O1 --skip-build --root "${pkgdir}" --prefix=/usr
+
+ install -dm755 "${pkgdir}"/usr/share/licenses/python2-matplotlib
+ install -m 644 doc/users/license.rst "${pkgdir}"/usr/share/licenses/python2-matplotlib
+}
+
+package_python-matplotlib() {
+ depends=('python-pytz' 'python-numpy' 'python-pyqt5' 'python-dateutil' 'python-pyparsing' 'python-cycler' 'libxkbcommon-x11')
+ optdepends=('python-gobject: for GTK3Agg/GTK3Cairo backend'
+ 'python-cairocffi: for GTK3Agg/GTK3Cairo backend'
+ 'python-pyqt4: for Qt4Agg backend'
+ 'tk: used by the TkAgg backend'
+ 'ghostscript: usetex dependencies'
+ 'texlive-bin: usetex dependencies'
+ 'python-tornado: for webagg backend'
+ 'python-pillow: for reading/saving .jpg/bmp/tiff files')
+
+ cd matplotlib-${pkgver}
+ python3 setup.py install -O1 --skip-build --root "${pkgdir}" --prefix=/usr
+
+ install -dm755 "${pkgdir}"/usr/share/licenses/python-matplotlib
+ install -m 644 doc/users/license.rst "${pkgdir}"/usr/share/licenses/python-matplotlib
+}
Deleted: community-x86_64/fix-numpy-warning.patch
===================================================================
--- community-x86_64/fix-numpy-warning.patch 2015-10-30 07:18:27 UTC (rev 145284)
+++ community-x86_64/fix-numpy-warning.patch 2015-10-30 07:19:01 UTC (rev 145285)
@@ -1,35 +0,0 @@
-From 5e8fb6213394ee27ea0d5ff6337ef6efd3e9c667 Mon Sep 17 00:00:00 2001
-From: Jens Hedegaard Nielsen <jens.nielsen at ucl.ac.uk>
-Date: Sat, 15 Aug 2015 09:15:57 +0100
-Subject: [PATCH] Make sure _edgecolors is a string before comparison
-
-Fixes numpy deprecation warning. Comparing a numpy array to a string
-will return an array in future numpy versions
----
- lib/matplotlib/collections.py | 6 ++++--
- 1 file changed, 4 insertions(+), 2 deletions(-)
-
-diff --git a/lib/matplotlib/collections.py b/lib/matplotlib/collections.py
-index 6b87963..37393c6 100644
---- a/lib/matplotlib/collections.py
-+++ b/lib/matplotlib/collections.py
-@@ -617,7 +617,8 @@ def get_facecolor(self):
- get_facecolors = get_facecolor
-
- def get_edgecolor(self):
-- if self._edgecolors == str('face'):
-+ if (isinstance(self._edgecolors, six.string_types)
-+ and self._edgecolors == str('face')):
- return self.get_facecolors()
- else:
- return self._edgecolors
-@@ -678,7 +679,8 @@ def set_alpha(self, alpha):
- except (AttributeError, TypeError, IndexError):
- pass
- try:
-- if self._edgecolors_original != str('face'):
-+ if (not isinstance(self._edgecolors_original, six.string_types)
-+ or self._edgecolors_original != str('face')):
- self._edgecolors = mcolors.colorConverter.to_rgba_array(
- self._edgecolors_original, self._alpha)
- except (AttributeError, TypeError, IndexError):
More information about the arch-commits
mailing list