[Python-modules-commits] [sphinx-gallery] 05/06: dont use cache when calling sns.load_dataset

Sandro Tosi morph at moszumanska.debian.org
Mon Nov 27 00:08:52 UTC 2017


This is an automated email from the git hooks/post-receive script.

morph pushed a commit to branch master
in repository sphinx-gallery.

commit 32c3c87cf3383806847552e17e9992438b9c665c
Author: Sandro Tosi <morph at debian.org>
Date:   Sun Nov 26 18:51:06 2017 -0500

    dont use cache when calling sns.load_dataset
---
 debian/patches/seaborn_test_no_cache.patch | 20 ++++++++++++++++++++
 debian/patches/series                      |  1 +
 2 files changed, 21 insertions(+)

diff --git a/debian/patches/seaborn_test_no_cache.patch b/debian/patches/seaborn_test_no_cache.patch
new file mode 100644
index 0000000..2cb1411
--- /dev/null
+++ b/debian/patches/seaborn_test_no_cache.patch
@@ -0,0 +1,20 @@
+Description: set cache to False when loading datasets via seaborn
+ It prevents a FTBFS if the directory where the package is being built doesnt
+ allow writing
+Author: Sandro Tosi <morph at debian.org>
+Origin: vendor
+Forwarded: not-needed
+Last-Update: 2017-11-26
+---
+This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
+--- a/tutorials/seaborn/plot_seaborn_notebook.py
++++ b/tutorials/seaborn/plot_seaborn_notebook.py
+@@ -28,7 +28,7 @@ sns.jointplot(x, y, kind="hex", stat_fun
+ sns.set(style="whitegrid", palette="pastel", color_codes=True)
+ 
+ # Load the example tips dataset
+-tips = sns.load_dataset("tips")
++tips = sns.load_dataset("tips", cache=False)
+ 
+ # Draw a nested violinplot and split the violins for easier comparison
+ sns.violinplot(x="day", y="total_bill", hue="sex", data=tips, split=True,
diff --git a/debian/patches/series b/debian/patches/series
new file mode 100644
index 0000000..3e3a648
--- /dev/null
+++ b/debian/patches/series
@@ -0,0 +1 @@
+seaborn_test_no_cache.patch

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/python-modules/packages/sphinx-gallery.git



More information about the Python-modules-commits mailing list