[med-svn] [Git][med-team/gfapy][master] 5 commits: Add patch to port tests from nose to pytest

Nilesh Patra (@nilesh) gitlab at salsa.debian.org
Sun Dec 4 15:32:00 GMT 2022



Nilesh Patra pushed to branch master at Debian Med / gfapy


Commits:
8c4c4d43 by Nilesh Patra at 2022-12-04T20:55:39+05:30
Add patch to port tests from nose to pytest

- - - - -
e36ae99b by Nilesh Patra at 2022-12-04T20:55:39+05:30
d/rules: Enable build time tests

- - - - -
2eb393af by Nilesh Patra at 2022-12-04T20:55:39+05:30
Bump Standards-Version to 4.6.1 (no changes needed)

- - - - -
5f80ccf8 by Nilesh Patra at 2022-12-04T20:57:31+05:30
B-D on pytest

- - - - -
b82385bf by Nilesh Patra at 2022-12-04T20:57:31+05:30
Upload to unstable

- - - - -


5 changed files:

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


Changes:

=====================================
debian/changelog
=====================================
@@ -1,3 +1,13 @@
+gfapy (1.2.3+dfsg-2) unstable; urgency=medium
+
+  * Team Upload.
+  * Add patch to port tests from nose to pytest
+    (Closes: #1018365)
+  * d/rules: Enable build time tests
+  * Bump Standards-Version to 4.6.1 (no changes needed)
+
+ -- Nilesh Patra <nilesh at debian.org>  Sun, 04 Dec 2022 20:49:15 +0530
+
 gfapy (1.2.3+dfsg-1) unstable; urgency=medium
 
   * New upstream release.


=====================================
debian/control
=====================================
@@ -8,9 +8,9 @@ Build-Depends: debhelper-compat (= 13),
                python3,
                python3-dev,
                python3-setuptools,
-               python3-nose,
+               python3-pytest,
                txt2man
-Standards-Version: 4.6.0
+Standards-Version: 4.6.1
 Rules-Requires-Root: no
 Vcs-Browser: https://salsa.debian.org/med-team/gfapy
 Vcs-Git: https://salsa.debian.org/med-team/gfapy.git


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


=====================================
debian/patches/switch-to-pytest.patch
=====================================
@@ -0,0 +1,40 @@
+Description: Add patch to port tests to pytest
+Author: Nilesh Patra <nilesh at debian.org>
+Last-Update: 2022-12-04
+--- a/.travis.yml
++++ b/.travis.yml
+@@ -8,6 +8,6 @@
+   - PYTHONHASHSEED=0
+ install:
+   - pip install .
+-  - pip install nose
++  - pip install pytest
+   - pip install Sphinx
+ script: "make tests"
+--- a/setup.py
++++ b/setup.py
+@@ -37,7 +37,7 @@
+                'bin/gfapy-renumber',
+                'bin/gfapy-validate'],
+       zip_safe=False,
+-      test_suite="nose.collector",
++      test_suite="pytest.collect",
+       include_package_data=True,
+-      tests_require=['nose'],
++      tests_require=['pytest'],
+     )
+--- a/tests/test_api_rgfa.py
++++ b/tests/test_api_rgfa.py
+@@ -25,8 +25,8 @@
+ 
+   def test_stable_sequence_names(self):
+     g = gfapy.Gfa.from_file("tests/testdata/rgfa_example.2.gfa", dialect="rgfa")
+-    self.assertEqual(['smpl-Ref.Bd4', 'smpl-Bd21_3_r.pseudomolecule_4'],
+-        g.stable_sequence_names)
++    self.assertEqual(['smpl-Bd21_3_r.pseudomolecule_4', 'smpl-Ref.Bd4'],
++        sorted(g.stable_sequence_names))
+     g = gfapy.Gfa.from_file("tests/testdata/rgfa_example.1.gfa", dialect="rgfa")
+-    self.assertEqual(['bar', 'foo', 'chr1'],
+-        g.stable_sequence_names)
++    self.assertEqual(['bar', 'chr1', 'foo'],
++        sorted(g.stable_sequence_names))


=====================================
debian/rules
=====================================
@@ -29,6 +29,3 @@ override_dh_auto_clean:
 
 override_dh_installman: $(MANPAGES)
 	dh_installman
-
-override_dh_auto_test:
-	# pass



View it on GitLab: https://salsa.debian.org/med-team/gfapy/-/compare/8017c0badd67fae021ddb4ec7d344bb133cc3068...b82385bfdea73ea9a7eea54435319841661d0760

-- 
View it on GitLab: https://salsa.debian.org/med-team/gfapy/-/compare/8017c0badd67fae021ddb4ec7d344bb133cc3068...b82385bfdea73ea9a7eea54435319841661d0760
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/20221204/920966ec/attachment-0001.htm>


More information about the debian-med-commit mailing list