[Python-modules-commits] [python-brainstorm] 09/10: set up DEP-8 tests

Daniel Stender danstender-guest at moszumanska.debian.org
Tue May 24 18:54:38 UTC 2016


This is an automated email from the git hooks/post-receive script.

danstender-guest pushed a commit to branch master
in repository python-brainstorm.

commit 85c05108d1555db67a960b632b1810609d23e211
Author: Daniel Stender <stender at debian.org>
Date:   Tue May 24 20:38:50 2016 +0200

    set up DEP-8 tests
---
 debian/TODO                     | 2 --
 debian/changelog                | 3 ++-
 debian/tests/control            | 2 ++
 debian/tests/python3-brainstorm | 4 ++++
 4 files changed, 8 insertions(+), 3 deletions(-)

diff --git a/debian/TODO b/debian/TODO
index 772fd8e..f0410ea 100644
--- a/debian/TODO
+++ b/debian/TODO
@@ -2,6 +2,4 @@
 
 - examples have py2 shebangs
 
-- install DEP-8 tests
-
 Daniel Stender <stender at debian.org>
\ No newline at end of file
diff --git a/debian/changelog b/debian/changelog
index 8e94db9..eaa355c 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -10,8 +10,9 @@ python-brainstorm (0.5-2) UNRELEASED; urgency=medium
     + dropped failsafe for dh_auto_test.
     + sorted overrides into build log order.
     + added override for dh_gencontrol to run dh_numpy3.
+  * Set up DEP-8 tests.
 
- -- Daniel Stender <stender at debian.org>  Tue, 24 May 2016 19:12:57 +0200
+ -- Daniel Stender <stender at debian.org>  Tue, 24 May 2016 20:41:58 +0200
 
 python-brainstorm (0.5-1) experimental; urgency=medium
 
diff --git a/debian/tests/control b/debian/tests/control
new file mode 100644
index 0000000..1f1a02d
--- /dev/null
+++ b/debian/tests/control
@@ -0,0 +1,2 @@
+Tests: python3-brainstorm
+Depends: @, python3-pytest, python3-mock
\ No newline at end of file
diff --git a/debian/tests/python3-brainstorm b/debian/tests/python3-brainstorm
new file mode 100755
index 0000000..842db87
--- /dev/null
+++ b/debian/tests/python3-brainstorm
@@ -0,0 +1,4 @@
+#!/bin/sh
+set -e -u
+cp /usr/lib/python3/dist-packages/brainstorm/handlers/_cpuop.*.so  brainstorm/handlers
+for py in $(py3versions -i); do echo "[*] testing $py:"; PYTHONPATH=. $py -Wd -m pytest -v -x -rs brainstorm/tests/test_* 2>&1; done

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/python-modules/packages/python-brainstorm.git



More information about the Python-modules-commits mailing list