[Python-modules-commits] r7942 - in packages/python-netaddr/trunk/debian (4 files)
bernat at users.alioth.debian.org
bernat at users.alioth.debian.org
Sat Mar 21 08:31:32 UTC 2009
Date: Saturday, March 21, 2009 @ 08:31:32
Author: bernat
Revision: 7942
Run unittests before calling python-support. Closes: #517064.
Bump Standards-Version. No changes required.
Added:
packages/python-netaddr/trunk/debian/runtests.py
Modified:
packages/python-netaddr/trunk/debian/changelog
packages/python-netaddr/trunk/debian/control
packages/python-netaddr/trunk/debian/rules
Modified: packages/python-netaddr/trunk/debian/changelog
===================================================================
--- packages/python-netaddr/trunk/debian/changelog 2009-03-21 08:24:05 UTC (rev 7941)
+++ packages/python-netaddr/trunk/debian/changelog 2009-03-21 08:31:32 UTC (rev 7942)
@@ -1,3 +1,10 @@
+python-netaddr (0.6-2) unstable; urgency=low
+
+ * Run unittests before calling python-support. Closes: #517064.
+ * Bump Standards-Version. No changes required.
+
+ -- Vincent Bernat <bernat at debian.org> Sat, 21 Mar 2009 09:27:48 +0100
+
python-netaddr (0.6-1) unstable; urgency=low
[ Vincent Bernat ]
Modified: packages/python-netaddr/trunk/debian/control
===================================================================
--- packages/python-netaddr/trunk/debian/control 2009-03-21 08:24:05 UTC (rev 7941)
+++ packages/python-netaddr/trunk/debian/control 2009-03-21 08:31:32 UTC (rev 7942)
@@ -3,7 +3,7 @@
Priority: optional
Maintainer: Vincent Bernat <bernat at debian.org>
Uploaders: Debian Python Modules Team <python-modules-team at lists.alioth.debian.org>
-Standards-Version: 3.8.0
+Standards-Version: 3.8.1
Build-Depends: debhelper (>= 5.0.37.2),
cdbs (>= 0.4.43),
python, python-setuptools (>= 0.6b3)
Modified: packages/python-netaddr/trunk/debian/rules
===================================================================
--- packages/python-netaddr/trunk/debian/rules 2009-03-21 08:24:05 UTC (rev 7941)
+++ packages/python-netaddr/trunk/debian/rules 2009-03-21 08:31:32 UTC (rev 7942)
@@ -9,12 +9,7 @@
DEB_COMPRESS_EXCLUDE := .js
ifeq (,$(findstring nocheck,$(DEB_BUILD_OPTIONS)))
-binary-post-install/python-netaddr:: binary-post-install/%:
- # We want to run tests against installed files
- cp -a 'tests' \
- 'debian/$(cdbs_curpkg)/usr/share/python-support/python-netaddr'
- cd / ; python '$(CURDIR)/debian/$(cdbs_curpkg)/usr/share/python-support/python-netaddr/tests/ut_netaddr.py'
- rm -rf 'debian/$(cdbs_curpkg)/usr/share/python-support/python-netaddr/tests'
- find 'debian/$(cdbs_curpkg)' -regex '.*/*\.py[co]' -print0 \
- | xargs -0 rm -f --
+install/python-netaddr::
+ $(call cdbs_python_binary,python$(cdbs_python_compile_version)) \
+ debian/runtests.py debian/python-netaddr
endif
Added: packages/python-netaddr/trunk/debian/runtests.py
===================================================================
--- packages/python-netaddr/trunk/debian/runtests.py (rev 0)
+++ packages/python-netaddr/trunk/debian/runtests.py 2009-03-21 08:31:32 UTC (rev 7942)
@@ -0,0 +1,14 @@
+import sys
+from os.path import join
+from distutils.sysconfig import get_python_lib
+from site import addsitedir
+
+root = sys.argv.pop(1)
+site_packages = get_python_lib()
+
+_path = sys.path[:]
+sys.path[:] = []
+addsitedir(join(root, site_packages[1:]))
+sys.path.extend(_path)
+
+execfile("tests/ut_netaddr.py")
More information about the Python-modules-commits
mailing list