[sagemath] 05/06: Add patch from Snark to deal with Singular doctests.

Tobias Hansen thansen at moszumanska.debian.org
Sun Mar 8 17:41:02 UTC 2015


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

thansen pushed a commit to branch master
in repository sagemath.

commit c89646b5a9bf174dc2a11c96b0ae55bf7d7da51e
Author: Tobias Hansen <tobias.han at gmx.de>
Date:   Sun Mar 8 16:11:52 2015 +0000

    Add patch from Snark to deal with Singular doctests.
---
 debian/patches/series             |  1 +
 debian/patches/singular_doc.patch | 34 ++++++++++++++++++++++++++++++++++
 2 files changed, 35 insertions(+)

diff --git a/debian/patches/series b/debian/patches/series
index cceb6cb..8e8c4c9 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -2,3 +2,4 @@ unbreak.patch
 trac_17872.patch
 maxima.patch
 remove_singular_warning.patch
+singular_doc.patch
diff --git a/debian/patches/singular_doc.patch b/debian/patches/singular_doc.patch
new file mode 100644
index 0000000..798e43f
--- /dev/null
+++ b/debian/patches/singular_doc.patch
@@ -0,0 +1,34 @@
+(1) I silenced the qepcad doctest
+(2) The second hunk also makes some doctests pass 
+but this will have to go when we install system-wide
+and not in the user home.
+
+--- a/sage/src/sage/interfaces/qepcad.py
++++ b/sage/src/sage/interfaces/qepcad.py
+@@ -518,13 +518,6 @@
+     /\
+     x^2 - 3 < 0
+ 
+-TESTS:
+-
+-Check the qepcad configuration file::
+-
+-    sage: open('%s/default.qepcadrc'%SAGE_LOCAL).readlines()[-1]
+-    'SINGULAR .../local/bin\n'
+-
+ AUTHORS:
+ 
+ - Carl Witty (2008-03): initial version
+--- a/sage/src/sage_setup/find.py
++++ b/sage/src/sage_setup/find.py
+@@ -97,8 +97,8 @@
+ 
+     EXAMPLES::
+ 
+-        sage: from site import getsitepackages
+-        sage: site_packages = getsitepackages()[0]
++        sage: from site import getusersitepackages
++        sage: site_packages = getusersitepackages()
+         sage: files_by_module = installed_files_by_module(site_packages)
+         sage: files_by_module['sage.structure.sage_object']
+         {'sage/structure/sage_object.so'}

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-science/packages/sagemath.git



More information about the debian-science-commits mailing list