[numba] 08/09: set up full DEP-8 testing

Daniel Stender stender at moszumanska.debian.org
Sun Jul 23 14:51:26 UTC 2017


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

stender pushed a commit to branch master
in repository numba.

commit 61efd19c2af6f050d6a7565da5a5cdbeec8a72a6
Author: Daniel Stender <stender at debian.org>
Date:   Sun Jul 23 16:22:07 2017 +0200

    set up full DEP-8 testing
---
 debian/changelog               |  4 ++++
 debian/tests/control           |  6 ++++--
 debian/tests/python-numba      |  4 ++++
 debian/tests/python3-numba     |  4 ++++
 debian/tests/simpletest.py2.sh | 22 ----------------------
 debian/tests/simpletest.py3.sh | 22 ----------------------
 6 files changed, 16 insertions(+), 46 deletions(-)

diff --git a/debian/changelog b/debian/changelog
index 5fdcfd2..fb3f50b 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -10,6 +10,10 @@ numba (0.34.0-2) UNRELEASED; urgency=medium
   * set up alternatives for CLI script:
     + add postinst and prerm maintscripts for both binaries.
     + deb/rules: drop extra info on install-scripts about location.
+  * set up full DEP-8 testing:
+    + add testscripts deb/tests/python{2,3}-numba.
+    + add testscripts and needed deps to deb/tests/control.
+    + drop deb/tests/simpletest.py{2,3}.sh.
 
  -- Daniel Stender <stender at debian.org>  Sun, 23 Jul 2017 16:15:38 +0200
 
diff --git a/debian/tests/control b/debian/tests/control
index e6bbc86..0f1d515 100644
--- a/debian/tests/control
+++ b/debian/tests/control
@@ -1,3 +1,5 @@
-Tests: simpletest.py2.sh
+Tests: python-numba
+Depends: python-numba, python-all-dev, python-funcsigs, python-singledispatch
 
-Tests: simpletest.py3.sh
+Tests: python3-numba
+Depends: python3-numba, python3-all-dev
diff --git a/debian/tests/python-numba b/debian/tests/python-numba
new file mode 100755
index 0000000..27fc2ef
--- /dev/null
+++ b/debian/tests/python-numba
@@ -0,0 +1,4 @@
+#!/bin/sh
+set -e
+cd "$AUTOPKGTEST_TMP" # run on installed package
+for py in $(pyversions -i); do echo "[*] Testing with $py:"; $py -Wd -m numba.runtests -v -m 2>&1; done
diff --git a/debian/tests/python3-numba b/debian/tests/python3-numba
new file mode 100755
index 0000000..0da3286
--- /dev/null
+++ b/debian/tests/python3-numba
@@ -0,0 +1,4 @@
+#!/bin/sh
+set -e
+cd "$AUTOPKGTEST_TMP" # run on installed package
+for py in $(py3versions -i); do echo "[*] Testing with $py:"; $py -Wd -m numba.runtests -v -m 2>&1; done
diff --git a/debian/tests/simpletest.py2.sh b/debian/tests/simpletest.py2.sh
deleted file mode 100644
index f685fdd..0000000
--- a/debian/tests/simpletest.py2.sh
+++ /dev/null
@@ -1,22 +0,0 @@
-#!/bin/sh
-set -e
-
-# example taken from http://numba.pydata.org/
-python2 -c "
-from numba import jit
-from numpy import arange
-
-# jit decorator tells Numba to compile this function.
-# The argument types will be inferred by Numba when function is called.
- at jit
-def sum2d(arr):
-    M, N = arr.shape
-    result = 0.0
-    for i in range(M):
-        for j in range(N):
-            result += arr[i,j]
-    return result
-
-a = arange(9).reshape(3,3)
-print(sum2d(a))
-"
diff --git a/debian/tests/simpletest.py3.sh b/debian/tests/simpletest.py3.sh
deleted file mode 100644
index d41ef09..0000000
--- a/debian/tests/simpletest.py3.sh
+++ /dev/null
@@ -1,22 +0,0 @@
-#!/bin/sh
-set -e
-
-# example taken from http://numba.pydata.org/
-python3 -c "
-from numba import jit
-from numpy import arange
-
-# jit decorator tells Numba to compile this function.
-# The argument types will be inferred by Numba when function is called.
- at jit
-def sum2d(arr):
-    M, N = arr.shape
-    result = 0.0
-    for i in range(M):
-        for j in range(N):
-            result += arr[i,j]
-    return result
-
-a = arange(9).reshape(3,3)
-print(sum2d(a))
-"

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-science/packages/numba.git



More information about the debian-science-commits mailing list