[med-svn] [Git][med-team/python-cutadapt][master] 2 commits: Change build dependencies, run built-time tests

Liubov Chuprikova gitlab at salsa.debian.org
Sat Jun 29 00:46:09 BST 2019



Liubov Chuprikova pushed to branch master at Debian Med / python-cutadapt


Commits:
d8085d0c by Liubov Chuprikova at 2019-06-28T23:06:45Z
Change build dependencies, run built-time tests

- - - - -
ae4c1a46 by Liubov Chuprikova at 2019-06-28T23:37:55Z
Do not test cutadapt executable

- - - - -


4 changed files:

- debian/control
- + debian/patches/series
- + debian/patches/skip_cutadapt_executable_test.patch
- debian/rules


Changes:

=====================================
debian/control
=====================================
@@ -8,12 +8,13 @@ Testsuite: autopkgtest-pkg-python
 Priority: optional
 Build-Depends: debhelper (>= 11~),
                dh-python,
-               python3-all,
-               python3-all-dev,
+               python3,
+               python3-dev,
                python3-setuptools,
-               python3-six,
-               python3-nose,
-               python3-xopen (>= 0.3.2),
+               python3-setuptools-scm,
+               python3-pytest-timeout,
+               python3-xopen (>= 0.5.0),
+               python3-dnaio (>= 0.3),
                cython3
 Standards-Version: 4.2.1
 Vcs-Browser: https://salsa.debian.org/med-team/python-cutadapt


=====================================
debian/patches/series
=====================================
@@ -0,0 +1 @@
+skip_cutadapt_executable_test.patch


=====================================
debian/patches/skip_cutadapt_executable_test.patch
=====================================
@@ -0,0 +1,16 @@
+Author: Liubov Chuprikova <chuprikovalv at gmail.com>
+Last-Update: Sat, 29 Jun 2019 01:12:11 +0200
+Description: Since built-time tests are running before installation,
+ executables are not available yet.
+
+
+--- a/tests/test_commandline.py
++++ b/tests/test_commandline.py
+@@ -541,6 +541,7 @@
+     run('--length -5', 'shortened-negative.fastq', 'small.fastq')
+ 
+ 
++ at pytest.mark.skip(reason='We cannot test this during built-time tests')
+ def test_run_cutadapt_process():
+     subprocess.check_call(['cutadapt', '--version'])
+ 


=====================================
debian/rules
=====================================
@@ -17,9 +17,6 @@ export DEB_BUILD_MAINT_OPTIONS = hardening=+all
 
 export PYBUILD_NAME=cutadapt
 
-PYTHON3 := $(shell py3versions -r)
-
-# main packaging script based on dh7 syntax
 %:
 	dh $@ --with python3 --buildsystem=pybuild
 
@@ -29,8 +26,5 @@ override_dh_install:
 	mv debian/python3-cutadapt/usr/bin/cutadapt debian/cutadapt/usr/bin/
 
 override_dh_auto_test:
-ifeq ($(filter nocheck,$(DEB_BUILD_OPTIONS)),)
-	for py in $(PYTHON3) ; do\
-	    $$py setup.py nosetests -v ; \
-	done
-endif
+	dh_auto_test -- -s custom --test-args="cd {build_dir}; \
+		py.test-3 --pyargs cutadapt tests"



View it on GitLab: https://salsa.debian.org/med-team/python-cutadapt/compare/2ea344fd429d446840abfe37f153ff16f2ff7d68...ae4c1a4665d07d885619db1bb70b652867a890ea

-- 
View it on GitLab: https://salsa.debian.org/med-team/python-cutadapt/compare/2ea344fd429d446840abfe37f153ff16f2ff7d68...ae4c1a4665d07d885619db1bb70b652867a890ea
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/20190628/5a848fbb/attachment-0001.html>


More information about the debian-med-commit mailing list