[Debian-med-packaging] Bug#1060092: python-datacache: remove usage of old python3-mock

Alexandre Detiste alexandre.detiste at gmail.com
Fri Jan 5 20:11:16 GMT 2024


Source: python-datacache
Severity: normal

Dear Maintainers,

Please apply this patch to remove usage of old python3-mock.

Instead we can use the new 'mock' from the standard library.

Greetings,


-- System Information:
Debian Release: trixie/sid
  APT prefers testing
  APT policy: (501, 'testing'), (450, 'unstable'), (400, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 6.5.0-5-amd64 (SMP w/2 CPU threads; PREEMPT)
Kernel taint flags: TAINT_USER
Locale: LANG=fr_BE.UTF-8, LC_CTYPE=fr_BE.UTF-8 (charmap=UTF-8), LANGUAGE=fr_BE:fr
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
-------------- next part --------------
diff --git a/datacache.egg-info/requires.txt b/datacache.egg-info/requires.txt
index 729452b..64389c1 100644
--- a/datacache.egg-info/requires.txt
+++ b/datacache.egg-info/requires.txt
@@ -3,4 +3,3 @@ appdirs>=1.4.0
 progressbar33>=2.4
 requests>=2.5.1
 typechecks>=0.0.2
-mock
diff --git a/debian/control b/debian/control
index 586d058..eaa2421 100644
--- a/debian/control
+++ b/debian/control
@@ -12,7 +12,6 @@ Build-Depends: debhelper-compat (= 13),
                python3-appdirs,
                python3-biopython <!nocheck>,
                python3-typechecks <!nocheck>,
-               python3-mock <!nocheck>,
 Standards-Version: 4.6.2
 Homepage: https://github.com/openvax/datacache
 Vcs-Browser: https://salsa.debian.org/med-team/python-datacache
diff --git a/setup.py b/setup.py
index da61f78..82d172f 100644
--- a/setup.py
+++ b/setup.py
@@ -58,7 +58,6 @@ if __name__ == "__main__":
             "progressbar33>=2.4",
             "requests>=2.5.1",
             "typechecks>=0.0.2",
-            "mock",
         ],
         long_description=readme_markdown,
         long_description_content_type='text/markdown',
diff --git a/test/test_cache_object.py b/test/test_cache_object.py
index fd6e4cb..544a270 100644
--- a/test/test_cache_object.py
+++ b/test/test_cache_object.py
@@ -1,6 +1,6 @@
 from os import remove
 from os.path import exists
-from mock import patch
+from unittest.mock import patch
 
 from datacache import Cache
 


More information about the Debian-med-packaging mailing list