[Python-modules-commits] [python-virtualenv] 04/04: Install _markerlib and add some DEP-8 tests.

Barry Warsaw barry at moszumanska.debian.org
Sat Feb 27 18:45:17 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 539d8b33b5d559c42b0005102f9f26c95371e4f5
Author: Barry Warsaw <barry at python.org>
Date:   Sat Feb 27 13:44:50 2016 -0500

    Install _markerlib and add some DEP-8 tests.
---
 debian/changelog     |  8 ++++++++
 debian/tests/control |  4 +++-
 debian/tests/setup-2 | 20 ++++++++++++++++++++
 debian/tests/setup-3 | 20 ++++++++++++++++++++
 4 files changed, 51 insertions(+), 1 deletion(-)

diff --git a/debian/changelog b/debian/changelog
index a08f294..849343f 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,11 @@
+python-virtualenv (14.0.5+ds-3) UNRELEASED; urgency=medium
+
+  * d/patches/use-wheels.patch: Also install _markerlib in the virtual
+    environment.
+  * d/tests/setup-{2,3}: Added.
+
+ -- Barry Warsaw <barry at debian.org>  Sat, 27 Feb 2016 12:36:32 -0500
+
 python-virtualenv (14.0.5+ds-2) unstable; urgency=medium
 
   * d/patches/use-wheels.patch: Since setuptools and pkg_resources are
diff --git a/debian/tests/control b/debian/tests/control
index e24e2f8..c601ab3 100644
--- a/debian/tests/control
+++ b/debian/tests/control
@@ -1,2 +1,4 @@
 Tests: smoketest-2, smoketest-3
-Restrictions: allow-stderr
\ No newline at end of file
+Restrictions: allow-stderr
+
+Tests: setup-2, setup-3
diff --git a/debian/tests/setup-2 b/debian/tests/setup-2
new file mode 100644
index 0000000..202c1e8
--- /dev/null
+++ b/debian/tests/setup-2
@@ -0,0 +1,20 @@
+#!/bin/sh
+
+cat > setup.py <<EOF
+from setuptools import setup, find_packages
+
+setup(
+    name='stupid',
+    version='0.0',
+    packages=find_packages(),
+    )
+EOF
+
+cat > stupid.py <<EOF
+print 'stupid module'
+EOF
+
+virtualenv -p python2 $ADTTMP/p2
+. $ADTTMP/p2/bin/activate
+python setup.py install
+python -c "import stupid"
diff --git a/debian/tests/setup-3 b/debian/tests/setup-3
new file mode 100644
index 0000000..c263864
--- /dev/null
+++ b/debian/tests/setup-3
@@ -0,0 +1,20 @@
+#!/bin/sh
+
+cat > setup.py <<EOF
+from setuptools import setup, find_packages
+
+setup(
+    name='stupid',
+    version='0.0',
+    packages=find_packages(),
+    )
+EOF
+
+cat > stupid.py <<EOF
+print('stupid module')
+EOF
+
+virtualenv -p python3 $ADTTMP/p3
+. $ADTTMP/p3/bin/activate
+python setup.py install
+python -c "import stupid"

-- 
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