[med-svn] [Git][med-team/python-datacache][master] 2 commits: DEP3, complete exclusion of tests. finalise changelog

Andreas Tille (@tille) gitlab at salsa.debian.org
Fri Feb 18 21:29:46 GMT 2022



Andreas Tille pushed to branch master at Debian Med / python-datacache


Commits:
fdb7beb3 by Andreas Tille at 2022-02-18T22:27:47+01:00
DEP3, complete exclusion of tests. finalise changelog

- - - - -
d029dcfc by Andreas Tille at 2022-02-18T22:29:15+01:00
Upload to unstable

- - - - -


2 changed files:

- debian/changelog
- debian/patches/noInternetAccessForDownloads.patch


Changes:

=====================================
debian/changelog
=====================================
@@ -1,10 +1,11 @@
-python-datacache (1.1.5-1) UNRELEASED; urgency=medium
+python-datacache (1.1.5-1) unstable; urgency=medium
 
   * Team upload.
   * New upstream version
   * Standards-Version: 4.6.0 (routine-update)
+  * Fix Python3.10 issue
 
- -- Andreas Tille <tille at debian.org>  Fri, 18 Feb 2022 18:46:02 +0100
+ -- Andreas Tille <tille at debian.org>  Fri, 18 Feb 2022 22:28:17 +0100
 
 python-datacache (0.4.7-2) unstable; urgency=medium
 


=====================================
debian/patches/noInternetAccessForDownloads.patch
=====================================
@@ -1,5 +1,19 @@
+Author: Steffen Möller <moeller at debian.org>
+        Andreas Tille <tille at debian.org>
+Last-Update: Fri, 18 Feb 2022 18:46:02 +0100
+Description: Exclude tests accessing network
+
 --- a/test/test_download.py
 +++ b/test/test_download.py
+@@ -19,7 +19,7 @@ URL = \
+     'ftp://ftp.ensembl.org/pub/release-75/fasta/homo_sapiens/dna/Homo_sapiens.GRCh37.75.dna_rm.chromosome.MT.fa.gz'
+ 
+ 
+-def test_fetch_decompress():
++def notest_fetch_decompress():
+     for use_wget_if_available in [True, False]:
+         for timeout in [None, 10**6]:
+             path1 = fetch_file(
 @@ -33,7 +33,7 @@ def test_fetch_decompress():
              s1 = f1.read()
              assert "TCAATTTCGTGCCAG" in s1
@@ -38,6 +52,15 @@
      cache = Cache(CACHE_DIR)
      path = cache.fetch(TEST_URL, filename=TEST_FILENAME)
      assert path.endswith(TEST_FILENAME), \
+@@ -37,7 +37,7 @@ def test_cache_fetch_force(mock_download
+     assert len(mock_download.call_args_list) == 2, \
+         "Expected two separate calls to _download, given force=True"
+ 
+-def test_cache_delete_url():
++def notest_cache_delete_url():
+     cache = Cache(CACHE_DIR)
+     path = cache.fetch(TEST_URL, filename=TEST_FILENAME)
+     assert exists(path), "Expected %s to exist after download" % path
 @@ -45,7 +45,7 @@ def test_cache_delete_url():
      assert not exists(path), \
          "Expected %s to be deleted after call to delete_url" % path



View it on GitLab: https://salsa.debian.org/med-team/python-datacache/-/compare/321e703eced1665a8214ebf427db98dbe3971a8c...d029dcfc9c2ca3e69bb8b9a2917fb419808730d0

-- 
View it on GitLab: https://salsa.debian.org/med-team/python-datacache/-/compare/321e703eced1665a8214ebf427db98dbe3971a8c...d029dcfc9c2ca3e69bb8b9a2917fb419808730d0
You're receiving this email because of your account on salsa.debian.org.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/debian-med-commit/attachments/20220218/6abaa4d1/attachment-0001.htm>


More information about the debian-med-commit mailing list