[Python-modules-commits] [python-packaging] 06/06: Add a smoketest for the .whl file.
Barry Warsaw
barry at moszumanska.debian.org
Mon Jul 13 21:25:27 UTC 2015
This is an automated email from the git hooks/post-receive script.
barry pushed a commit to branch master
in repository python-packaging.
commit e46880840b774c22e72d74c164ff5f05b6e693a8
Author: Barry Warsaw <barry at python.org>
Date: Mon Jul 13 17:19:15 2015 -0400
Add a smoketest for the .whl file.
---
debian/control | 8 ++++----
debian/tests/control | 2 +-
debian/tests/smoketest-whl | 7 +++++++
3 files changed, 12 insertions(+), 5 deletions(-)
diff --git a/debian/control b/debian/control
index a6d4446..ac2c4db 100644
--- a/debian/control
+++ b/debian/control
@@ -2,8 +2,7 @@ Source: python-packaging
Section: python
Priority: extra
Maintainer: Debian Python Modules Team <python-modules-team at lists.alioth.debian.org>
-Uploaders: Barry Warsaw <barry at debian.org>,
- ,
+Uploaders: Barry Warsaw <barry at debian.org>
Build-Depends: debhelper (>= 9),
python-all (>= 2.6.6-3~),
python-pytest,
@@ -12,7 +11,7 @@ Build-Depends: debhelper (>= 9),
python3-all,
python3-pytest,
python3-setuptools,
- python3-wheel,
+ python3-wheel,
Standards-Version: 3.9.6
X-Python-Version: >= 2.7
X-Python3-Version: >= 3.4
@@ -41,7 +40,8 @@ Description: core utilities for Python packages
Package: python-packaging-whl
Architecture: all
-Depends: ${python3:Depends}, ${misc:Depends}
+Depends: ${misc:Depends},
+ ${python3:Depends},
Description: core utilities for Python packages
.
This package provides packaging in PEP 427 wheel format.
diff --git a/debian/tests/control b/debian/tests/control
index 17d10f1..f267f01 100644
--- a/debian/tests/control
+++ b/debian/tests/control
@@ -1 +1 @@
-Tests: smoketest-2 smoketest-3
+Tests: smoketest-2 smoketest-3 smoketest-whl
diff --git a/debian/tests/smoketest-whl b/debian/tests/smoketest-whl
new file mode 100644
index 0000000..5a88502
--- /dev/null
+++ b/debian/tests/smoketest-whl
@@ -0,0 +1,7 @@
+#!/bin/sh
+
+# Make sure we don't accidentally pick up the current working directory.
+cd $ADTTMP
+
+export PYTHONPATH=`find /usr/share/python-wheels -name packaging*.whl`
+python3 -c "import packaging; print(packaging.__file__, packaging.__version__)"
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/python-modules/packages/python-packaging.git
More information about the Python-modules-commits
mailing list