tags 394239 + patch
thank you
Hi,
I have prepared an NMU that seems to resolve this issue as well as
conform to the new python policy. I'm not quite sure exactly why it
works this way but using $(MAKE) check in rules works where calling
./test_all.py directly fails.
It includes some policy and lintian error clean-ups as well.
Thank you,
Barry deFreese
reverted:
--- testresources-0.1/setup.py
+++ testresources-0.1.orig/setup.py
@@ -1,4 +1,4 @@
+#!/usr/bin/env python
-#!/usr/bin/env python2.4
from distutils.core import setup
reverted:
--- testresources-0.1/test_all.py
+++ testresources-0.1.orig/test_all.py
@@ -1,4 +1,4 @@
+#!/usr/bin/env python
-#!/usr/bin/env python2.4
# -*- Mode: python -*-
#
# Copyright (C) 2004 Canonical.com
diff -u testresources-0.1/debian/rules testresources-0.1/debian/rules
--- testresources-0.1/debian/rules
+++ testresources-0.1/debian/rules
@@ -3,11 +3,10 @@
+DEB_PYTHON_SYSTEM=pysupport
include /usr/share/cdbs/1/rules/debhelper.mk
include /usr/share/cdbs/1/class/python-distutils.mk
-DEB_PYTHON_COMPILE_VERSION=2.4
-
clean::
-rm -rf build
find . -name "*.pyc" -print0 | xargs -0 rm -f
common-post-build-indep::
- PYTHONPATH=lib ./test_all.py
+ $(MAKE) check
diff -u testresources-0.1/debian/control testresources-0.1/debian/control
--- testresources-0.1/debian/control
+++ testresources-0.1/debian/control
@@ -2,15 +2,19 @@
-Section: devel
+Section: python
Priority: optional
Maintainer: Robert Collins <[EMAIL PROTECTED]>
-Build-Depends: debhelper (>= 5), cdbs
-Build-Depends-Indep: python2.4-docutils, python2.4, python2.4-dev
-Standards-Version: 3.6.2
+Build-Depends: debhelper (>= 5), cdbs, python-all-dev (>= 2.3.5-11)
+Build-Depends-Indep: python-docutils, python-support (>= 0.5.3)
+Standards-Version: 3.7.3
-Package: python2.4-testresources
+Package: python-testresources
Architecture: all
-Depends: python2.4
-Description: testresources, a PyUnit extension for managing expensive test
fixtures.
- PyUnit extension to manage the initialisation and lifetime of expensive test
- fixtures. For exmaple reference databases are often only need to be
constructed
- once but standard test isolation causes them to be constructed for every
fixture,
- making test execution very slow.
+Depends: ${python:Depends}
+Conflicts: python2.4-testresources
+Replaces: python2.4-testresources
+Description: a PyUnit extension for managing expensive test fixtures
+ PyUnit extension to manage the initialisation and lifetime of expensive
+ test fixtures.
+ .
+ For example reference databases are often only need to be constructed
+ once but standard test isolation causes them to be constructed for every
+ fixture, making test execution very slow.
diff -u testresources-0.1/debian/changelog testresources-0.1/debian/changelog
--- testresources-0.1/debian/changelog
+++ testresources-0.1/debian/changelog
@@ -1,3 +1,14 @@
+testresources (0.1-1.2) unstable; urgency=low
+
+ * Non-maintainer upload.
+ * Update for new python policy (Closes: #380970).
+ * Run make check instead of ./test_all.py (Closes: #394239).
+ * Move from section devel to section python.
+ * Clean up package description to make lintian happy.
+ * Bump Standards Version to 3.7.3.
+
+ -- Barry deFreese <[EMAIL PROTECTED]> Wed, 23 Jan 2008 17:22:42 -0500
+
testresources (0.1-1.1) unstable; urgency=medium
* Non-maintainer upload.
only in patch2:
unchanged:
--- testresources-0.1.orig/debian/pycompat
+++ testresources-0.1/debian/pycompat
@@ -0,0 +1 @@
+2
only in patch2:
unchanged:
--- testresources-0.1.orig/debian/pyversions
+++ testresources-0.1/debian/pyversions
@@ -0,0 +1 @@
+2.4-