[med-svn] [Git][med-team/circlator][master] 2 commits: Switch from nose -> pytest

Nilesh Patra (@nilesh) gitlab at salsa.debian.org
Sun Oct 24 23:21:34 BST 2021



Nilesh Patra pushed to branch master at Debian Med / circlator


Commits:
77064f53 by Nilesh Patra at 2021-10-25T03:44:39+05:30
Switch from nose -> pytest

- - - - -
d30b5789 by Nilesh Patra at 2021-10-25T03:44:39+05:30
Upload to unstable

- - - - -


7 changed files:

- debian/changelog
- debian/control
- debian/patches/series
- + debian/patches/switch-to-pytest.patch
- debian/rules
- debian/tests/control
- debian/tests/run-unit-test


Changes:

=====================================
debian/changelog
=====================================
@@ -1,3 +1,10 @@
+circlator (1.5.6-6) unstable; urgency=medium
+
+  * Team Upload.
+  * Switch from nose -> pytest
+
+ -- Nilesh Patra <nilesh at debian.org>  Mon, 25 Oct 2021 03:38:40 +0530
+
 circlator (1.5.6-5) unstable; urgency=medium
 
   [ Vagrant Cascadian ]


=====================================
debian/control
=====================================
@@ -13,7 +13,7 @@ Build-Depends: debhelper-compat (= 13),
                python3-pysam,
                python3-pymummer,
 # Test-Depends:
-               python3-nose,
+               python3-pytest,
                spades,
                bwa (>= 0.7.12),
                prodigal,


=====================================
debian/patches/series
=====================================
@@ -1 +1,2 @@
 fix_canu_detection.patch
+switch-to-pytest.patch


=====================================
debian/patches/switch-to-pytest.patch
=====================================
@@ -0,0 +1,15 @@
+Description: Switch from nose->pytest since the former is deprecated
+Author: Nilesh Patra <nilesh at debian.org>
+Last-Updated: 2021-10-25
+--- a/setup.py
++++ b/setup.py
+@@ -15,8 +15,7 @@
+     author_email='path-help at sanger.ac.uk',
+     url='https://github.com/sanger-pathogens/circlator',
+     scripts=glob.glob('scripts/*'),
+-    test_suite='nose.collector',
+-    tests_require=['nose >= 1.3'],
++    tests_require=['pytest'],
+     install_requires=[
+         'openpyxl',
+         'pyfastaq >= 3.12.1',


=====================================
debian/rules
=====================================
@@ -10,7 +10,7 @@ export LC_ALL=C.UTF-8
 
 override_dh_auto_test:
 ifeq (,$(filter nocheck,$(DEB_BUILD_OPTIONS)))
-	PYTHONPATH=$(CURDIR) nosetests3 -v --where=circlator/tests
+	PYTHONPATH=$(CURDIR) pytest-3 -v circlator/tests
 endif
 
 override_dh_installexamples:


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


=====================================
debian/tests/run-unit-test
=====================================
@@ -17,4 +17,4 @@ cd "${AUTOPKGTEST_TMP}"
 tar xaf data.tar.xz
 sed -i "s/data_dir = os.path.join(modules_dir, 'tests', 'data')/data_dir = os.path.join(os.getcwd(), 'data')/" *.py
 
-nosetests3 -v .
+python3 -m pytest -v



View it on GitLab: https://salsa.debian.org/med-team/circlator/-/compare/f5f1fb2324f59ad5d0416ad420533a02bada4b5f...d30b5789eb7d909f313b7e18e24d8589b9197de6

-- 
View it on GitLab: https://salsa.debian.org/med-team/circlator/-/compare/f5f1fb2324f59ad5d0416ad420533a02bada4b5f...d30b5789eb7d909f313b7e18e24d8589b9197de6
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/20211024/98f79e34/attachment-0001.htm>


More information about the debian-med-commit mailing list