[pyorbital] 01/01: Fix autopckgtest scripts
Antonio Valentino
a_valentino-guest at moszumanska.debian.org
Sun Jun 22 11:11:31 UTC 2014
This is an automated email from the git hooks/post-receive script.
a_valentino-guest pushed a commit to branch master
in repository pyorbital.
commit d66a96c1db1048d6a518319e236fb58559121452
Author: Antonio Valentino <antonio.valentino at tiscali.it>
Date: Sun Jun 22 09:28:44 2014 +0000
Fix autopckgtest scripts
---
debian/patches/0001-install-test-sub-package.patch | 22 ++++++++++++++++++++++
debian/patches/series | 1 +
debian/tests/python2 | 4 ++--
3 files changed, 25 insertions(+), 2 deletions(-)
diff --git a/debian/patches/0001-install-test-sub-package.patch b/debian/patches/0001-install-test-sub-package.patch
new file mode 100644
index 0000000..5f43fbd
--- /dev/null
+++ b/debian/patches/0001-install-test-sub-package.patch
@@ -0,0 +1,22 @@
+From: Antonio Valentino <antonio.valentino at tiscali.it>
+Date: Sun, 22 Jun 2014 11:03:14 +0000
+Subject: install test sub-package
+
+---
+ setup.py | 3 ++-
+ 1 file changed, 2 insertions(+), 1 deletion(-)
+
+diff --git a/setup.py b/setup.py
+index 3ce9449..218ce2a 100644
+--- a/setup.py
++++ b/setup.py
+@@ -41,7 +41,8 @@ setup(name='pyorbital',
+ url="https://github.com/mraspaud/pyorbital",
+ test_suite='pyorbital.tests.suite',
+ package_dir = {'pyorbital': 'pyorbital'},
+- packages = ['pyorbital'],
++ packages = ['pyorbital', 'pyorbital.tests'],
++ package_data={'pyorbital.tests': ['aiaa_results', '*.TLE']},
+ install_requires=['numpy'],
+ zip_safe=False,
+ )
diff --git a/debian/patches/series b/debian/patches/series
new file mode 100644
index 0000000..d07cec9
--- /dev/null
+++ b/debian/patches/series
@@ -0,0 +1 @@
+0001-install-test-sub-package.patch
diff --git a/debian/tests/python2 b/debian/tests/python2
index 56c0d1a..7713b8c 100755
--- a/debian/tests/python2
+++ b/debian/tests/python2
@@ -2,11 +2,11 @@
set -efu
PYS=${PYS:-"$(pyversions -r 2>/dev/null)"}
-TESTPKG=${TESTPKG:-tables}
+TESTPKG=${TESTPKG:-pyorbital}
cd "$ADTTMP"
for py in $PYS; do
echo "=== $py ==="
- $py -c "import $TESTPKG; $TESTPKG.test(verbose=2)" 2>&1
+ $py -m unittest -v pyorbital.tests.suite 2>&1
done
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-grass/pyorbital.git
More information about the Pkg-grass-devel
mailing list