[Python-modules-commits] [python-attrs] 15/15: Add DEP-8 tests.

Tristan Seligmann mithrandi at moszumanska.debian.org
Fri Jun 30 02:27:36 UTC 2017


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

mithrandi pushed a commit to branch master
in repository python-attrs.

commit e710009e9ad3e6aa037f1309c0e004ddd22a130e
Author: Tristan Seligmann <mithrandi at mithrandi.net>
Date:   Fri Jun 30 04:07:59 2017 +0200

    Add DEP-8 tests.
---
 debian/changelog          |  1 +
 debian/tests/control      | 11 +++++++++++
 debian/tests/python-attrs |  9 +++++++++
 3 files changed, 21 insertions(+)

diff --git a/debian/changelog b/debian/changelog
index 52d19bf..fc8100d 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -7,6 +7,7 @@ python-attrs (17.2.0-1) unstable; urgency=medium
     autodoc.
   * Bump Standards-Version to 4.0.0 (no changes).
   * Update repository location in debian/watch.
+  * Add DEP-8 tests.
 
  -- Tristan Seligmann <mithrandi at debian.org>  Fri, 30 Jun 2017 03:43:49 +0200
 
diff --git a/debian/tests/control b/debian/tests/control
new file mode 100644
index 0000000..68cca64
--- /dev/null
+++ b/debian/tests/control
@@ -0,0 +1,11 @@
+Tests: python-attrs
+Depends:
+ python-hypothesis,
+ python-pytest,
+ python-six,
+ python-zope.interface,
+ python3-hypothesis,
+ python3-pytest,
+ python3-six,
+ python3-zope.interface,
+ @,
diff --git a/debian/tests/python-attrs b/debian/tests/python-attrs
new file mode 100644
index 0000000..5e5c883
--- /dev/null
+++ b/debian/tests/python-attrs
@@ -0,0 +1,9 @@
+#!/bin/sh
+set -e -u
+cp -r conftest.py tests "$ADTTMP"
+cd "$ADTTMP/"
+export PYTHONWARNINGS=d
+(pyversions -i; py3versions -i) \
+| tr ' ' '\n' \
+| xargs -I {} env {} \
+  -m pytest tests 2>&1

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



More information about the Python-modules-commits mailing list