public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Justin Lecher" <jlec@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/matplotlib/files/, dev-python/matplotlib/
Date: Fri, 15 Jan 2016 09:50:41 +0000 (UTC)	[thread overview]
Message-ID: <1452851434.f14b48b11ac6a9af9ce16712f165aab754436282.jlec@gentoo> (raw)

commit:     f14b48b11ac6a9af9ce16712f165aab754436282
Author:     Justin Lecher <jlec <AT> gentoo <DOT> org>
AuthorDate: Fri Jan 15 09:25:01 2016 +0000
Commit:     Justin Lecher <jlec <AT> gentoo <DOT> org>
CommitDate: Fri Jan 15 09:50:34 2016 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f14b48b1

dev-python/matplotlib: Backport test fix and skip next one

Package-Manager: portage-2.2.26
Signed-off-by: Justin Lecher <jlec <AT> gentoo.org>

 .../files/matplotlib-1.5.1-test-fix-backport.patch | 115 +++++++++++++++++++++
 dev-python/matplotlib/matplotlib-1.5.1.ebuild      |   8 +-
 2 files changed, 120 insertions(+), 3 deletions(-)

diff --git a/dev-python/matplotlib/files/matplotlib-1.5.1-test-fix-backport.patch b/dev-python/matplotlib/files/matplotlib-1.5.1-test-fix-backport.patch
new file mode 100644
index 0000000..d031e5a
--- /dev/null
+++ b/dev-python/matplotlib/files/matplotlib-1.5.1-test-fix-backport.patch
@@ -0,0 +1,115 @@
+From 72cf5b80537157decc741d81db550e6cf82648f6 Mon Sep 17 00:00:00 2001
+From: Michael Droettboom <mdboom@gmail.com>
+Date: Mon, 11 Jan 2016 16:48:04 -0500
+Subject: [PATCH] Fix #5829.  Update the baseline image.
+
+---
+ .../baseline_images/test_image/rasterize_10dpi.svg | 56 ++++++++++------------
+ 1 file changed, 26 insertions(+), 30 deletions(-)
+
+diff --git a/lib/matplotlib/tests/baseline_images/test_image/rasterize_10dpi.svg b/lib/matplotlib/tests/baseline_images/test_image/rasterize_10dpi.svg
+index 47e354d..1f73c8f 100644
+--- a/lib/matplotlib/tests/baseline_images/test_image/rasterize_10dpi.svg
++++ b/lib/matplotlib/tests/baseline_images/test_image/rasterize_10dpi.svg
+@@ -5,31 +5,29 @@
+ <svg height="72pt" version="1.1" viewBox="0 0 216 72" width="216pt" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
+  <defs>
+   <style type="text/css">
+-*{stroke-linecap:butt;stroke-linejoin:round;}
++*{stroke-linecap:butt;stroke-linejoin:round;stroke-miterlimit:100000;}
+   </style>
+  </defs>
+  <g id="figure_1">
+   <g id="patch_1">
+-   <path d="
+-M0 72
+-L216 72
+-L216 0
+-L0 0
++   <path d="M 0 72 
++L 216 72 
++L 216 0 
++L 0 0 
+ z
+ " style="fill:#ffffff;"/>
+   </g>
+   <g id="axes_1">
+    <g id="patch_2">
+-    <path d="
+-M27 60.6176
+-L76.2353 60.6176
+-L76.2353 11.3824
+-L27 11.3824
++    <path d="M 27 60.617647 
++L 76.235294 60.617647 
++L 76.235294 11.382353 
++L 27 11.382353 
+ z
+ " style="fill:#ffffff;"/>
+    </g>
+-   <g clip-path="url(#pc31db6f15f)">
+-    <image height="50.4" id="image2c20c31ecf" width="57.6" x="27.0" xlink:href="data:image/png;base64,
++   <g clip-path="url(#p306f09a014)">
++    <image height="50.4" id="image207c5863ce" width="57.6" x="27.0" xlink:href="data:image/png;base64,
+ iVBORw0KGgoAAAANSUhEUgAAAAgAAAAHCAYAAAA1WQxeAAAABHNCSVQICAgIfAhkiAAAAIVJREFUCJmFzjkKwlAAhOEvKi5FMLU2HkEQwdbSU3knL+EBLMUFQayCUaMYF55FQEsH/mYYZiZiGkA3Ydj70UlAxR/Vhv09eLfPivipuOUe69QrjcvAZLwE99CShYPsnMgWiSI0QTSfdQNcjjWHTeNLnlXLhtGgnDju2KbEV+orTqX9/+QHCXAwPEkx7O0AAAAASUVORK5CYII=" y="10.2176470588"/>
+    </g>
+    <g id="matplotlib.axis_1"/>
+@@ -37,43 +35,41 @@ iVBORw0KGgoAAAANSUhEUgAAAAgAAAAHCAYAAAA1WQxeAAAABHNCSVQICAgIfAhkiAAAAIVJREFUCJmF
+   </g>
+   <g id="axes_2">
+    <g id="patch_3">
+-    <path d="
+-M86.0824 64.8
+-L135.318 64.8
+-L135.318 7.2
+-L86.0824 7.2
++    <path d="M 86.082353 64.8 
++L 135.317647 64.8 
++L 135.317647 7.2 
++L 86.082353 7.2 
+ z
+ " style="fill:#ffffff;"/>
+    </g>
+-   <image height="64.8" id="image1d9f73e233" width="136.8" x="79.2" xlink:href="data:image/png;base64,
+-iVBORw0KGgoAAAANSUhEUgAAABMAAAAJCAYAAADQHRcxAAAABHNCSVQICAgIfAhkiAAAAHNJREFUKJG10kENwlAQBuH5OVQBImoBAzVQA1hABxoQUAUYqIWaqIRepqdHmoaE9AGbzGU3+U4blV/N6d0yoUnoE56HNPUV2IJ3cAYF3d4/VZArOBZgWw22RxZwALtvsAm8gecjyB57gBcwNUgpf3+N2lkBB3gBDVzLDTYAAAAASUVORK5CYII=" y="7.2"/>
++   <image height="43.2" id="image2e9ed63e7b" width="50.4" x="86.39999999999999" xlink:href="data:image/png;base64,
++iVBORw0KGgoAAAANSUhEUgAAAAcAAAAGCAYAAAAPDoR2AAAABHNCSVQICAgIfAhkiAAAAFVJREFUCJllzjEVwlAAxdDbBQUVgQUMYAADWKgONCAABRjAQk0ggSUdGPoPDFnyhjyVETrQhZ6jPNKN3tQXXem1i5F/+aEHncdxpYXmPaU7nWj6PbcBc+lWnSEOzhQAAAAASUVORK5CYII=" y="14.4"/>
+    <g id="matplotlib.axis_3"/>
+    <g id="matplotlib.axis_4"/>
+   </g>
+   <g id="axes_3">
+    <g id="patch_4">
+-    <path d="
+-M145.165 64.8
+-L194.4 64.8
+-L194.4 7.2
+-L145.165 7.2
++    <path d="M 145.164706 64.8 
++L 194.4 64.8 
++L 194.4 7.2 
++L 145.164706 7.2 
+ z
+ " style="fill:#ffffff;"/>
+    </g>
+    <g id="line2d_1">
+-    <path clip-path="url(#p19b1e86336)" d="
+-M145.165 45.6
+-L194.4 26.4" style="fill:none;stroke:#0000ff;stroke-linecap:square;stroke-width:20.0;"/>
++    <path clip-path="url(#pef029be595)" d="M 145.164706 45.6 
++L 194.4 26.4 
++" style="fill:none;stroke:#0000ff;stroke-linecap:square;stroke-width:20.0;"/>
+    </g>
+    <g id="matplotlib.axis_5"/>
+    <g id="matplotlib.axis_6"/>
+   </g>
+  </g>
+  <defs>
+-  <clipPath id="p19b1e86336">
++  <clipPath id="pef029be595">
+    <rect height="57.6" width="49.2352941176" x="145.164705882" y="7.2"/>
+   </clipPath>
+-  <clipPath id="pc31db6f15f">
++  <clipPath id="p306f09a014">
+    <rect height="49.2352941176" width="49.2352941176" x="27.0" y="11.3823529412"/>
+   </clipPath>
+  </defs>

diff --git a/dev-python/matplotlib/matplotlib-1.5.1.ebuild b/dev-python/matplotlib/matplotlib-1.5.1.ebuild
index 053e68d..9fabf36 100644
--- a/dev-python/matplotlib/matplotlib-1.5.1.ebuild
+++ b/dev-python/matplotlib/matplotlib-1.5.1.ebuild
@@ -110,6 +110,8 @@ RDEPEND="${COMMON_DEPEND}
 # Other than that, the ebuild shall be fit for out-of-source build.
 DISTUTILS_IN_SOURCE_BUILD=1
 
+PATCHES=( "${FILESDIR}"/${P}-test-fix-backport.patch )
+
 pkg_setup() {
 	unset DISPLAY # bug #278524
 	use doc && DISTUTILS_ALL_SUBPHASE_IMPLS=( python2.7 )
@@ -154,10 +156,10 @@ python_prepare_all() {
 		-e "s:/usr/:${EPREFIX}/usr/:g" \
 		-i setupext.py || die
 
-	# https://github.com/matplotlib/matplotlib/issues/5829
+	# https://github.com/matplotlib/matplotlib/issues/5857
 	sed \
-		-e '/rasterize_10dpi/s:5e-2:10:g' \
-		-i lib/matplotlib/tests/test_image.py || die
+		-e 's:test_pep8_conformance_examples:_&:g' \
+		-i lib/matplotlib/tests/test_coding_standards.py || die
 
 	export XDG_RUNTIME_DIR="${T}/runtime-dir"
 	mkdir "${XDG_RUNTIME_DIR}" || die


             reply	other threads:[~2016-01-15  9:50 UTC|newest]

Thread overview: 21+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-01-15  9:50 Justin Lecher [this message]
  -- strict thread matches above, loose matches on Subject: below --
2024-07-11 11:59 [gentoo-commits] repo/gentoo:master commit in: dev-python/matplotlib/files/, dev-python/matplotlib/ Michał Górny
2024-05-16 17:29 Michał Górny
2023-09-15 10:11 Michał Górny
2023-08-30  4:02 Sam James
2023-07-24 10:59 Michał Górny
2023-04-21  4:06 Michał Górny
2023-01-12  6:14 Michał Górny
2022-05-03 10:20 Michał Górny
2021-09-07  7:10 Michał Górny
2021-02-25 13:24 Michał Górny
2021-01-29 10:43 Michał Górny
2021-01-04  9:45 Michał Górny
2020-09-15 22:19 Michał Górny
2020-06-18 10:26 Michał Górny
2018-03-08 22:37 Andrey Grozin
2017-05-03  7:37 Michał Górny
2016-09-11  8:56 David Seifert
2016-01-25  8:31 Justin Lecher
2016-01-15 12:32 Justin Lecher
2015-10-21 13:41 Justin Lecher

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1452851434.f14b48b11ac6a9af9ce16712f165aab754436282.jlec@gentoo \
    --to=jlec@gentoo.org \
    --cc=gentoo-commits@lists.gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox