[Debian-astro-commits] [python-astropy] 01/01: Enable Matplotlib tests

Leo Singer lsinger-guest at moszumanska.debian.org
Wed Feb 22 15:04:01 UTC 2017


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

lsinger-guest pushed a commit to branch master
in repository python-astropy.

commit fce5e0ab2ce85243c8c050a86a1871b284b64e9f
Author: Leo Singer <leo.singer at ligo.org>
Date:   Tue Feb 21 17:44:41 2017 -0500

    Enable Matplotlib tests
---
 debian/changelog | 6 ++++++
 debian/control   | 2 ++
 debian/rules     | 7 +++++--
 3 files changed, 13 insertions(+), 2 deletions(-)

diff --git a/debian/changelog b/debian/changelog
index 51dee52..3a39396 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,9 @@
+python-astropy (1.3-9) UNRELEASED; urgency=medium
+
+  * Enable Matplotlib tests.
+
+ -- Leo Singer <leo.singer at ligo.org>  Tue, 21 Feb 2017 17:43:41 -0500
+
 python-astropy (1.3-8) unstable; urgency=medium
 
   * Switch to unstable. Closes: #852550
diff --git a/debian/control b/debian/control
index 8b61ca1..5513839 100644
--- a/debian/control
+++ b/debian/control
@@ -21,6 +21,7 @@ Build-Depends: cython,
                python-numpy (>= 1.4),
                python-ply,
                python-pytest,
+               python-pytest-mpl,
                python-scipy,
                python-setuptools (>= 0.6.4),
                python-six (>= 1.10.0),
@@ -34,6 +35,7 @@ Build-Depends: cython,
                python3-numpy (>= 1:1.6.2),
                python3-ply,
                python3-pytest,
+               python3-pytest-mpl,
                python3-scipy,
                python3-setuptools (>= 0.6.4),
                python3-six (>= 1.10.0),
diff --git a/debian/rules b/debian/rules
index df33b64..ae68c28 100755
--- a/debian/rules
+++ b/debian/rules
@@ -7,7 +7,10 @@ PYTHON3:=$(shell py3versions -vr)
 export HOME=$(CURDIR)/build
 export MPLCONFIGDIR=$(CURDIR)/build
 
-# Prevent setuptools/distribute from accessing the internet.
+# Use agg Matplotlib backend for testing on headless machines.
+export MPLBACKEND=agg
+
+# # Prevent setuptools/distribute from accessing the internet.
 export http_proxy = http://127.0.9.1:9
 
 %:
@@ -53,7 +56,7 @@ override_dh_auto_clean:
 
 ifeq (,$(filter nocheck,$(DEB_BUILD_OPTIONS)))
 test-python%:
-	python$* setup.py test -vv --args -vv
+	python$* setup.py test -vv --args "-vv --mpl"
 
 override_dh_auto_test: $(PYTHON2:%=test-python%) $(PYTHON3:%=test-python%)
 endif

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



More information about the Debian-astro-commits mailing list