summaryrefslogtreecommitdiff
diff options
authorAlexandre Detiste <tchet@debian.org>2024-08-04 20:24:33 +0200
committergit-ubuntu importer <ubuntu-devel-discuss@lists.ubuntu.com>2024-08-04 22:38:21 +0000
commit5bd99f037084ba08c2f9194ee339139756ac4278 (patch)
tree4f4e6dd7a7ddc68d780ff74d2aae00a59049a2d4
parent6b545547e3e61adad1e57e23c10149925af42f91 (diff)
parent6346ccfe410a868fce924436cb029a0aba2ae997 (diff)
Imported using git-ubuntu import.
-rw-r--r--debian/changelog8
-rw-r--r--debian/control5
-rw-r--r--debian/patches/remove-nose.patch31
-rw-r--r--debian/patches/series1
-rwxr-xr-xdebian/rules2
-rw-r--r--epc/tests/test_py2py.py4
-rw-r--r--epc/tests/utils.py2
7 files changed, 45 insertions, 8 deletions
diff --git a/debian/changelog b/debian/changelog
index 020fd8b..2197ed9 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,11 @@
+python-epc (0.0.5-5.1) unstable; urgency=medium
+
+ * Team Upload
+ * Replace nose by plain unittest with a patch (Closes: #1018485)
+ * Use dh-sequence-python3
+
+ -- Alexandre Detiste <tchet@debian.org> Sun, 04 Aug 2024 20:24:33 +0200
+
python-epc (0.0.5-5) unstable; urgency=medium
[ Colin Watson ]
diff --git a/debian/control b/debian/control
index 7076eac..24d8325 100644
--- a/debian/control
+++ b/debian/control
@@ -4,9 +4,8 @@ Priority: optional
Maintainer: Debian Python Team <team+python@tracker.debian.org>
Uploaders: Lev Lamberov <dogsleg@debian.org>
Build-Depends: debhelper-compat (= 13),
- dh-python,
+ dh-sequence-python3,
python3-all,
- python3-nose,
python3-setuptools,
python3-sexpdata
Standards-Version: 4.2.1
@@ -26,5 +25,3 @@ Description: RPC stack for Emacs Lisp (Python3 version)
and client side implementation in Python. Using Python-EPC, you can
easily call Emacs Lisp functions from Python and Python functions
from Emacs.
- .
- This package installs the library for Python 3.
diff --git a/debian/patches/remove-nose.patch b/debian/patches/remove-nose.patch
new file mode 100644
index 0000000..aca61af
--- /dev/null
+++ b/debian/patches/remove-nose.patch
@@ -0,0 +1,31 @@
+--- a/epc/tests/test_py2py.py
++++ b/epc/tests/test_py2py.py
+@@ -15,7 +15,7 @@
+
+
+ import os
+-import nose
++import unittest
+
+ from ..client import EPCClient
+ from ..server import ThreadingEPCServer
+@@ -192,7 +192,7 @@
+ assert_return(method, [i], f)
+ except Queue.Empty:
+ if i > self.fibonacci_min:
+- raise nose.SkipTest(
++ raise unittest.SkipTest(
+ "Test for {0} fails at {1} (> {2}), but it's OK."
+ .format(method, i, self.fibonacci_min))
+ else:
+--- a/epc/tests/utils.py
++++ b/epc/tests/utils.py
+@@ -95,7 +95,7 @@
+
+
+ def skip(reason):
+- from nose import SkipTest
++ from unittest import SkipTest
+
+ def decorator(func):
+ @functools.wraps(func)
diff --git a/debian/patches/series b/debian/patches/series
new file mode 100644
index 0000000..ac1cf9b
--- /dev/null
+++ b/debian/patches/series
@@ -0,0 +1 @@
+remove-nose.patch
diff --git a/debian/rules b/debian/rules
index 4f8319d..8d0feb1 100755
--- a/debian/rules
+++ b/debian/rules
@@ -3,4 +3,4 @@
export PYBUILD_NAME=epc
%:
- dh $@ --with python3 --buildsystem=pybuild
+ dh $@ --buildsystem=pybuild
diff --git a/epc/tests/test_py2py.py b/epc/tests/test_py2py.py
index 88d2ca7..cd00591 100644
--- a/epc/tests/test_py2py.py
+++ b/epc/tests/test_py2py.py
@@ -15,7 +15,7 @@
import os
-import nose
+import unittest
from ..client import EPCClient
from ..server import ThreadingEPCServer
@@ -192,7 +192,7 @@ class TestEPCPy2Py(ThreadingPy2Py, BaseTestCase):
assert_return(method, [i], f)
except Queue.Empty:
if i > self.fibonacci_min:
- raise nose.SkipTest(
+ raise unittest.SkipTest(
"Test for {0} fails at {1} (> {2}), but it's OK."
.format(method, i, self.fibonacci_min))
else:
diff --git a/epc/tests/utils.py b/epc/tests/utils.py
index c6815c6..7047913 100644
--- a/epc/tests/utils.py
+++ b/epc/tests/utils.py
@@ -95,7 +95,7 @@ class BaseTestCase(unittest.TestCase):
def skip(reason):
- from nose import SkipTest
+ from unittest import SkipTest
def decorator(func):
@functools.wraps(func)