Compare commits
13 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
33684553c0 | ||
|
|
0505957232 | ||
|
|
886c137f30 | ||
|
|
61b48deb75 | ||
|
|
af22a586b1 | ||
|
|
2e2f0e7aa2 | ||
|
|
cab430591a | ||
|
|
cf0338c697 | ||
|
|
08fc8aa374 | ||
|
|
82ec7425cf | ||
|
|
8c2171471b | ||
|
|
b295321e02 | ||
|
|
00a8b9c8fd |
4
.gitignore
vendored
4
.gitignore
vendored
@@ -9,3 +9,7 @@ matplotlib-1.0.0-without-gpc.tar.gz
|
||||
/matplotlib-1.5.1-without-extern.tar.xz
|
||||
/matplotlib-1.5.1.tar.gz
|
||||
/matplotlib-1.5.2rc2.tar.gz
|
||||
/matplotlib-2.0.0b4.tar.gz
|
||||
/matplotlib-2.0.0rc2.tar.gz
|
||||
/matplotlib-2.0.0.tar.gz
|
||||
/matplotlib-2.0.0-without-copyrighted.tar.xz
|
||||
|
||||
@@ -22,15 +22,3 @@
|
||||
fname = os.path.join(path, 'matplotlibrc')
|
||||
if not os.path.exists(fname):
|
||||
warnings.warn('Could not find matplotlibrc; using defaults')
|
||||
--- a/lib/matplotlib/cbook.py 2016-05-20 14:14:52.000000000 +0200
|
||||
+++ b/lib/matplotlib/cbook.py 2016-05-20 19:28:57.373601582 +0200
|
||||
@@ -823,8 +823,7 @@ def get_sample_data(fname, asfileobj=Tru
|
||||
if matplotlib.rcParams['examples.directory']:
|
||||
root = matplotlib.rcParams['examples.directory']
|
||||
else:
|
||||
- root = os.path.join(os.path.dirname(__file__),
|
||||
- "mpl-data", "sample_data")
|
||||
+ root = os.path.join(matplotlib._get_data_path(), 'sample_data')
|
||||
path = os.path.join(root, fname)
|
||||
|
||||
if asfileobj:
|
||||
|
||||
@@ -1,19 +0,0 @@
|
||||
Description: Try to use also StayPuft (a free font) for xkcd
|
||||
Author: Sandro Tosi <morph@debian.org>
|
||||
Origin: vendor
|
||||
Bug: http://bugs.debian.org/720549
|
||||
Forwarded: not-needed
|
||||
Last-Update: 2013-10-06
|
||||
---
|
||||
This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
|
||||
--- a/lib/matplotlib/pyplot.py
|
||||
+++ b/lib/matplotlib/pyplot.py
|
||||
@@ -301,7 +301,7 @@ def xkcd(scale=1, length=100, randomness
|
||||
from matplotlib import patheffects
|
||||
context = rc_context()
|
||||
try:
|
||||
- rcParams['font.family'] = ['Humor Sans', 'Comic Sans MS']
|
||||
+ rcParams['font.family'] = ['Humor Sans', 'Comic Sans MS', 'StayPuft']
|
||||
rcParams['font.size'] = 14.0
|
||||
rcParams['path.sketch'] = (scale, length, randomness)
|
||||
rcParams['path.effects'] = [
|
||||
@@ -1,6 +1,6 @@
|
||||
diff -up matplotlib-1.5.2rc2/lib/matplotlib/sphinxext/tests/test_tinypages.py.tests matplotlib-1.5.2rc2/lib/matplotlib/sphinxext/tests/test_tinypages.py
|
||||
--- matplotlib-1.5.2rc2/lib/matplotlib/sphinxext/tests/test_tinypages.py.tests 2016-05-27 04:19:34.000000000 +0200
|
||||
+++ matplotlib-1.5.2rc2/lib/matplotlib/sphinxext/tests/test_tinypages.py 2016-06-18 00:51:20.449769054 +0200
|
||||
diff -up matplotlib-2.0.0b3/lib/matplotlib/sphinxext/tests/test_tinypages.py.tests matplotlib-2.0.0b3/lib/matplotlib/sphinxext/tests/test_tinypages.py
|
||||
--- matplotlib-2.0.0b3/lib/matplotlib/sphinxext/tests/test_tinypages.py.tests 2016-07-17 01:04:11.000000000 +0200
|
||||
+++ matplotlib-2.0.0b3/lib/matplotlib/sphinxext/tests/test_tinypages.py 2016-08-29 13:41:47.661198880 +0200
|
||||
@@ -1,6 +1,7 @@
|
||||
""" Tests for tinypages build using sphinx extensions """
|
||||
|
||||
@@ -18,150 +18,3 @@ diff -up matplotlib-1.5.2rc2/lib/matplotlib/sphinxext/tests/test_tinypages.py.te
|
||||
try:
|
||||
ret = call(['sphinx-build', '--help'], stdout=PIPE, stderr=PIPE)
|
||||
except OSError:
|
||||
diff -up matplotlib-1.5.2rc2/lib/matplotlib/tests/test_axes.py.tests matplotlib-1.5.2rc2/lib/matplotlib/tests/test_axes.py
|
||||
--- matplotlib-1.5.2rc2/lib/matplotlib/tests/test_axes.py.tests 2016-05-27 04:19:34.000000000 +0200
|
||||
+++ matplotlib-1.5.2rc2/lib/matplotlib/tests/test_axes.py 2016-06-18 01:07:54.058379133 +0200
|
||||
@@ -5,6 +5,7 @@ import six
|
||||
from six.moves import xrange
|
||||
from itertools import chain
|
||||
import io
|
||||
+from distutils.version import LooseVersion
|
||||
|
||||
from nose.tools import assert_equal, assert_raises, assert_false, assert_true
|
||||
from nose.plugins.skip import SkipTest
|
||||
@@ -84,7 +85,7 @@ def test_formatter_ticker():
|
||||
|
||||
@image_comparison(baseline_images=["formatter_large_small"])
|
||||
def test_formatter_large_small():
|
||||
- if tuple(map(int, np.__version__.split('.'))) >= (1, 11, 0):
|
||||
+ if LooseVersion(np.__version__) >= LooseVersion('1.11.0'):
|
||||
raise KnownFailureTest("Fall out from a fixed numpy bug")
|
||||
# github issue #617, pull #619
|
||||
fig, ax = plt.subplots(1)
|
||||
diff -up matplotlib-1.5.2rc2/lib/matplotlib/tests/test_bbox_tight.py.tests matplotlib-1.5.2rc2/lib/matplotlib/tests/test_bbox_tight.py
|
||||
--- matplotlib-1.5.2rc2/lib/matplotlib/tests/test_bbox_tight.py.tests 2016-06-18 00:51:19.000000000 +0200
|
||||
+++ matplotlib-1.5.2rc2/lib/matplotlib/tests/test_bbox_tight.py 2016-06-18 01:09:11.314805850 +0200
|
||||
@@ -3,6 +3,7 @@ from __future__ import (absolute_import,
|
||||
|
||||
import six
|
||||
from six.moves import xrange
|
||||
+from distutils.version import LooseVersion
|
||||
|
||||
import numpy as np
|
||||
|
||||
@@ -91,7 +92,7 @@ def test_bbox_inches_tight_clipping():
|
||||
remove_text=True, savefig_kwarg={'bbox_inches': 'tight'})
|
||||
def test_bbox_inches_tight_raster():
|
||||
"""Test rasterization with tight_layout"""
|
||||
- if tuple(map(int, np.__version__.split('.'))) >= (1, 11, 0):
|
||||
+ if LooseVersion(np.__version__) >= LooseVersion('1.11.0'):
|
||||
raise KnownFailureTest("Fall out from a fixed numpy bug")
|
||||
fig = plt.figure()
|
||||
ax = fig.add_subplot(111)
|
||||
diff -up matplotlib-1.5.2rc2/lib/matplotlib/tests/test_text.py.tests matplotlib-1.5.2rc2/lib/matplotlib/tests/test_text.py
|
||||
--- matplotlib-1.5.2rc2/lib/matplotlib/tests/test_text.py.tests 2016-06-18 00:51:19.803773859 +0200
|
||||
+++ matplotlib-1.5.2rc2/lib/matplotlib/tests/test_text.py 2016-06-18 00:51:20.450769046 +0200
|
||||
@@ -18,91 +18,6 @@ from matplotlib.text import Annotation,
|
||||
from matplotlib.backends.backend_agg import RendererAgg
|
||||
|
||||
|
||||
-@image_comparison(baseline_images=['font_styles'])
|
||||
-def test_font_styles():
|
||||
- from matplotlib import _get_data_path
|
||||
- data_path = _get_data_path()
|
||||
-
|
||||
- def find_matplotlib_font(**kw):
|
||||
- prop = FontProperties(**kw)
|
||||
- path = findfont(prop, directory=data_path)
|
||||
- return FontProperties(fname=path)
|
||||
-
|
||||
- from matplotlib.font_manager import FontProperties, findfont
|
||||
- warnings.filterwarnings(
|
||||
- 'ignore',
|
||||
- ('findfont: Font family \[u?\'Foo\'\] not found. Falling back to .'),
|
||||
- UserWarning,
|
||||
- module='matplotlib.font_manager')
|
||||
-
|
||||
- plt.figure()
|
||||
- ax = plt.subplot(1, 1, 1)
|
||||
-
|
||||
- normalFont = find_matplotlib_font(
|
||||
- family="sans-serif",
|
||||
- style="normal",
|
||||
- variant="normal",
|
||||
- size=14)
|
||||
- ax.annotate(
|
||||
- "Normal Font",
|
||||
- (0.1, 0.1),
|
||||
- xycoords='axes fraction',
|
||||
- fontproperties=normalFont)
|
||||
-
|
||||
- boldFont = find_matplotlib_font(
|
||||
- family="Foo",
|
||||
- style="normal",
|
||||
- variant="normal",
|
||||
- weight="bold",
|
||||
- stretch=500,
|
||||
- size=14)
|
||||
- ax.annotate(
|
||||
- "Bold Font",
|
||||
- (0.1, 0.2),
|
||||
- xycoords='axes fraction',
|
||||
- fontproperties=boldFont)
|
||||
-
|
||||
- boldItemFont = find_matplotlib_font(
|
||||
- family="sans serif",
|
||||
- style="italic",
|
||||
- variant="normal",
|
||||
- weight=750,
|
||||
- stretch=500,
|
||||
- size=14)
|
||||
- ax.annotate(
|
||||
- "Bold Italic Font",
|
||||
- (0.1, 0.3),
|
||||
- xycoords='axes fraction',
|
||||
- fontproperties=boldItemFont)
|
||||
-
|
||||
- lightFont = find_matplotlib_font(
|
||||
- family="sans-serif",
|
||||
- style="normal",
|
||||
- variant="normal",
|
||||
- weight=200,
|
||||
- stretch=500,
|
||||
- size=14)
|
||||
- ax.annotate(
|
||||
- "Light Font",
|
||||
- (0.1, 0.4),
|
||||
- xycoords='axes fraction',
|
||||
- fontproperties=lightFont)
|
||||
-
|
||||
- condensedFont = find_matplotlib_font(
|
||||
- family="sans-serif",
|
||||
- style="normal",
|
||||
- variant="normal",
|
||||
- weight=500,
|
||||
- stretch=100,
|
||||
- size=14)
|
||||
- ax.annotate(
|
||||
- "Condensed Font",
|
||||
- (0.1, 0.5),
|
||||
- xycoords='axes fraction',
|
||||
- fontproperties=condensedFont)
|
||||
-
|
||||
- ax.set_xticks([])
|
||||
- ax.set_yticks([])
|
||||
|
||||
|
||||
@image_comparison(baseline_images=['multiline'])
|
||||
diff -up matplotlib-1.5.2rc2/tests.py.tests matplotlib-1.5.2rc2/tests.py
|
||||
--- matplotlib-1.5.2rc2/tests.py.tests 2016-05-27 04:19:34.000000000 +0200
|
||||
+++ matplotlib-1.5.2rc2/tests.py 2016-06-18 00:51:20.450769046 +0200
|
||||
@@ -66,7 +66,7 @@ if __name__ == '__main__':
|
||||
if '--no-network' in sys.argv:
|
||||
from matplotlib.testing import disable_internet
|
||||
disable_internet.turn_off_internet()
|
||||
- extra_args.extend(['--eval-attr="not network"'])
|
||||
+ extra_args.extend(['-a','!network'])
|
||||
sys.argv.remove('--no-network')
|
||||
|
||||
run(extra_args)
|
||||
|
||||
126
python-matplotlib-increase-tests-tolerance-aarch64ppc64.patch
Normal file
126
python-matplotlib-increase-tests-tolerance-aarch64ppc64.patch
Normal file
@@ -0,0 +1,126 @@
|
||||
--- matplotlib-2.0.0rc2/lib/matplotlib/tests/test_axes.py 2016-12-18 11:40:53.000000000 -0800
|
||||
+++ matplotlib-2.0.0rc2/lib/matplotlib/tests/test_axes.py.new 2017-01-07 21:28:07.736224906 -0800
|
||||
@@ -1285,7 +1285,7 @@
|
||||
cbar.add_lines(cs2, erase=False)
|
||||
|
||||
|
||||
-@image_comparison(baseline_images=['hist2d', 'hist2d'])
|
||||
+@image_comparison(baseline_images=['hist2d', 'hist2d'], tol=10.677)
|
||||
def test_hist2d():
|
||||
np.random.seed(0)
|
||||
# make it not symetric in case we switch x and y axis
|
||||
--- matplotlib-2.0.0rc2/lib/matplotlib/tests/test_quiver.py 2016-12-18 11:40:53.000000000 -0800
|
||||
+++ matplotlib-2.0.0rc2/lib/matplotlib/tests/test_quiver.py.new 2017-01-07 21:29:53.441682625 -0800
|
||||
@@ -135,7 +135,7 @@
|
||||
ax.quiverkey(q, 0, 0.5, 1, 'W', labelpos='W')
|
||||
|
||||
|
||||
-@image_comparison(baseline_images=['barbs_test_image'],
|
||||
+@image_comparison(baseline_images=['barbs_test_image'], tol=0.8,
|
||||
extensions=['png'], remove_text=True)
|
||||
def test_barbs():
|
||||
x = np.linspace(-5, 5, 5)
|
||||
--- matplotlib-2.0.0rc2/lib/matplotlib/tests/test_transforms.py 2016-12-18 11:40:53.000000000 -0800
|
||||
+++ matplotlib-2.0.0rc2/lib/matplotlib/tests/test_transforms.py.new 2017-01-07 21:21:29.478503151 -0800
|
||||
@@ -82,7 +82,7 @@
|
||||
|
||||
|
||||
@image_comparison(baseline_images=['pre_transform_data'],
|
||||
- tol=0.08)
|
||||
+ tol=0.9)
|
||||
def test_pre_transform_plotting():
|
||||
# a catch-all for as many as possible plot layouts which handle
|
||||
# pre-transforming the data NOTE: The axis range is important in this
|
||||
--- matplotlib-2.0.0rc2/lib/matplotlib/tests/test_mlab.py 2016-12-18 11:40:53.000000000 -0800
|
||||
+++ matplotlib-2.0.0rc2/lib/matplotlib/tests/test_mlab.py.new 2017-01-07 21:30:47.502916717 -0800
|
||||
@@ -2279,90 +2279,6 @@
|
||||
iscomplex=True, sides='default', nsides=2)
|
||||
|
||||
|
||||
-class spectral_testcase_Fs4_real_onesided(
|
||||
- spectral_testcase_nosig_real_onesided):
|
||||
- def setUp(self):
|
||||
- self.createStim(fstims=[4],
|
||||
- iscomplex=False, sides='onesided', nsides=1)
|
||||
-
|
||||
-
|
||||
-class spectral_testcase_Fs4_real_twosided(
|
||||
- spectral_testcase_nosig_real_onesided):
|
||||
- def setUp(self):
|
||||
- self.createStim(fstims=[4],
|
||||
- iscomplex=False, sides='twosided', nsides=2)
|
||||
-
|
||||
-
|
||||
-class spectral_testcase_Fs4_real_defaultsided(
|
||||
- spectral_testcase_nosig_real_onesided):
|
||||
- def setUp(self):
|
||||
- self.createStim(fstims=[4],
|
||||
- iscomplex=False, sides='default', nsides=1)
|
||||
-
|
||||
-
|
||||
-class spectral_testcase_Fs4_complex_onesided(
|
||||
- spectral_testcase_nosig_real_onesided):
|
||||
- def setUp(self):
|
||||
- self.createStim(fstims=[4],
|
||||
- iscomplex=True, sides='onesided', nsides=1)
|
||||
-
|
||||
-
|
||||
-class spectral_testcase_Fs4_complex_twosided(
|
||||
- spectral_testcase_nosig_real_onesided):
|
||||
- def setUp(self):
|
||||
- self.createStim(fstims=[4],
|
||||
- iscomplex=True, sides='twosided', nsides=2)
|
||||
-
|
||||
-
|
||||
-class spectral_testcase_Fs4_complex_defaultsided(
|
||||
- spectral_testcase_nosig_real_onesided):
|
||||
- def setUp(self):
|
||||
- self.createStim(fstims=[4],
|
||||
- iscomplex=True, sides='default', nsides=2)
|
||||
-
|
||||
-
|
||||
-class spectral_testcase_FsAll_real_onesided(
|
||||
- spectral_testcase_nosig_real_onesided):
|
||||
- def setUp(self):
|
||||
- self.createStim(fstims=[4, 5, 10],
|
||||
- iscomplex=False, sides='onesided', nsides=1)
|
||||
-
|
||||
-
|
||||
-class spectral_testcase_FsAll_real_twosided(
|
||||
- spectral_testcase_nosig_real_onesided):
|
||||
- def setUp(self):
|
||||
- self.createStim(fstims=[4, 5, 10],
|
||||
- iscomplex=False, sides='twosided', nsides=2)
|
||||
-
|
||||
-
|
||||
-class spectral_testcase_FsAll_real_defaultsided(
|
||||
- spectral_testcase_nosig_real_onesided):
|
||||
- def setUp(self):
|
||||
- self.createStim(fstims=[4, 5, 10],
|
||||
- iscomplex=False, sides='default', nsides=1)
|
||||
-
|
||||
-
|
||||
-class spectral_testcase_FsAll_complex_onesided(
|
||||
- spectral_testcase_nosig_real_onesided):
|
||||
- def setUp(self):
|
||||
- self.createStim(fstims=[4, 5, 10],
|
||||
- iscomplex=True, sides='onesided', nsides=1)
|
||||
-
|
||||
-
|
||||
-class spectral_testcase_FsAll_complex_twosided(
|
||||
- spectral_testcase_nosig_real_onesided):
|
||||
- def setUp(self):
|
||||
- self.createStim(fstims=[4, 5, 10],
|
||||
- iscomplex=True, sides='twosided', nsides=2)
|
||||
-
|
||||
-
|
||||
-class spectral_testcase_FsAll_complex_defaultsided(
|
||||
- spectral_testcase_nosig_real_onesided):
|
||||
- def setUp(self):
|
||||
- self.createStim(fstims=[4, 5, 10],
|
||||
- iscomplex=True, sides='default', nsides=2)
|
||||
-
|
||||
-
|
||||
class spectral_testcase_nosig_real_onesided_noNFFT(
|
||||
spectral_testcase_nosig_real_onesided):
|
||||
def setUp(self):
|
||||
65
python-matplotlib-increase-tests-tolerance-i686.patch
Normal file
65
python-matplotlib-increase-tests-tolerance-i686.patch
Normal file
@@ -0,0 +1,65 @@
|
||||
--- matplotlib-2.0.0rc2/lib/matplotlib/tests/test_axes.py 2016-12-18 11:40:53.000000000 -0800
|
||||
+++ matplotlib-2.0.0rc2/lib/matplotlib/tests/test_axes.py.new 2017-01-07 21:35:06.874039829 -0800
|
||||
@@ -361,7 +361,7 @@
|
||||
plt.plot('b','b', 'o', data=data)
|
||||
|
||||
|
||||
-@image_comparison(baseline_images=['single_date'])
|
||||
+@image_comparison(baseline_images=['single_date'], tol=1.97)
|
||||
def test_single_date():
|
||||
time1 = [721964.0]
|
||||
data1 = [-65.54]
|
||||
@@ -4696,7 +4696,7 @@
|
||||
|
||||
|
||||
@image_comparison(baseline_images=['date_timezone_x_and_y'],
|
||||
- extensions=['png'])
|
||||
+ extensions=['png'], tol=3.042)
|
||||
def test_date_timezone_x_and_y():
|
||||
# Tests issue 5575
|
||||
time_index = [pytz.timezone('UTC').localize(datetime.datetime(
|
||||
--- matplotlib-2.0.0rc2/lib/matplotlib/tests/test_collections.py 2016-12-18 11:40:53.000000000 -0800
|
||||
+++ matplotlib-2.0.0rc2/lib/matplotlib/tests/test_collections.py.new 2017-01-07 21:35:52.016235301 -0800
|
||||
@@ -489,7 +489,7 @@
|
||||
ax.autoscale_view()
|
||||
|
||||
|
||||
-@image_comparison(baseline_images=['polycollection_close'],
|
||||
+@image_comparison(baseline_images=['polycollection_close'], tol=0.446,
|
||||
extensions=['png'], remove_text=True)
|
||||
def test_polycollection_close():
|
||||
from mpl_toolkits.mplot3d import Axes3D
|
||||
--- matplotlib-2.0.0rc2/lib/matplotlib/tests/test_contour.py 2016-12-18 11:40:53.000000000 -0800
|
||||
+++ matplotlib-2.0.0rc2/lib/matplotlib/tests/test_contour.py.new 2017-01-07 21:36:29.283396673 -0800
|
||||
@@ -233,7 +233,7 @@
|
||||
label.set_rotation(30)
|
||||
|
||||
|
||||
-@image_comparison(baseline_images=['contour_test_label_transforms'],
|
||||
+@image_comparison(baseline_images=['contour_test_label_transforms'], tol=0.731,
|
||||
extensions=['png'], remove_text=True)
|
||||
def test_labels():
|
||||
# Adapted from pylab_examples example code: contour_demo.py
|
||||
--- matplotlib-2.0.0rc2/lib/mpl_toolkits/tests/test_mplot3d.py 2016-12-18 11:40:53.000000000 -0800
|
||||
+++ matplotlib-2.0.0rc2/lib/mpl_toolkits/tests/test_mplot3d.py.new 2017-01-07 21:37:04.144547626 -0800
|
||||
@@ -171,7 +171,7 @@
|
||||
ax.set_zlabel('Z axis')
|
||||
|
||||
|
||||
-@image_comparison(baseline_images=['trisurf3d'], remove_text=True, tol=0.03)
|
||||
+@image_comparison(baseline_images=['trisurf3d'], remove_text=True, tol=0.081)
|
||||
def test_trisurf3d():
|
||||
n_angles = 36
|
||||
n_radii = 8
|
||||
--- matplotlib-2.0.0rc2/lib/matplotlib/tests/test_transforms.py 2016-12-18 11:40:53.000000000 -0800
|
||||
+++ matplotlib-2.0.0rc2/lib/matplotlib/tests/test_transforms.py.new 2017-01-07 21:21:29.478503151 -0800
|
||||
@@ -82,7 +82,7 @@
|
||||
|
||||
|
||||
@image_comparison(baseline_images=['pre_transform_data'],
|
||||
- tol=0.08)
|
||||
+ tol=0.15)
|
||||
def test_pre_transform_plotting():
|
||||
# a catch-all for as many as possible plot layouts which handle
|
||||
# pre-transforming the data NOTE: The axis range is important in this
|
||||
|
||||
55
python-matplotlib-increase-tests-tolerance.patch
Normal file
55
python-matplotlib-increase-tests-tolerance.patch
Normal file
@@ -0,0 +1,55 @@
|
||||
--- matplotlib-2.0.0rc2/lib/matplotlib/testing/decorators.py 2016-12-18 11:40:53.000000000 -0800
|
||||
+++ matplotlib-2.0.0rc2/lib/matplotlib/testing/decorators.py.new 2017-01-07 21:19:51.078081193 -0800
|
||||
@@ -266,7 +266,7 @@
|
||||
|
||||
yield do_test, fignum, actual_fname, expected_fname
|
||||
|
||||
-def image_comparison(baseline_images=None, extensions=None, tol=0,
|
||||
+def image_comparison(baseline_images=None, extensions=None, tol=0.306,
|
||||
freetype_version=None, remove_text=False,
|
||||
savefig_kwarg=None, style='classic'):
|
||||
"""
|
||||
--- matplotlib-2.0.0rc2/lib/matplotlib/tests/test_png.py 2016-12-18 11:40:53.000000000 -0800
|
||||
+++ matplotlib-2.0.0rc2/lib/matplotlib/tests/test_png.py.new 2017-01-07 21:20:22.388215456 -0800
|
||||
@@ -17,7 +17,7 @@
|
||||
|
||||
|
||||
@image_comparison(baseline_images=['pngsuite'], extensions=['png'],
|
||||
- tol=0.01 if on_win else 0)
|
||||
+ tol=0.014)
|
||||
def test_pngsuite():
|
||||
dirname = os.path.join(
|
||||
os.path.dirname(__file__),
|
||||
--- matplotlib-2.0.0rc2/lib/matplotlib/tests/test_streamplot.py 2016-12-18 11:40:53.000000000 -0800
|
||||
+++ matplotlib-2.0.0rc2/lib/matplotlib/tests/test_streamplot.py.new 2017-01-07 21:20:42.180300328 -0800
|
||||
@@ -18,7 +18,7 @@
|
||||
|
||||
|
||||
@image_comparison(baseline_images=['streamplot_colormap'],
|
||||
- tol=0.002)
|
||||
+ tol=0.009)
|
||||
def test_colormap():
|
||||
X, Y, U, V = velocity_field()
|
||||
plt.streamplot(X, Y, U, V, color=U, density=0.6, linewidth=2,
|
||||
--- matplotlib-2.0.0rc2/lib/matplotlib/tests/test_patheffects.py 2016-12-18 11:40:53.000000000 -0800
|
||||
+++ matplotlib-2.0.0rc2/lib/matplotlib/tests/test_patheffects.py.new 2017-01-07 21:21:08.014411109 -0800
|
||||
@@ -110,7 +110,7 @@
|
||||
assert_equal(pe._offset, (4, 5))
|
||||
|
||||
|
||||
-@image_comparison(baseline_images=['collection'], tol=0.015)
|
||||
+@image_comparison(baseline_images=['collection'], tol=0.083)
|
||||
def test_collection():
|
||||
x, y = np.meshgrid(np.linspace(0, 10, 150), np.linspace(-5, 5, 100))
|
||||
data = np.sin(x) + np.cos(y)
|
||||
--- matplotlib-2.0.0rc2/lib/matplotlib/tests/test_mathtext.py 2016-12-18 11:40:53.000000000 -0800
|
||||
+++ matplotlib-2.0.0rc2/lib/matplotlib/tests/test_mathtext.py.new 2017-01-07 22:02:42.396426402 -0800
|
||||
@@ -158,7 +158,7 @@
|
||||
|
||||
def make_set(basename, fontset, tests, extensions=None):
|
||||
def make_test(filename, test):
|
||||
- @image_comparison(baseline_images=[filename], extensions=extensions)
|
||||
+ @image_comparison(baseline_images=[filename], extensions=extensions, tol=0.310)
|
||||
def single_test():
|
||||
matplotlib.rcParams['mathtext.fontset'] = fontset
|
||||
fig = plt.figure(figsize=(5.25, 0.75))
|
||||
@@ -4,9 +4,17 @@
|
||||
%global with_python3 0
|
||||
%endif
|
||||
%global __provides_exclude_from .*/site-packages/.*\\.so$
|
||||
%global with_html 1
|
||||
%global with_html 0
|
||||
|
||||
# It seems like there's some kind of weird occasional error where a
|
||||
# build (often aarch64 or ppc64) will fail in one of the Stix font
|
||||
# tests with a huge RMS difference, but if you run the same build again,
|
||||
# you won't get the same error. Unless someone can figure out what's
|
||||
# going on, we just have to keep re-running the build until it doesn't
|
||||
# happen.
|
||||
%global run_tests 1
|
||||
|
||||
|
||||
# On RHEL 7 onwards, don't build with wx:
|
||||
%if 0%{?rhel} >= 7
|
||||
%global with_wx 0
|
||||
@@ -43,64 +51,39 @@
|
||||
# Use the same directory of the main package for subpackage licence and docs
|
||||
%global _docdir_fmt %{name}
|
||||
|
||||
%global rctag rc2
|
||||
#global rctag rc2
|
||||
|
||||
Name: python-matplotlib
|
||||
Version: 1.5.2
|
||||
Release: 0.1%{?rctag:.%{rctag}}%{?dist}
|
||||
Version: 2.0.0
|
||||
Release: 2%{?rctag:.%{rctag}}%{?dist}.2
|
||||
Summary: Python 2D plotting library
|
||||
Group: Development/Libraries
|
||||
# qt4_editor backend is MIT
|
||||
License: Python and MIT
|
||||
URL: http://matplotlib.org
|
||||
Source0: https://github.com/matplotlib/matplotlib/archive/v%{version}%{?rctag}.tar.gz#/matplotlib-%{version}%{?rctag}.tar.gz
|
||||
#Source0: https://github.com/matplotlib/matplotlib/archive/v%{version}%{?rctag}.tar.gz#/matplotlib-%{version}%{?rctag}.tar.gz
|
||||
Source0: matplotlib-%{version}-without-copyrighted.tar.xz
|
||||
Source1: setup.cfg
|
||||
|
||||
#Patch0: %{name}-noagg.patch
|
||||
# https://github.com/matplotlib/matplotlib/issues/6536
|
||||
Patch2: 20_matplotlibrc_path_search_fix.patch
|
||||
Patch5: 70_bts720549_try_StayPuft_for_xkcd.patch
|
||||
# https://github.com/matplotlib/matplotlib/issues/6537
|
||||
Patch6: python-matplotlib-use-system-six.patch
|
||||
# https://github.com/matplotlib/matplotlib/pull/6558
|
||||
# https://github.com/matplotlib/matplotlib/issues/6539
|
||||
Patch7: python-matplotlib-disable-failing-tests.patch
|
||||
# https://github.com/matplotlib/matplotlib/issues/6538
|
||||
Patch8: python-matplotlib-disable-failing-tests-armv7hl.patch
|
||||
Patch8: python-matplotlib-disable-failing-tests-arm.patch
|
||||
# https://github.com/matplotlib/matplotlib/issues/6791
|
||||
Patch9: python-matplotlib-qhull.patch
|
||||
# https://github.com/matplotlib/matplotlib/issues/7134
|
||||
# https://github.com/matplotlib/matplotlib/issues/7158
|
||||
# https://github.com/matplotlib/matplotlib/issues/7159
|
||||
# https://github.com/matplotlib/matplotlib/issues/7797
|
||||
Patch10: python-matplotlib-increase-tests-tolerance.patch
|
||||
Patch11: python-matplotlib-increase-tests-tolerance-aarch64ppc64.patch
|
||||
Patch13: python-matplotlib-increase-tests-tolerance-i686.patch
|
||||
|
||||
BuildRequires: freetype-devel
|
||||
BuildRequires: libpng-devel
|
||||
BuildRequires: qhull-devel
|
||||
BuildRequires: python-six
|
||||
BuildRequires: numpy
|
||||
BuildRequires: pyparsing
|
||||
BuildRequires: python-pycxx-devel
|
||||
BuildRequires: python-dateutil
|
||||
BuildRequires: python-setuptools
|
||||
%if %{with_html}
|
||||
BuildRequires: python-ipython-sphinx
|
||||
BuildRequires: python-numpydoc
|
||||
BuildRequires: python-scikit-image
|
||||
BuildRequires: python2-cycler
|
||||
%endif
|
||||
%if %{run_tests}
|
||||
BuildRequires: python-nose
|
||||
BuildRequires: python2-cycler
|
||||
BuildRequires: python2-mock
|
||||
%if %{with_python3}
|
||||
BuildRequires: python3-mock
|
||||
BuildRequires: python3-nose
|
||||
%endif
|
||||
%endif
|
||||
BuildRequires: python2-devel
|
||||
BuildRequires: pytz
|
||||
BuildRequires: xorg-x11-server-Xvfb
|
||||
BuildRequires: zlib-devel
|
||||
|
||||
Provides: bundled(agg) = 2.4
|
||||
Provides: bundled(ttconv)
|
||||
|
||||
%description
|
||||
Matplotlib is a python 2D plotting library which produces publication
|
||||
quality figures in a variety of hardcopy formats and interactive
|
||||
@@ -114,23 +97,62 @@ errorcharts, scatterplots, etc, with just a few lines of code.
|
||||
|
||||
%package -n python2-matplotlib
|
||||
Summary: Python 2D plotting library
|
||||
%{?python_provide:%python_provide python2-matplotlib}
|
||||
BuildRequires: numpy
|
||||
BuildRequires: pyparsing
|
||||
BuildRequires: python-dateutil
|
||||
BuildRequires: python-pycxx-devel
|
||||
BuildRequires: python-pyside
|
||||
BuildRequires: python-setuptools
|
||||
BuildRequires: python-six
|
||||
BuildRequires: python-subprocess32
|
||||
BuildRequires: python2-devel
|
||||
BuildRequires: python2-functools32
|
||||
BuildRequires: python2-pillow
|
||||
BuildRequires: pytz
|
||||
%if %{with_html}
|
||||
BuildRequires: %{_bindir}/pdftops
|
||||
# circular dependency: python-basemap requires matplotlib
|
||||
BuildRequires: python-basemap
|
||||
BuildRequires: python-ipython-sphinx
|
||||
BuildRequires: python-numpydoc
|
||||
BuildRequires: python-scikit-image
|
||||
BuildRequires: python2-colorspacious
|
||||
BuildRequires: python2-cycler >= 0.10.0
|
||||
%endif
|
||||
%if %{run_tests}
|
||||
BuildRequires: python-nose
|
||||
BuildRequires: python2-cycler >= 0.10.0
|
||||
BuildRequires: python2-mock
|
||||
%endif
|
||||
Requires: dejavu-sans-fonts
|
||||
Requires: dvipng
|
||||
Requires: python-six
|
||||
Requires: numpy
|
||||
Requires: pyparsing
|
||||
Requires: python2-cycler
|
||||
Requires: python2-cycler >= 0.10.0
|
||||
Requires: python-dateutil
|
||||
Requires: python2-functools32
|
||||
Requires: python-matplotlib-data = %{version}-%{release}
|
||||
%{?backend_subpackage:Requires: python2-matplotlib-%{backend_subpackage}%{?_isa} = %{version}-%{release}}
|
||||
Recommends: python2-pillow
|
||||
Requires: python-six
|
||||
Requires: python-subprocess32
|
||||
Requires: pytz
|
||||
%if 0%{?fedora} >= 18
|
||||
%if !%{with_bundled_fonts}
|
||||
%if 0%{?fedora}
|
||||
Requires: stix-math-fonts
|
||||
%else
|
||||
Requires: stix-fonts
|
||||
%endif
|
||||
Requires: %{name}-data = %{version}-%{release}
|
||||
%else
|
||||
Provides: bundled(stix-math-fonts)
|
||||
%endif
|
||||
%{?python_provide:%python_provide python2-matplotlib}
|
||||
Provides: bundled(agg) = 2.4
|
||||
Provides: bundled(ttconv)
|
||||
Provides: bundled(js-jquery1) = 1.11.3
|
||||
Provides: bundled(js-jquery1-ui) = 1.11.4
|
||||
Provides: bundled(texlive-helvetic)
|
||||
|
||||
%{?backend_subpackage:Requires: python2-matplotlib-%{backend_subpackage}%{?_isa} = %{version}-%{release}}
|
||||
%description -n python2-matplotlib
|
||||
Matplotlib is a python 2D plotting library which produces publication
|
||||
quality figures in a variety of hardcopy formats and interactive
|
||||
@@ -143,117 +165,117 @@ You can generate plots, histograms, power spectra, bar charts,
|
||||
errorcharts, scatterplots, etc, with just a few lines of code.
|
||||
|
||||
%package -n python2-matplotlib-qt4
|
||||
%{?python_provide:%python_provide python2-matplotlib-qt4}
|
||||
Summary: Qt4 backend for python-matplotlib
|
||||
Group: Development/Libraries
|
||||
Requires: python2-matplotlib%{?_isa} = %{version}-%{release}
|
||||
Requires: python2-matplotlib-qt5
|
||||
BuildRequires: PyQt4-devel
|
||||
Requires: PyQt4
|
||||
Requires: python2-matplotlib%{?_isa} = %{version}-%{release}
|
||||
Requires: python2-matplotlib-qt5
|
||||
%{?python_provide:%python_provide python2-matplotlib-qt4}
|
||||
|
||||
%description -n python2-matplotlib-qt4
|
||||
%{summary}
|
||||
|
||||
%if %{with_qt5}
|
||||
%package -n python2-matplotlib-qt5
|
||||
%{?python_provide:%python_provide python2-matplotlib-qt5}
|
||||
Summary: Qt5 backend for python-matplotlib
|
||||
Group: Development/Libraries
|
||||
Requires: python2-matplotlib%{?_isa} = %{version}-%{release}
|
||||
BuildRequires: python-qt5
|
||||
Requires: python-qt5
|
||||
Requires: python2-matplotlib%{?_isa} = %{version}-%{release}
|
||||
%{?python_provide:%python_provide python2-matplotlib-qt5}
|
||||
|
||||
%description -n python2-matplotlib-qt5
|
||||
%{summary}
|
||||
%endif # with_qt5
|
||||
|
||||
%package -n python2-matplotlib-gtk
|
||||
%{?python_provide:%python_provide python2-matplotlib-gtk}
|
||||
Summary: GTK backend for python-matplotlib
|
||||
Group: Development/Libraries
|
||||
Requires: python2-matplotlib%{?_isa} = %{version}-%{release}
|
||||
BuildRequires: gtk2-devel
|
||||
BuildRequires: pygtk2-devel
|
||||
BuildRequires: pycairo-devel
|
||||
BuildRequires: pygtk2-devel
|
||||
Requires: pycairo
|
||||
Requires: pygtk2
|
||||
Requires: python2-matplotlib%{?_isa} = %{version}-%{release}
|
||||
%{?python_provide:%python_provide python2-matplotlib-gtk}
|
||||
|
||||
%description -n python2-matplotlib-gtk
|
||||
%{summary}
|
||||
|
||||
%package -n python2-matplotlib-gtk3
|
||||
%{?python_provide:%python_provide python2-matplotlib-gtk3}
|
||||
Summary: GTK3 backend for python-matplotlib
|
||||
Group: Development/Libraries
|
||||
Requires: python2-matplotlib%{?_isa} = %{version}-%{release}
|
||||
# This should be converted to typelib(Gtk) when supported
|
||||
BuildRequires: gtk3
|
||||
BuildRequires: pygobject3-base
|
||||
Requires: gtk3%{?_isa}
|
||||
Requires: pygobject3-base%{?_isa}
|
||||
Requires: python2-matplotlib%{?_isa} = %{version}-%{release}
|
||||
%{?python_provide:%python_provide python2-matplotlib-gtk3}
|
||||
|
||||
%description -n python2-matplotlib-gtk3
|
||||
%{summary}
|
||||
|
||||
%package -n python2-matplotlib-tk
|
||||
%{?python_provide:%python_provide python2-matplotlib-tk}
|
||||
Summary: Tk backend for python-matplotlib
|
||||
Group: Development/Libraries
|
||||
Requires: python2-matplotlib%{?_isa} = %{version}-%{release}
|
||||
BuildRequires: tcl-devel
|
||||
BuildRequires: tkinter
|
||||
BuildRequires: tk-devel
|
||||
Requires: python2-matplotlib%{?_isa} = %{version}-%{release}
|
||||
Requires: tkinter
|
||||
%{?python_provide:%python_provide python2-matplotlib-tk}
|
||||
|
||||
%description -n python2-matplotlib-tk
|
||||
%{summary}
|
||||
|
||||
%if %{with_wx}
|
||||
%package -n python2-matplotlib-wx
|
||||
%{?python_provide:%python_provide python2-matplotlib-wx}
|
||||
Summary: wxPython backend for python-matplotlib
|
||||
Group: Development/Libraries
|
||||
Requires: python2-matplotlib%{?_isa} = %{version}-%{release}
|
||||
BuildRequires: wxPython-devel
|
||||
Requires: python2-matplotlib%{?_isa} = %{version}-%{release}
|
||||
Requires: wxPython
|
||||
%{?python_provide:%python_provide python2-matplotlib-wx}
|
||||
|
||||
%description -n python2-matplotlib-wx
|
||||
%{summary}
|
||||
%endif # with_wx
|
||||
|
||||
%package -n python2-matplotlib-doc
|
||||
%{?python_provide:%python_provide python2-matplotlib-doc}
|
||||
Summary: Documentation files for python-matplotlib
|
||||
Group: Documentation
|
||||
Requires: python2-matplotlib%{?_isa} = %{version}-%{release}
|
||||
%if %{with_html}
|
||||
BuildRequires: dvipng
|
||||
BuildRequires: graphviz
|
||||
BuildRequires: python-sphinx
|
||||
BuildRequires: tex(latex)
|
||||
BuildRequires: tex-preview
|
||||
BuildRequires: dvipng
|
||||
BuildRequires: graphviz
|
||||
%endif
|
||||
Requires: python2-matplotlib%{?_isa} = %{version}-%{release}
|
||||
%{?python_provide:%python_provide python2-matplotlib-doc}
|
||||
|
||||
%description -n python2-matplotlib-doc
|
||||
%{summary}
|
||||
|
||||
%package -n python-matplotlib-data
|
||||
%{?python_provide:%python_provide python-matplotlib-data}
|
||||
Summary: Data used by python-matplotlib
|
||||
BuildArch: noarch
|
||||
%if %{with_bundled_fonts}
|
||||
Requires: python-matplotlib-data-fonts = %{version}-%{release}
|
||||
%endif
|
||||
BuildArch: noarch
|
||||
%{?python_provide:%python_provide python-matplotlib-data}
|
||||
|
||||
%description -n python-matplotlib-data
|
||||
%{summary}
|
||||
|
||||
%if %{with_bundled_fonts}
|
||||
%package -n python-matplotlib-data-fonts
|
||||
%{?python_provide:%python_provide python-matplotlib-data-fonts}
|
||||
Summary: Fonts used by python-matplotlib
|
||||
Requires: python-matplotlib-data = %{version}-%{release}
|
||||
BuildArch: noarch
|
||||
Requires: python-matplotlib-data = %{version}-%{release}
|
||||
%{?python_provide:%python_provide python-matplotlib-data-fonts}
|
||||
|
||||
%description -n python-matplotlib-data-fonts
|
||||
%{summary}
|
||||
@@ -261,37 +283,46 @@ BuildArch: noarch
|
||||
|
||||
%if %{with_python3}
|
||||
%package -n python3-matplotlib
|
||||
%{?python_provide:%python_provide python3-matplotlib}
|
||||
Summary: Python 2D plotting library
|
||||
Group: Development/Libraries
|
||||
BuildRequires: python3-cairo
|
||||
BuildRequires: python3-cycler >= 0.10.0
|
||||
BuildRequires: python3-dateutil
|
||||
BuildRequires: python3-devel
|
||||
BuildRequires: python3-setuptools
|
||||
BuildRequires: python3-gobject
|
||||
BuildRequires: python3-numpy
|
||||
BuildRequires: python3-pillow
|
||||
BuildRequires: python3-pycxx-devel
|
||||
BuildRequires: python3-pyparsing
|
||||
BuildRequires: python3-pytz
|
||||
BuildRequires: python3-six
|
||||
BuildRequires: python3-cycler
|
||||
Requires: python3-six
|
||||
Requires: python3-numpy
|
||||
Requires: python3-cairo
|
||||
Requires: python3-pyparsing
|
||||
Requires: python3-cycler
|
||||
Requires: python3-dateutil
|
||||
Requires: python3-pytz
|
||||
Requires: dejavu-sans-fonts
|
||||
Requires: dvipng
|
||||
%if 0%{?fedora} >= 18
|
||||
Requires: python-matplotlib-data = %{version}-%{release}
|
||||
Requires: python3-cairo
|
||||
Requires: python3-cycler >= 0.10.0
|
||||
Requires: python3-dateutil
|
||||
Requires: python3-matplotlib-%{?backend_subpackage}%{!?backend_subpackage:tk}%{?_isa} = %{version}-%{release}
|
||||
%if %{run_tests}
|
||||
BuildRequires: python3-mock
|
||||
BuildRequires: python3-nose
|
||||
%endif
|
||||
Requires: python3-numpy
|
||||
Recommends: python3-pillow
|
||||
Requires: python3-pyparsing
|
||||
Requires: python3-pytz
|
||||
Requires: python3-six
|
||||
%if !%{with_bundled_fonts}
|
||||
%if 0%{?fedora}
|
||||
Requires: stix-math-fonts
|
||||
%else
|
||||
Requires: stix-fonts
|
||||
%endif
|
||||
Requires: %{name}-data = %{version}-%{release}
|
||||
|
||||
Requires: python3-matplotlib-%{?backend_subpackage}%{!?backend_subpackage:tk}%{?_isa} = %{version}-%{release}
|
||||
%else
|
||||
Provides: bundled(stix-math-fonts)
|
||||
%endif
|
||||
%{?python_provide:%python_provide python3-matplotlib}
|
||||
|
||||
%description -n python3-matplotlib
|
||||
Matplotlib is a python 2D plotting library which produces publication
|
||||
@@ -305,25 +336,25 @@ You can generate plots, histograms, power spectra, bar charts,
|
||||
errorcharts, scatterplots, etc, with just a few lines of code.
|
||||
|
||||
%package -n python3-matplotlib-qt4
|
||||
%{?python_provide:%python_provide python3-matplotlib-qt4}
|
||||
Summary: Qt4 backend for python3-matplotlib
|
||||
Group: Development/Libraries
|
||||
BuildRequires: python3-PyQt4-devel
|
||||
Requires: python3-matplotlib%{?_isa} = %{version}-%{release}
|
||||
Requires: python3-matplotlib-qt5
|
||||
BuildRequires: python3-PyQt4-devel
|
||||
Requires: python3-PyQt4
|
||||
%{?python_provide:%python_provide python3-matplotlib-qt4}
|
||||
|
||||
%description -n python3-matplotlib-qt4
|
||||
%{summary}
|
||||
|
||||
%if %{with_qt5}
|
||||
%package -n python3-matplotlib-qt5
|
||||
%{?python_provide:%python_provide python3-matplotlib-qt5}
|
||||
Summary: Qt5 backend for python3-matplotlib
|
||||
Group: Development/Libraries
|
||||
Requires: python3-matplotlib%{?_isa} = %{version}-%{release}
|
||||
BuildRequires: python3-qt5
|
||||
Requires: python3-matplotlib%{?_isa} = %{version}-%{release}
|
||||
Requires: python3-qt5
|
||||
%{?python_provide:%python_provide python3-matplotlib-qt5}
|
||||
|
||||
%description -n python3-matplotlib-qt5
|
||||
%{summary}
|
||||
@@ -331,26 +362,26 @@ Requires: python3-qt5
|
||||
|
||||
# gtk2 never worked in Python 3 afaict, so no need for -gtk subpackage
|
||||
%package -n python3-matplotlib-gtk3
|
||||
%{?python_provide:%python_provide python3-matplotlib-gtk3}
|
||||
Summary: GTK3 backend for python3-matplotlib
|
||||
Group: Development/Libraries
|
||||
Requires: python3-matplotlib%{?_isa} = %{version}-%{release}
|
||||
# This should be converted to typelib(Gtk) when supported
|
||||
BuildRequires: gtk3
|
||||
BuildRequires: python3-gobject
|
||||
Requires: gtk3%{?_isa}
|
||||
Requires: python3-gobject%{?_isa}
|
||||
Requires: python3-matplotlib%{?_isa} = %{version}-%{release}
|
||||
%{?python_provide:%python_provide python3-matplotlib-gtk3}
|
||||
|
||||
%description -n python3-matplotlib-gtk3
|
||||
%{summary}
|
||||
|
||||
%package -n python3-matplotlib-tk
|
||||
%{?python_provide:%python_provide python3-matplotlib-tk}
|
||||
Summary: Tk backend for python3-matplotlib
|
||||
Group: Development/Libraries
|
||||
Requires: python3-matplotlib%{?_isa} = %{version}-%{release}
|
||||
BuildRequires: python3-tkinter
|
||||
Requires: python3-matplotlib%{?_isa} = %{version}-%{release}
|
||||
Requires: python3-tkinter
|
||||
%{?python_provide:%python_provide python3-matplotlib-tk}
|
||||
|
||||
%description -n python3-matplotlib-tk
|
||||
%{summary}
|
||||
@@ -358,7 +389,7 @@ Requires: python3-tkinter
|
||||
|
||||
%prep
|
||||
%setup -q -n matplotlib-%{version}%{?rctag}
|
||||
rm -r {extern/qhull,lib/matplotlib/externals}
|
||||
rm -r extern/qhull
|
||||
|
||||
# Copy setup.cfg to the builddir
|
||||
sed 's/\(backend = \).*/\1%{backend}/' >setup.cfg <%{SOURCE1}
|
||||
@@ -368,7 +399,7 @@ sed 's/\(backend = \).*/\1%{backend}/' >setup.cfg <%{SOURCE1}
|
||||
# if updated from a version enabling fontconfig to one not
|
||||
# enabling it, or vice versa
|
||||
if [ %{version} = 1.4.3 ]; then
|
||||
sed -i 's/\(__version__ = 101\)/\1.1/' lib/matplotlib/font_manager.py
|
||||
sed -i 's/\(__version__ = 200\)/\1.1/' lib/matplotlib/font_manager.py
|
||||
fi
|
||||
|
||||
%if !%{with_bundled_fonts}
|
||||
@@ -377,26 +408,28 @@ sed -i 's/\(USE_FONTCONFIG = \)False/\1True/' lib/matplotlib/font_manager.py
|
||||
%endif
|
||||
|
||||
%patch2 -p1
|
||||
%patch5 -p1
|
||||
for f in $(find . -type f -name '*.py' -print) ; do
|
||||
if grep -q "matplotlib.externals" $f ; then
|
||||
sed -i -e 's/from matplotlib.externals import six/import six/g' -e 's/from matplotlib.externals.six/from six/g' $f
|
||||
fi
|
||||
done
|
||||
%patch6 -p1 -b .six
|
||||
%patch7 -p1 -b .tests
|
||||
%ifarch armv7hl
|
||||
%patch8 -p1 -b .tests-armv7hl
|
||||
%ifarch armv7hl aarch64
|
||||
%patch8 -p1 -b .tests-arm
|
||||
%endif
|
||||
|
||||
%if 0%{?fedora} > 24
|
||||
# Installation paths changed
|
||||
%patch9 -p1 -b .qh
|
||||
%endif
|
||||
%patch10 -p1 -b .tests
|
||||
%ifarch aarch64 %{power64} s390 s390x
|
||||
%patch11 -p1 -b .tests-aarch64ppc64
|
||||
%endif
|
||||
%ifarch i686
|
||||
%patch13 -p1 -b .tests-i686
|
||||
%endif
|
||||
|
||||
chmod -x lib/matplotlib/mpl-data/images/*.svg
|
||||
chmod -x lib/matplotlib/{dates,sankey}.py
|
||||
chmod -x lib/mpl_toolkits/mplot3d/*.py
|
||||
|
||||
%build
|
||||
export http_proxy=http://127.0.0.1/
|
||||
MPLCONFIGDIR=$PWD \
|
||||
MATPLOTLIBDATA=$PWD/lib/matplotlib/mpl-data \
|
||||
xvfb-run %{__python2} setup.py build
|
||||
@@ -422,6 +455,7 @@ MATPLOTLIBDATA=$PWD/lib/matplotlib/mpl-data \
|
||||
%endif
|
||||
|
||||
%install
|
||||
export http_proxy=http://127.0.0.1/
|
||||
MPLCONFIGDIR=$PWD \
|
||||
MATPLOTLIBDATA=$PWD/lib/matplotlib/mpl-data/ \
|
||||
%{__python} setup.py install -O1 --skip-build --root=%{buildroot}
|
||||
@@ -445,6 +479,7 @@ rm -fr %{buildroot}%{python3_sitearch}/matplotlib/mpl-data
|
||||
|
||||
%if %{run_tests}
|
||||
%check
|
||||
export http_proxy=http://127.0.0.1/
|
||||
# This should match the default backend
|
||||
echo "backend : %{backend}" > matplotlibrc
|
||||
MPLCONFIGDIR=$PWD \
|
||||
@@ -460,6 +495,18 @@ PYTHONPATH=%{buildroot}%{python3_sitearch} \
|
||||
%endif
|
||||
%endif # run_tests
|
||||
|
||||
%files -n python-matplotlib-data
|
||||
%{_sysconfdir}/matplotlibrc
|
||||
%{_datadir}/matplotlib/mpl-data/
|
||||
%if %{with_bundled_fonts}
|
||||
%exclude %{_datadir}/matplotlib/mpl-data/fonts/
|
||||
%endif
|
||||
|
||||
%if %{with_bundled_fonts}
|
||||
%files -n python-matplotlib-data-fonts
|
||||
%{_datadir}/matplotlib/mpl-data/fonts/
|
||||
%endif
|
||||
|
||||
%files -n python2-matplotlib
|
||||
%license LICENSE/
|
||||
%doc CONTRIBUTING.md
|
||||
@@ -468,7 +515,9 @@ PYTHONPATH=%{buildroot}%{python3_sitearch} \
|
||||
%{python2_sitearch}/*egg-info
|
||||
%{python2_sitearch}/matplotlib-*-nspkg.pth
|
||||
%{python2_sitearch}/matplotlib/
|
||||
%exclude %{python2_sitearch}/matplotlib/tests/baseline_images/*
|
||||
%{python2_sitearch}/mpl_toolkits/
|
||||
%exclude %{python2_sitearch}/mpl_toolkits/tests/baseline_images/*
|
||||
%{python2_sitearch}/pylab.py*
|
||||
%exclude %{python2_sitearch}/matplotlib/backends/backend_qt4*
|
||||
%exclude %{python2_sitearch}/matplotlib/backends/backend_qt5*
|
||||
@@ -479,7 +528,8 @@ PYTHONPATH=%{buildroot}%{python3_sitearch} \
|
||||
%exclude %{python2_sitearch}/matplotlib/backends/_tkagg.so
|
||||
%exclude %{python2_sitearch}/matplotlib/backends/backend_wx.*
|
||||
%exclude %{python2_sitearch}/matplotlib/backends/backend_wxagg.*
|
||||
%exclude %{_pkgdocdir}/*/
|
||||
%exclude %{_pkgdocdir}/*
|
||||
%exclude %{_pkgdocdir}/*/*
|
||||
|
||||
%files -n python2-matplotlib-qt4
|
||||
%{python2_sitearch}/matplotlib/backends/backend_qt4.*
|
||||
@@ -517,18 +567,6 @@ PYTHONPATH=%{buildroot}%{python3_sitearch} \
|
||||
%doc doc/build/html/*
|
||||
%endif
|
||||
|
||||
%files -n python-matplotlib-data
|
||||
%{_sysconfdir}/matplotlibrc
|
||||
%{_datadir}/matplotlib/mpl-data/
|
||||
%if %{with_bundled_fonts}
|
||||
%exclude %{_datadir}/matplotlib/mpl-data/fonts/
|
||||
%endif
|
||||
|
||||
%if %{with_bundled_fonts}
|
||||
%files -n python-matplotlib-data-fonts
|
||||
%{_datadir}/matplotlib/mpl-data/fonts/
|
||||
%endif
|
||||
|
||||
%if %{with_python3}
|
||||
%files -n python3-matplotlib
|
||||
%license LICENSE/
|
||||
@@ -538,7 +576,9 @@ PYTHONPATH=%{buildroot}%{python3_sitearch} \
|
||||
%{python3_sitearch}/*egg-info
|
||||
%{python3_sitearch}/matplotlib-*-nspkg.pth
|
||||
%{python3_sitearch}/matplotlib/
|
||||
%exclude %{python3_sitearch}/matplotlib/tests/baseline_images/*
|
||||
%{python3_sitearch}/mpl_toolkits/
|
||||
%exclude %{python3_sitearch}/mpl_toolkits/tests/baseline_images/*
|
||||
%{python3_sitearch}/pylab.py*
|
||||
%{python3_sitearch}/__pycache__/*
|
||||
%exclude %{python3_sitearch}/matplotlib/backends/backend_qt4*
|
||||
@@ -581,6 +621,55 @@ PYTHONPATH=%{buildroot}%{python3_sitearch} \
|
||||
%endif
|
||||
|
||||
%changelog
|
||||
* Mon Mar 06 2017 Thomas Spura <tomspur@fedoraproject.org> - 2.0.0-2.2
|
||||
- Remove copyrighted file from tarball (gh-8034)
|
||||
|
||||
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 2.0.0-2.1
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
|
||||
|
||||
* Wed Jan 25 2017 Dan Horák <dan[at]danny.cz> - 2.0.0-2
|
||||
- Apply the 'aarch64' test tolerance patch on s390(x) also
|
||||
|
||||
* Fri Jan 20 2017 Orion Poplawski <orion@cora.nwra.com> - 2.0.0-1
|
||||
- Update to 2.0.0 final
|
||||
|
||||
* Tue Jan 10 2017 Adam Williamson <awilliam@redhat.com> - 2.0.0-0.7.rc2
|
||||
- Update to 2.0.0rc2
|
||||
- Fix more big-endian integer issues
|
||||
- Apply the 'aarch64' test tolerance patch on ppc64 also (it's affected by same issues)
|
||||
- Tweak the 'i686' test tolerance patch a bit (some errors are gone, some new ones)
|
||||
- Re-enable test suite for all arches
|
||||
- Note a remaining quasi-random test issue that causes build to fail sometimes
|
||||
|
||||
* Mon Jan 09 2017 Adam Williamson <awilliam@redhat.com> - 2.0.0-0.6.b4
|
||||
- Fix another integer type issue which caused more issues on ppc64
|
||||
|
||||
* Sun Jan 08 2017 Adam Williamson <awilliam@redhat.com> - 2.0.0-0.5.b4
|
||||
- Fix int type conversion error that broke text rendering on ppc64 (#1411070)
|
||||
|
||||
* Tue Dec 13 2016 Charalampos Stratakis <cstratak@redhat.com> - 2.0.0-0.4.b4
|
||||
- Rebuild for Python 3.6
|
||||
|
||||
* Mon Oct 24 2016 Dan Horák <dan[at]danny.cz> - 2.0.0-0.3.b4
|
||||
- disable tests on some alt-arches to unblock depending builds
|
||||
|
||||
* Mon Sep 26 2016 Dominik Mierzejewski <rpm@greysector.net> - 2.0.0-0.2.b4
|
||||
- add missing runtime dependencies for python2 package
|
||||
|
||||
* Sat Sep 10 2016 Dominik Mierzejewski <rpm@greysector.net> - 2.0.0-0.1.b4
|
||||
- Update to 2.0.0b4
|
||||
- Drop upstreamed or obsolete patches
|
||||
- python-cycler >= 0.10.0 is required
|
||||
- move around Requires and BRs and sort more or less alphabetically
|
||||
- don't ship baseline images for tests (like Debian)
|
||||
- Require stix fonts only when they're not bundled
|
||||
- disable HTML doc building for bootstrapping 2.0.x series
|
||||
- relax image rendering tests tolerance due to freetype version differences
|
||||
- disable some failing tests on aarch64 for now
|
||||
|
||||
* Tue Jul 19 2016 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.5.2-0.2.rc2
|
||||
- https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages
|
||||
|
||||
* Fri Jun 03 2016 Dominik Mierzejewski <rpm@greysector.net> - 1.5.1-7
|
||||
- Update to 1.5.2rc2.
|
||||
- Drop wrong hunk from use-system-six patch.
|
||||
|
||||
21
remove-files.sh
Executable file
21
remove-files.sh
Executable file
@@ -0,0 +1,21 @@
|
||||
#! /bin/sh
|
||||
|
||||
version=$1
|
||||
|
||||
[ -z $version ] && exit 1
|
||||
|
||||
dir=matplotlib-${version}
|
||||
file=matplotlib-${version}.tar.gz
|
||||
result=matplotlib-${version}-without-copyrighted.tar.xz
|
||||
|
||||
test -f $file || exit 1
|
||||
|
||||
rm -rf matplotlib-${version}
|
||||
tar xzf $file
|
||||
|
||||
# https://github.com/matplotlib/matplotlib/issues/8034
|
||||
rm -vr matplotlib-${version}/lib/matplotlib/mpl-data/sample_data/necked_tensile_specimen.png
|
||||
rm -vr matplotlib-${version}/examples/images_contours_and_fields/interpolation_none_vs_nearest.py
|
||||
|
||||
rm -f $result
|
||||
tar cJf $result $dir
|
||||
Reference in New Issue
Block a user