[Python-modules-commits] [python-virtualenv] 09/09: * d/rules: - Disable the tests since the upstream tarball does not include enough to run them. - The upstream changes file has been renamed to docs/changes.rst. * d/tests: Add DEP-8 smoketests.
Barry Warsaw
barry at moszumanska.debian.org
Thu Jan 14 15:36:55 UTC 2016
This is an automated email from the git hooks/post-receive script.
barry pushed a commit to branch master
in repository python-virtualenv.
commit c1a2882324ebe404186579ce2489467da3f9ccd9
Author: Barry Warsaw <barry at python.org>
Date: Thu Jan 14 10:36:47 2016 -0500
* d/rules:
- Disable the tests since the upstream tarball does not include enough
to run them.
- The upstream changes file has been renamed to docs/changes.rst.
* d/tests: Add DEP-8 smoketests.
---
debian/changelog | 6 +++++-
debian/rules | 5 +++++
debian/tests/control | 1 +
debian/tests/smoketest-2 | 8 ++++++++
debian/tests/smoketest-3 | 6 ++++++
5 files changed, 25 insertions(+), 1 deletion(-)
diff --git a/debian/changelog b/debian/changelog
index eddc0c2..ad0b8ff 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -6,7 +6,11 @@ python-virtualenv (13.1.2+ds-1) UNRELEASED; urgency=medium
- Bump debhelper Build-Depends to version 9.
- Add new test dependencies to Build-Depends-Indep.
* d/compat: Bump to version 9.
- * d/rules: The upstream changes file has been renamed to docs/changes.rst.
+ * d/rules:
+ - Disable the tests since the upstream tarball does not include enough
+ to run them.
+ - The upstream changes file has been renamed to docs/changes.rst.
+ * d/tests: Add DEP-8 smoketests.
* d/watch: Use pypi.debian.net redirector.
-- Barry Warsaw <barry at debian.org> Thu, 11 Jun 2015 17:19:27 -0400
diff --git a/debian/rules b/debian/rules
index 3a673d1..2f66334 100755
--- a/debian/rules
+++ b/debian/rules
@@ -1,10 +1,15 @@
#!/usr/bin/make -f
+export DH_VERBOSE=1
+export PYBUILD_VERBOSE=1
export PYBUILD_NAME=virtualenv
%:
dh $@ --with python2,python3 --buildsystem=pybuild
+# The upstream tarball doesn't include enough to run the tests.
+override_dh_auto_test:
+
override_dh_python3:
dh_python3 --shebang=/usr/bin/python3
diff --git a/debian/tests/control b/debian/tests/control
new file mode 100644
index 0000000..ed04a63
--- /dev/null
+++ b/debian/tests/control
@@ -0,0 +1 @@
+Tests: smoketest-2, smoketest-3
diff --git a/debian/tests/smoketest-2 b/debian/tests/smoketest-2
new file mode 100644
index 0000000..0ce7f70
--- /dev/null
+++ b/debian/tests/smoketest-2
@@ -0,0 +1,8 @@
+#!/bin/sh
+
+set -x
+echo $ADTTMP
+
+virtualenv -p python2 $ADTTMP/p2
+$ADTTMP/p2/bin/pip install world
+$ADTTMP/p2/bin/world it
diff --git a/debian/tests/smoketest-3 b/debian/tests/smoketest-3
new file mode 100644
index 0000000..ac196de
--- /dev/null
+++ b/debian/tests/smoketest-3
@@ -0,0 +1,6 @@
+#!/bin/sh
+
+virtualenv -p python3 $ADTTMP/p3
+source $ADTTMP/p3/bin/activate
+pip install world
+world it
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/python-modules/packages/python-virtualenv.git
More information about the Python-modules-commits
mailing list