[med-svn] [Git][med-team/python-datacache][master] 3 commits: Upload to unstable

Nilesh Patra (@nilesh) gitlab at salsa.debian.org
Tue Mar 29 19:41:32 BST 2022



Nilesh Patra pushed to branch master at Debian Med / python-datacache


Commits:
61137013 by Nilesh Patra at 2022-03-29T23:43:07+05:30
Upload to unstable

- - - - -
85a46595 by Nilesh Patra at 2022-03-30T00:05:59+05:30
Switch from nose to pytest

- - - - -
4e5a8695 by Nilesh Patra at 2022-03-30T00:05:59+05:30
Upload to unstable

- - - - -


5 changed files:

- debian/changelog
- debian/control
- debian/patches/series
- + debian/patches/switch-to-pytest.patch
- debian/tests/control


Changes:

=====================================
debian/changelog
=====================================
@@ -1,8 +1,13 @@
-python-datacache (1.1.5-2) UNRELEASED; urgency=medium
+python-datacache (1.1.5-2) unstable; urgency=medium
 
-  * add autopkgtest
+  [ Mohammed Bilal ]
+  * Team Upload.
+  * Add autopkgtest
+  
+  [ Nilesh Patra ]
+  * Switch from nose to pytest
 
- -- Mohammed Bilal <mdbilal at disroot.org>  Mon, 28 Mar 2022 18:25:48 +0000
+ -- Mohammed Bilal <mdbilal at disroot.org>  Tue, 29 Mar 2022 23:42:53 +0530
 
 python-datacache (1.1.5-1) unstable; urgency=medium
 


=====================================
debian/control
=====================================
@@ -13,7 +13,6 @@ Build-Depends: debhelper-compat (= 13),
                python3-biopython <!nocheck>,
                python3-typechecks <!nocheck>,
                python3-mock <!nocheck>,
-               python3-nose <!nocheck>
 Standards-Version: 4.6.0
 Homepage: https://github.com/openvax/datacache
 Vcs-Browser: https://salsa.debian.org/med-team/python-datacache


=====================================
debian/patches/series
=====================================
@@ -1,2 +1,3 @@
 noInternetAccessForDownloads.patch
 python3.10.patch
+switch-to-pytest.patch


=====================================
debian/patches/switch-to-pytest.patch
=====================================
@@ -0,0 +1,101 @@
+Description: nose is being deprecated hence remove its usage
+Author: Nilesh Patra <nilesh at debian.org>
+Last-Update: 2022-03-29
+--- a/test/test_cache_object.py
++++ b/test/test_cache_object.py
+@@ -1,7 +1,6 @@
+ from os import remove
+ from os.path import exists
+ from mock import patch
+-from nose.tools import eq_
+ 
+ from datacache import Cache
+ 
+@@ -26,7 +25,7 @@
+         "Expected local file to be named %s but got %s" % (
+             TEST_FILENAME, path)
+     assert exists(path), "File not found: %s" % path
+-    eq_(path, cache.local_path(TEST_URL, filename=TEST_FILENAME))
++    assert(path == cache.local_path(TEST_URL, filename=TEST_FILENAME))
+ 
+ 
+ @patch('datacache.cache.download._download_and_decompress_if_necessary')
+--- a/test/test_database_types.py
++++ b/test/test_database_types.py
+@@ -1,4 +1,3 @@
+-from nose.tools import eq_
+ import numpy as np
+ from datacache.database_types import db_type
+ 
+@@ -7,9 +6,9 @@
+             int,
+             np.int8, np.int16, np.int32, np.int64,
+             np.uint8, np.uint16, np.uint32, np.uint64]:
+-        eq_(db_type(int_type), "INT")
++        assert(db_type(int_type) == "INT")
+ 
+     for float_type in [float, np.float32, np.float64]:
+-        eq_(db_type(float), "FLOAT")
++        assert(db_type(float) == "FLOAT")
+ 
+-    eq_(db_type(str), "TEXT")
++    assert(db_type(str) == "TEXT")
+--- a/test/test_db_from_dataframes.py
++++ b/test/test_db_from_dataframes.py
+@@ -1,4 +1,3 @@
+-from nose.tools import eq_
+ import pandas as pd
+ from tempfile import NamedTemporaryFile
+ from datacache import db_from_dataframes, db_from_dataframe
+@@ -16,10 +15,10 @@
+             subdir="test_datacache")
+         cursor_A = db.execute("SELECT * FROM A")
+         results_A = cursor_A.fetchall()
+-        eq_(results_A, [(1, "a"), (2, "b"), (3, "c")])
++        assert(results_A == [(1, "a"), (2, "b"), (3, "c")])
+         cursor_B = db.execute("SELECT * FROM B")
+         results_B = cursor_B.fetchall()
+-        eq_(results_B, [("nuzzle",), ("ruzzle",)])
++        assert(results_B == [("nuzzle",), ("ruzzle",)])
+ 
+ def test_database_from_single_dataframe():
+     with NamedTemporaryFile(suffix="test.db") as f:
+@@ -32,4 +31,4 @@
+             subdir="test_datacache")
+         cursor = db.execute("SELECT * FROM A")
+         results = cursor.fetchall()
+-        eq_(results, [(1, "a"), (2, "b"), (3, "c")])
++        assert(results == [(1, "a"), (2, "b"), (3, "c")])
+--- a/test/test_database_objects.py
++++ b/test/test_database_objects.py
+@@ -6,7 +6,6 @@
+ 
+ import datacache
+ 
+-from nose.tools import eq_
+ 
+ TABLE_NAME = "test"
+ INT_COL_NAME = "int_col"
+@@ -29,11 +28,11 @@
+ 
+ def test_database_table_object():
+     table = make_table_object()
+-    eq_(table.name, TABLE_NAME)
+-    eq_(table.indices, INDICES)
+-    eq_(table.nullable, NULLABLE)
+-    eq_(table.rows, ROWS)
+-    eq_(table.indices, INDICES)
++    assert(table.name == TABLE_NAME)
++    assert(table.indices == INDICES)
++    assert(table.nullable == NULLABLE)
++    assert(table.rows == ROWS)
++    assert(table.indices == INDICES)
+ 
+ def test_create_db():
+     with tempfile.NamedTemporaryFile(suffix="test.db") as f:
+@@ -49,4 +48,4 @@
+         cursor = db.connection.execute(sql)
+         int_result_tuple = cursor.fetchone()
+         int_result = int_result_tuple[0]
+-        eq_(int_result, 2)
++        assert(int_result == 2)


=====================================
debian/tests/control
=====================================
@@ -1,3 +1,3 @@
 Tests: run-unit-test
-Depends: @, python3-all, python3-pytest, python3-nose
+Depends: @, python3-all, python3-pytest
 Restrictions: allow-stderr



View it on GitLab: https://salsa.debian.org/med-team/python-datacache/-/compare/178e2ff3b50275fb09ae035adb1b23f2e5f42e4b...4e5a8695789c8261e461fb7e6d775652e5db6c92

-- 
View it on GitLab: https://salsa.debian.org/med-team/python-datacache/-/compare/178e2ff3b50275fb09ae035adb1b23f2e5f42e4b...4e5a8695789c8261e461fb7e6d775652e5db6c92
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/20220329/b701d608/attachment-0001.htm>


More information about the debian-med-commit mailing list