Dear maintainer,

I've prepared an NMU for mdp (versioned as 3.6-10.1) for Athul RT
<[email protected]> and uploaded it to DELAYED/5. Please feel free to
tell me if I should cancel it.

Regards.
--abhijith
diffstat for mdp-3.6 mdp-3.6

 .gitignore                             |    1 
 changelog                              |   12 +++
 copyright                              |   27 +++-----
 patches/modify_setup_new_version.patch |  106 +++++++++++++++++++++++++++++++++
 patches/series                         |    1 
 5 files changed, 131 insertions(+), 16 deletions(-)

diff -Nru mdp-3.6/debian/changelog mdp-3.6/debian/changelog
--- mdp-3.6/debian/changelog	2025-02-18 00:02:52.000000000 +0530
+++ mdp-3.6/debian/changelog	2026-05-27 11:22:40.000000000 +0530
@@ -1,3 +1,15 @@
+mdp (3.6-10.1) unstable; urgency=medium
+
+  * Non-Maintainer upload
+  * Modified setup.py to support latest versions of python.
+  * Updated scikits_nodes.py for sklearn latest version (closes: #1119748)
+  * Updated mca_nodes_online.py to solve numpy compatibility (closes: #1131059)
+
+  [ Bastian Germann ]
+  * d/copyright: Convert to machine-readable format
+
+ -- Athul R T <[email protected]>  Wed, 27 May 2026 11:22:40 +0530
+
 mdp (3.6-10) unstable; urgency=medium
 
   * Team upload.
diff -Nru mdp-3.6/debian/copyright mdp-3.6/debian/copyright
--- mdp-3.6/debian/copyright	2025-02-18 00:02:52.000000000 +0530
+++ mdp-3.6/debian/copyright	2026-05-27 11:22:40.000000000 +0530
@@ -1,21 +1,18 @@
-This package was first debianized by Yaroslav Halchenko <[email protected]> on
-Sat, 19 Jan 2008 16:41:20 -0500.
-
-It was downloaded from https://github.com/mdp-toolkit/mdp-toolkit/
-
-Upstream Authors:
-
+Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
+Source:
+ https://github.com/mdp-toolkit/mdp-toolkit/
+Upstream-Contact:
     MDP Developers <[email protected]>
 
+Files: *
 Copyright:
-
  2003-2020, MDP Developers <[email protected]>
+License: BSD-3-clause
 
-License:
-
+License: BSD-3-clause
     Redistribution and use in source and binary forms, with or without
     modification, are permitted provided that the following conditions are met:
-
+ .
         * Redistributions of source code must retain the above copyright
           notice, this list of conditions and the following disclaimer.
         * Redistributions in binary form must reproduce the above copyright
@@ -25,7 +22,7 @@
           nor the names of its contributors may be used to endorse or promote
           products derived from this software without specific prior written
           permission.
-
+ .
     THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
     ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
     WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
@@ -37,6 +34,6 @@
     OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
     OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
 
-The Debian packaging is (C) 2008-2020, Yaroslav Halchenko
-<[email protected]> and Tiziano Zito, and is licensed under the same license as
-upstream sources.
+Files: debian/*
+Copyright: (C) 2008-2020, Yaroslav Halchenko <[email protected]> and Tiziano Zito
+License: BSD-3-clause
diff -Nru mdp-3.6/debian/.gitignore mdp-3.6/debian/.gitignore
--- mdp-3.6/debian/.gitignore	2025-02-18 00:02:52.000000000 +0530
+++ mdp-3.6/debian/.gitignore	1970-01-01 05:30:00.000000000 +0530
@@ -1 +0,0 @@
-/files
diff -Nru mdp-3.6/debian/patches/modify_setup_new_version.patch mdp-3.6/debian/patches/modify_setup_new_version.patch
--- mdp-3.6/debian/patches/modify_setup_new_version.patch	1970-01-01 05:30:00.000000000 +0530
+++ mdp-3.6/debian/patches/modify_setup_new_version.patch	2026-05-27 11:22:40.000000000 +0530
@@ -0,0 +1,106 @@
+--- a/setup.py
++++ b/setup.py
+@@ -1,7 +1,5 @@
+ from setuptools import setup
+-from setuptools.command.test import test as _test
+ import os
+-import sys
+ 
+ email = '[email protected]'
+ 
+@@ -32,12 +30,10 @@
+ 
+ def get_extract_variable(tree, variable):
+     for node in ast.walk(tree):
+-        if type(node) is ast.Assign:
+-            try:
+-                if node.targets[0].id == variable:
+-                    return node.value.s
+-            except:
+-                pass
++        if isinstance(node, ast.Assign):
++            for target in node.targets:
++                if isinstance(target, ast.Name) and target.id == variable:
++                    return ast.literal_eval(node.value)
+     throw_bug()
+ 
+ def get_mdp_ast_tree():
+@@ -55,19 +51,6 @@
+     tree = get_mdp_ast_tree()
+     return ast.get_docstring(tree)
+ 
+-class MDPTest(_test):
+-    def run_tests(self):
+-        import mdp
+-        import bimdp
+-        # Fix random seed here, as we want reproducible failures in
+-        # automatic builds using "python setup.py test"
+-        # If the tests are run manually with pytest or
+-        # using the mdp.test and bimdp.test functions, the seed
+-        # is not set
+-        errno = mdp.test(seed=725021957)
+-        errno += bimdp.test(seed=725021957)
+-        sys.exit(errno)
+-
+ def setup_package():
+ 
+     # check that we have a version
+@@ -96,7 +79,6 @@
+           package_data = {'mdp.hinet': ['hinet.css'],
+                           'mdp.utils': ['slideshow.css']},
+           install_requires = ['numpy'],
+-          tests_require = ['pytest'],
+           # define optional dependencies here, so that they can be installed
+           # for example using the "pip -e MDP[scipy] syntax"
+           extras_require = {'pp' : 'pp',
+@@ -105,7 +87,6 @@
+                             'scipy' : 'scipy',
+                             'libsvm' : 'libsvm',
+                             'pytest': 'pytest'},
+-          cmdclass = {'test': MDPTest}
+           )
+ 
+ 
+--- a/mdp/nodes/mca_nodes_online.py
++++ b/mdp/nodes/mca_nodes_online.py
+@@ -125,7 +125,7 @@
+                 v = (1.5 - n) * v - n * a
+             else:
+                 v = (1.5 - n * (d ** 2)) * v - n * a
+-            l = mult(v.T, v)
++            l = mult(v.T, v).item()
+             c += self.gamma * mult(v, v.T) / l
+ 
+             self.v[:, j:j + 1] = v
+--- a/mdp/nodes/scikits_nodes.py
++++ b/mdp/nodes/scikits_nodes.py
+@@ -17,6 +17,12 @@
+ 
+ import mdp
+ 
++_ESTIMATOR_REQUIRED_CLASSES = {
++    'FixedThresholdClassifier',
++    'TunedThresholdClassifierCV',
++    'SelfTrainingClassifier',
++}
++
+ class ScikitsException(mdp.NodeException):
+     """Base class for exceptions in nodes wrapping scikits algorithms."""
+     pass
+@@ -523,6 +529,9 @@
+     """NEED DOCSTRING."""
+ 
+     name = scikits_class.__name__
++
++    if name in _ESTIMATOR_REQUIRED_CLASSES:
++        return
+     if (name[:4] == 'Base' or name == 'LinearModel'
+         or name.startswith('EllipticEnvelop')
+         or name.startswith('ForestClassifier')):
+@@ -546,4 +555,4 @@
+ DICT_ = {}
+ for wrapped_c in scikits_nodes:
+     #print wrapped_c.__name__
+-    DICT_[wrapped_c.__name__] = wrapped_c
+\ No newline at end of file
++    DICT_[wrapped_c.__name__] = wrapped_c
diff -Nru mdp-3.6/debian/patches/series mdp-3.6/debian/patches/series
--- mdp-3.6/debian/patches/series	2025-02-18 00:02:52.000000000 +0530
+++ mdp-3.6/debian/patches/series	2026-05-27 11:22:40.000000000 +0530
@@ -5,3 +5,4 @@
 Migrate-to-inspect.signature.patch
 py313-extension.patch
 numpy-2.0.patch
+modify_setup_new_version.patch

Reply via email to