[numba] 01/01: add debdiff from lumin
Daniel Stender
stender at moszumanska.debian.org
Fri Feb 17 18:17:41 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 198ba6313a0f8ce20a063e682375b34813f14342
Author: Daniel Stender <stender at debian.org>
Date: Fri Feb 17 19:03:45 2017 +0100
add debdiff from lumin
---
debian/changelog | 9 +++++++++
debian/rules | 5 +++++
debian/tests/control | 3 +++
debian/tests/simpletest.py2.sh | 22 ++++++++++++++++++++++
debian/tests/simpletest.py3.sh | 22 ++++++++++++++++++++++
5 files changed, 61 insertions(+)
diff --git a/debian/changelog b/debian/changelog
index bde7576..815dd02 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,12 @@
+numba (0.30.0-3) experimental; urgency=medium
+
+ [ lumin ]
+ * Remove unwanted file "annotation_usecases.py" for the python2
+ package (Closes: #851578).
+ * Add basic autopkgtest support.
+
+ -- Daniel Stender <stender at debian.org> Fri, 17 Feb 2017 19:11:48 +0100
+
numba (0.30.0-2) experimental; urgency=medium
* deb/control:
diff --git a/debian/rules b/debian/rules
index af28acf..11d65cc 100755
--- a/debian/rules
+++ b/debian/rules
@@ -7,6 +7,11 @@ export PYBUILD_INSTALL_ARGS=--install-scripts=/usr/share/{package}
%:
dh $@ --with python2,python3,sphinxdoc --buildsystem=pybuild
+override_dh_auto_install:
+ dh_auto_install
+ # remove the unwanted file for python2 package
+ find debian/python-numba -type f -name annotation_usecases.py -delete
+
override_dh_auto_test:
PYBUILD_SYSTEM=custom PYBUILD_TEST_ARGS="cd {build_dir} && {interpreter} -Wd -m pytest numba/tests -v -rs" dh_auto_test
diff --git a/debian/tests/control b/debian/tests/control
new file mode 100644
index 0000000..e6bbc86
--- /dev/null
+++ b/debian/tests/control
@@ -0,0 +1,3 @@
+Tests: simpletest.py2.sh
+
+Tests: simpletest.py3.sh
diff --git a/debian/tests/simpletest.py2.sh b/debian/tests/simpletest.py2.sh
new file mode 100644
index 0000000..f685fdd
--- /dev/null
+++ b/debian/tests/simpletest.py2.sh
@@ -0,0 +1,22 @@
+#!/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
new file mode 100644
index 0000000..d41ef09
--- /dev/null
+++ b/debian/tests/simpletest.py3.sh
@@ -0,0 +1,22 @@
+#!/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