From 1f37c6ab3ac91bb6c6cc9e75c990dd5bce3c1e56 Mon Sep 17 00:00:00 2001 From: Elliott Sales de Andrade Date: Fri, 22 Nov 2019 20:10:32 -0500 Subject: [PATCH] Update to 3.1.2. --- .gitignore | 1 + ...-env-override-in-WebAgg-backend-test.patch | 36 ++++++++++ ...agg-test-if-tornado-is-not-available.patch | 25 +++++++ 0001-Use-packaged-jquery-and-jquery-ui.patch | 26 ++++--- 0001-matplotlibrc-path-search-fix.patch | 16 ++--- ...sion-to-2.10.0-and-update-tolerances.patch | 35 ++++++---- ...ase-tolerances-for-non-x86_64-arches.patch | 6 +- ...e-some-tolerances-for-32-bit-systems.patch | 48 ++++++------- ...e83b6793e5ccda8543f3584eb8bc2dc657e2.patch | 23 ------- ...a1253ca5dc597550c5cd746f30dabee770bc.patch | 68 ------------------- python-matplotlib.spec | 21 +++--- sources | 2 +- 12 files changed, 151 insertions(+), 156 deletions(-) create mode 100644 0001-Fix-env-override-in-WebAgg-backend-test.patch create mode 100644 0001-Skip-webagg-test-if-tornado-is-not-available.patch delete mode 100644 1230e83b6793e5ccda8543f3584eb8bc2dc657e2.patch delete mode 100644 4651a1253ca5dc597550c5cd746f30dabee770bc.patch diff --git a/.gitignore b/.gitignore index 190b4b8..e5b0831 100644 --- a/.gitignore +++ b/.gitignore @@ -41,3 +41,4 @@ matplotlib-1.0.0-without-gpc.tar.gz /matplotlib-3.1.0-with-freetype-2.10.0.tar.gz /matplotlib-3.1.1.tar.gz /matplotlib-3.1.1-with-freetype-2.10.0.tar.gz +/matplotlib-3.1.2.tar.gz diff --git a/0001-Fix-env-override-in-WebAgg-backend-test.patch b/0001-Fix-env-override-in-WebAgg-backend-test.patch new file mode 100644 index 0000000..e14af33 --- /dev/null +++ b/0001-Fix-env-override-in-WebAgg-backend-test.patch @@ -0,0 +1,36 @@ +From f0dbd8d7b76ac217df3641d03997b393c476d77c Mon Sep 17 00:00:00 2001 +From: Elliott Sales de Andrade +Date: Wed, 20 Nov 2019 15:58:04 -0500 +Subject: [PATCH] Fix env override in WebAgg backend test. + +It's only necessary to override DISPLAY, not throw away the rest of the +environment. Without the other environment variables, stuff like custom +PYTHONPATH break in this test. + +Signed-off-by: Elliott Sales de Andrade +--- + lib/matplotlib/tests/test_backend_webagg.py | 8 +++----- + 1 file changed, 3 insertions(+), 5 deletions(-) + +diff --git a/lib/matplotlib/tests/test_backend_webagg.py b/lib/matplotlib/tests/test_backend_webagg.py +index 220670aa4..997c36a3a 100644 +--- a/lib/matplotlib/tests/test_backend_webagg.py ++++ b/lib/matplotlib/tests/test_backend_webagg.py +@@ -8,11 +8,9 @@ import pytest + def test_webagg_fallback(backend): + if backend == "nbagg": + pytest.importorskip("IPython") +- env = {} +- if os.name == "nt": +- env = dict(os.environ) +- else: +- env = {"DISPLAY": ""} ++ env = dict(os.environ) ++ if os.name != "nt": ++ env["DISPLAY"] = "" + + env["MPLBACKEND"] = backend + +-- +2.21.0 + diff --git a/0001-Skip-webagg-test-if-tornado-is-not-available.patch b/0001-Skip-webagg-test-if-tornado-is-not-available.patch new file mode 100644 index 0000000..09d7347 --- /dev/null +++ b/0001-Skip-webagg-test-if-tornado-is-not-available.patch @@ -0,0 +1,25 @@ +From 5c714fede82e29bd42a3a6f20ec2898a9c37a0ed Mon Sep 17 00:00:00 2001 +From: Elliott Sales de Andrade +Date: Fri, 22 Nov 2019 19:50:20 -0500 +Subject: [PATCH] Skip webagg test if tornado is not available. + +Signed-off-by: Elliott Sales de Andrade +--- + lib/matplotlib/tests/test_backend_webagg.py | 1 + + 1 file changed, 1 insertion(+) + +diff --git a/lib/matplotlib/tests/test_backend_webagg.py b/lib/matplotlib/tests/test_backend_webagg.py +index 997c36a3a..5c6ddfa25 100644 +--- a/lib/matplotlib/tests/test_backend_webagg.py ++++ b/lib/matplotlib/tests/test_backend_webagg.py +@@ -6,6 +6,7 @@ import pytest + + @pytest.mark.parametrize("backend", ["webagg", "nbagg"]) + def test_webagg_fallback(backend): ++ pytest.importorskip("tornado") + if backend == "nbagg": + pytest.importorskip("IPython") + env = dict(os.environ) +-- +2.21.0 + diff --git a/0001-Use-packaged-jquery-and-jquery-ui.patch b/0001-Use-packaged-jquery-and-jquery-ui.patch index be3b8e3..6f9c17f 100644 --- a/0001-Use-packaged-jquery-and-jquery-ui.patch +++ b/0001-Use-packaged-jquery-and-jquery-ui.patch @@ -1,14 +1,14 @@ -From a587261dcf6821dd03e1956cc1644a3a7aaa4031 Mon Sep 17 00:00:00 2001 +From c2af74bf18d46d03ec34bfda32afe1a99511ac9f Mon Sep 17 00:00:00 2001 From: Elliott Sales de Andrade Date: Sat, 2 Mar 2019 18:18:29 -0500 Subject: [PATCH] Use packaged jquery and jquery-ui. Signed-off-by: Elliott Sales de Andrade --- - .../backends/web_backend/all_figures.html | 6 +-- - .../backends/web_backend/single_figure.html | 6 +-- - setup.py | 46 ------------------- - 3 files changed, 6 insertions(+), 52 deletions(-) + .../backends/web_backend/all_figures.html | 6 +- + .../backends/web_backend/single_figure.html | 6 +- + setup.py | 56 ------------------- + 3 files changed, 6 insertions(+), 62 deletions(-) diff --git a/lib/matplotlib/backends/web_backend/all_figures.html b/lib/matplotlib/backends/web_backend/all_figures.html index 41f48dc6d..69097eb4f 100644 @@ -45,10 +45,10 @@ index 4d5a366fb..c11c86618 100644