[Python-modules-commits] r30532 - in packages/oct2py/trunk/debian (4 files)

noahfx-guest at users.alioth.debian.org noahfx-guest at users.alioth.debian.org
Mon Sep 8 00:39:37 UTC 2014


    Date: Monday, September 8, 2014 @ 00:39:36
  Author: noahfx-guest
Revision: 30532

d/patches: Added patches to make a cleaner build

Added:
  packages/oct2py/trunk/debian/patches/
  packages/oct2py/trunk/debian/patches/01-removes-plot-function.patch
  packages/oct2py/trunk/debian/patches/02-removes-install_requires.patch
  packages/oct2py/trunk/debian/patches/series

Added: packages/oct2py/trunk/debian/patches/01-removes-plot-function.patch
===================================================================
--- packages/oct2py/trunk/debian/patches/01-removes-plot-function.patch	                        (rev 0)
+++ packages/oct2py/trunk/debian/patches/01-removes-plot-function.patch	2014-09-08 00:39:36 UTC (rev 30532)
@@ -0,0 +1,44 @@
+Description: Since some tests require the use of X server this might cause a failure at
+ the package building time if the enviroment lacks of X server. 
+Author: Josue Ortega <josueortega at debian.org.gt>
+Last-Update: 2014-09-07
+
+--- a/oct2py/tests/test_misc.py
++++ b/oct2py/tests/test_misc.py
+@@ -116,10 +116,10 @@
+         except TypeError:
+             speed_check.speed_check()
+ 
+-    def test_plot(self):
+-        n = self.oc.figure()
+-        self.oc.plot([1, 2, 3])
+-        self.oc.close(n)
++#   def test_plot(self):
++#       n = self.oc.figure()
++#       self.oc.plot([1, 2, 3])
++#       self.oc.close(n)
+ 
+     def test_narg_out(self):
+         s = self.oc.svd(np.array([[1, 2], [1, 3]]))
+
+--- a/oct2py/ipython/tests/test_octavemagic.py
++++ b/oct2py/ipython/tests/test_octavemagic.py
+@@ -50,12 +50,12 @@
+                           'z = x + y;')
+         npt.assert_array_equal(ip.user_ns['z'], [[4, 5]])
+ 
+-    def test_octave_plot(self):
+-        magic = self.ip.find_cell_magic('octave').__self__
+-        magic._publish_display_data = self.verify_publish_data
+-        self.ip.run_cell_magic('octave', '-f svg -s 400,500',
+-            'plot([1, 2, 3]); figure; plot([4, 5, 6]);')
+-        npt.assert_equal(self.svgs_generated, 2)
++#   def test_octave_plot(self):
++#       magic = self.ip.find_cell_magic('octave').__self__
++#       magic._publish_display_data = self.verify_publish_data
++#       self.ip.run_cell_magic('octave', '-f svg -s 400,500',
++#           'plot([1, 2, 3]); figure; plot([4, 5, 6]);')
++#       npt.assert_equal(self.svgs_generated, 2)
+ 
+     def verify_publish_data(self, source, data):
+         if 'image/svg+xml' in data:

Added: packages/oct2py/trunk/debian/patches/02-removes-install_requires.patch
===================================================================
--- packages/oct2py/trunk/debian/patches/02-removes-install_requires.patch	                        (rev 0)
+++ packages/oct2py/trunk/debian/patches/02-removes-install_requires.patch	2014-09-08 00:39:36 UTC (rev 30532)
@@ -0,0 +1,14 @@
+Description: Removes install_requires in order to avoid the authomatic instalation
+ from third party package managers like pypi.
+Author: Josue Ortega <josueortega at debian.org.gt>
+Last-Update: 2014-09-07
+
+--- a/setup.py
++++ b/setup.py
+@@ -52,5 +52,5 @@
+     description=DESCRIPTION,
+     long_description=LONG_DESCRIPTION,
+     classifiers=filter(None, CLASSIFIERS.split('\n')),
+-    install_requires=REQUIRES
++#    install_requires=REQUIRES
+  )

Added: packages/oct2py/trunk/debian/patches/series
===================================================================
--- packages/oct2py/trunk/debian/patches/series	                        (rev 0)
+++ packages/oct2py/trunk/debian/patches/series	2014-09-08 00:39:36 UTC (rev 30532)
@@ -0,0 +1,2 @@
+01-removes-plot-function.patch
+02-removes-install_requires.patch




More information about the Python-modules-commits mailing list