[med-svn] [mypy] 01/01: try out upstream tests

Michael Crusoe misterc-guest at moszumanska.debian.org
Thu Feb 2 11:09:14 UTC 2017


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

misterc-guest pushed a commit to branch master
in repository mypy.

commit 591012908afaaf73e21c522b843b9c42f9081d7e
Author: Michael R. Crusoe <michael.crusoe at gmail.com>
Date:   Thu Feb 2 00:24:24 2017 -0800

    try out upstream tests
---
 debian/changelog | 6 ++++++
 debian/control   | 5 +++++
 debian/myunit    | 9 +++++++++
 debian/rules     | 4 +++-
 4 files changed, 23 insertions(+), 1 deletion(-)

diff --git a/debian/changelog b/debian/changelog
index 175260a..dd29cb2 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,9 @@
+mypy (0.480.dev0-1) UNRELEASED; urgency=medium
+
+  * Run the upstream tests
+
+ -- Michael R. Crusoe <michael.crusoe at gmail.com>  Thu, 02 Feb 2017 00:23:51 -0800
+
 mypy (0.470-complete-1) unstable; urgency=medium
 
   * Use complete upstream source from PyPI, not incomplete tarball from
diff --git a/debian/control b/debian/control
index f3bbbf0..fd6495f 100644
--- a/debian/control
+++ b/debian/control
@@ -8,6 +8,11 @@ Build-Depends: debhelper (>= 10),
                python3-all,
                python3-setuptools,
                python3-typed-ast,
+               python3-pytest,
+               python3-lxml,
+               python3-pytest-xdist,
+               python3-pytest-cov,
+               flake8,
                help2man
 Standards-Version: 3.9.8
 Vcs-Browser: https://anonscm.debian.org/cgit/debian-med/mypy.git
diff --git a/debian/myunit b/debian/myunit
new file mode 100644
index 0000000..43fce06
--- /dev/null
+++ b/debian/myunit
@@ -0,0 +1,9 @@
+#!/usr/bin/env python3
+"""Myunit test runner command line tool.
+
+Usually used as a slave by runtests.py, but can be used directly.
+"""
+
+from mypy.myunit import main
+
+main()
diff --git a/debian/rules b/debian/rules
index 99183f5..34ac2ec 100755
--- a/debian/rules
+++ b/debian/rules
@@ -5,7 +5,8 @@ DEBVERS        := $(shell dpkg-parsechangelog | awk '/^Version:/ {print $$2}')
 VERSION        := $(shell echo '$(DEBVERS)' | sed -e 's/^[0-9]*://' -e 's/-.*//')
 export PYBUILD_NAME = mypy
 PPATH=$(CURDIR):$(CURDIR)/lib-typing/3.2
-#export PYBUILD_BEFORE_TEST=${interpreter} {dir}/runtests.py
+export PYBUILD_BEFORE_TEST=cp {dir}/debian/myunit {dir}/scripts/ && ${interpreter} {dir}/runtests.py
+export PYBUILD_TEST_ARGS=|| /bin/true
 %:
 	dh $@ --with python3 --buildsystem=pybuild
 
@@ -20,5 +21,6 @@ override_dh_auto_build:
 		   debian/stubgen.1
 
 override_dh_auto_clean:
+	rm -f scripts/myunit
 	rm -f debian/*.1
 	dh_auto_clean

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-med/mypy.git



More information about the debian-med-commit mailing list