[Python-modules-commits] [deap] 01/08: removed old patch regime

Daniel Stender danstender-guest at moszumanska.debian.org
Fri Oct 16 17:46:59 UTC 2015


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

danstender-guest pushed a commit to branch master
in repository deap.

commit 517d6ff6cc373006335f7fff07c69aa13cf9b81e
Author: Daniel Stender <debian at danielstender.com>
Date:   Fri Oct 16 19:10:39 2015 +0200

    removed old patch regime
---
 debian/patches/fix-docs.patch  | 85 ------------------------------------------
 debian/patches/fix-tests.patch | 52 --------------------------
 debian/patches/series          |  2 -
 3 files changed, 139 deletions(-)

diff --git a/debian/patches/fix-docs.patch b/debian/patches/fix-docs.patch
deleted file mode 100644
index f267fa1..0000000
--- a/debian/patches/fix-docs.patch
+++ /dev/null
@@ -1,85 +0,0 @@
-Description: fix docs: privacy breaches and minor flaws, extlinks extension,
- don't produce PDFs
-Author: Daniel Stender <debian at danielstender.com>
-Forwarded: no
-Last-Update: 2015-03-05
---- a/doc/conf.py
-+++ b/doc/conf.py
-@@ -37,6 +37,8 @@
-       extensions += ['matplotlib.sphinxext.only_directives',
-                      'matplotlib.sphinxext.plot_directive']
- 
-+plot_formats = [('png', 80), ('hires.png', 200)]
-+
- # Add any paths that contain templates here, relative to this directory.
- templates_path = ['_templates']
- 
-@@ -127,11 +129,9 @@
- 
- # -- Options for extlinks extension ----------------------------------------------
- 
--import subprocess
--branch = str(subprocess.check_output(["hg", "branch"])[:-1])
--extlinks = {'example': ('https://code.google.com/p/deap/source/browse/examples/%s.py?name='+branch,
--                      'examples/')}
--
-+#import subprocess
-+#branch = str(subprocess.check_output(["hg", "branch"])[:-1])
-+extlinks = {'example': ('https://github.com/DEAP/deap/blob/master/examples/%s.py','examples/')}
- 
- # -- Options for HTML output ---------------------------------------------------
- 
---- a/doc/_templates/layout.html
-+++ b/doc/_templates/layout.html
-@@ -11,7 +11,7 @@
- {% endblock %}
- 
- {% block rootrellink %}
--    <li><a href="http://code.google.com/p/deap/"><img src="{{ pathto('_static/deap_icon-39x55.png', 1) }}" style="height: 30px; vertical-align: middle; padding-right: 1em;" />Project Homepage</a>{{ reldelim1 }}</li>
-+    <li><a href="http://code.google.com/p/deap/"><img src="{{ pathto('_static/deap_icon_16x16.ico', 1) }}" style="height: 30px; vertical-align: middle; padding-right: 1em;" />Project Homepage</a>{{ reldelim1 }}</li>
- 	<li><a href="{{ pathto('index') }}">{{ shorttitle }}</a>{{ reldelim1 }} </li>
- {% endblock %}
- 
-@@ -25,13 +25,5 @@
-     <br />
-     Created using <a href="http://sphinx.pocoo.org/">Sphinx</a> {{ sphinx_version|e }}.
- </div>
--<script type="text/javascript">
--  (function() {
--     var ga = document.createElement('script');
--         ga.src = ('https:' == document.location.protocol ?
--                'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
--    ga.setAttribute('async', 'true');
--    document.documentElement.firstChild.appendChild(ga);
--  })();
--</script>
-+
- {% endblock %}
---- a/doc/examples/pso_basic.rst
-+++ b/doc/examples/pso_basic.rst
-@@ -97,25 +97,6 @@
- 
- The full PSO basic example can be found here : :example:`pso/basic`.
- 
--This is a video of the algorithm in action, plotted with matplotlib_. 
--The red dot represents the best solution found so far.
--
--.. _matplotlib: http://matplotlib.org/
--
--.. raw:: html
--
--	<center>
--	<object style="height: 390px; width: 640px">
--	<param name="movie" value="http://www.youtube.com/v/f3MW2krobpo?version=3&feature=player_detailpage">
--	<param name="allowFullScreen" value="true">
--	<param name="allowScriptAccess" value="always">
--	<embed src="http://www.youtube.com/v/f3MW2krobpo?version=3&feature=player_detailpage" 
--		   type="application/x-shockwave-flash" allowfullscreen="true" 
--		   allowScriptAccess="always" 
--		   width="640" height="360">
--	</object>
--	</center>
--
- References
- ==========
- 
diff --git a/debian/patches/fix-tests.patch b/debian/patches/fix-tests.patch
deleted file mode 100644
index 793ea0d..0000000
--- a/debian/patches/fix-tests.patch
+++ /dev/null
@@ -1,52 +0,0 @@
-Description: make tests run
- fix tests to run tree independently, removed unused import (cherry
- picked from repo), disabled defective stuff, see
- http://groups.google.com/forum/#!topic/deap-users/nOyiGlm38Zw
-Author: Daniel Stender <debian at danielstener.com>
-Forwarded: not-needed
-Last-Update: 2014-10-09
---- a/deap/tests/test_pickle.py
-+++ b/deap/tests/test_pickle.py
-@@ -4,16 +4,15 @@
- import array
- import pickle
- import operator
--from test import test_support
- 
- sys.path.append("..")
- 
- import numpy
- 
--import creator
--import base
--import gp
--import tools
-+from deap import creator
-+from deap import base
-+from deap import gp
-+from deap import tools
- 
- def func():
-     return "True"
-@@ -57,8 +56,8 @@
-         ind.fitness.values = (1.0,)
-         ind_s = pickle.dumps(ind)
-         ind_l = pickle.loads(ind_s)
--        msg =  "Unpickled individual %s != pickled individual %s" % (str(ind), str(ind_l))
--        self.failUnlessEqual(ind, ind_l, msg)
-+        # msg =  "Unpickled individual %s != pickled individual %s" % (str(ind), str(ind_l))
-+        self.failUnlessEqual(ind, ind_l)
-         msg =  "Unpickled fitness %s != pickled fitness %s" % (str(ind.fitness), str(ind_l.fitness))
-         self.failUnlessEqual(ind.fitness, ind_l.fitness, msg)
-     
---- a/deap/tests/test_logbook.py
-+++ b/deap/tests/test_logbook.py
-@@ -3,7 +3,7 @@
- 
- sys.path.append("..")
- 
--import tools
-+from deap import tools
- 
- class LogbookTest(unittest.TestCase):
- 
diff --git a/debian/patches/series b/debian/patches/series
deleted file mode 100644
index b3fb39c..0000000
--- a/debian/patches/series
+++ /dev/null
@@ -1,2 +0,0 @@
-fix-tests.patch
-fix-docs.patch

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



More information about the Python-modules-commits mailing list