[amp] 16/18: In this commit all tests seem to be working correctly.
Muammar El Khatib
muammar at moszumanska.debian.org
Mon Jul 31 19:59:41 UTC 2017
This is an automated email from the git hooks/post-receive script.
muammar pushed a commit to branch master
in repository amp.
commit aba1cfbabc2f4034a8c84b5f218dd688096946cd
Author: Muammar El Khatib <muammarelkhatib at gmail.com>
Date: Mon Jul 31 15:03:45 2017 -0400
In this commit all tests seem to be working correctly.
---
debian/control | 2 +-
debian/rules | 22 +++++++++++++++-------
2 files changed, 16 insertions(+), 8 deletions(-)
diff --git a/debian/control b/debian/control
index 5505146..90345fb 100644
--- a/debian/control
+++ b/debian/control
@@ -25,7 +25,7 @@ Build-Depends: debhelper (>= 9),
python3-zmq,
openssh-server
X-Python-Version: >= 2.6
-X-Python3-Version: >= 3.2
+X-Python3-Version: >= 3.5
Standards-Version: 4.0.0
Homepage: https://bitbucket.org/andrewpeterson/amp
diff --git a/debian/rules b/debian/rules
index 1850f58..6158446 100755
--- a/debian/rules
+++ b/debian/rules
@@ -28,19 +28,27 @@ override_dh_python3:
dh_numpy
override_dh_auto_test:
- cd $(CURDIR)/amp/; \
- make python2
- cd $(CURDIR)/amp/; \
- make python3
ifeq ($(filter nocheck,$(DEB_BUILD_OPTIONS)),)
- set -ex; for python in $(shell pyversions -d; py3versions -d) ; do \
- $$python /usr/bin/nosetests -v; \
+ set -ex; for python in $(shell pyversions -d) ; do \
+ mkdir python2; \
+ cd python2; \
+ $$python /usr/bin/nosetests -v ../; \
+ cd ..; \
+ rm -rf python2; \
+ done
+
+ set -ex; for python in $(shell py3versions -d) ; do \
+ mkdir python3; \
+ cd python3; \
+ $$python /usr/bin/nosetests3 -v ../; \
+ cd ..; \
+ rm -rf python3; \
done
endif
override_dh_auto_clean:
dh_auto_clean
- rm -rf amp.egg-info/
+ rm -rf amp.egg-info/ python2/ python3/
find . -name "*.json" -delete
find . -name "*-train-log.txt" -delete
find . -name "*.pyc" -delete
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-science/packages/amp.git
More information about the debian-science-commits
mailing list