OoO En cette nuit nuageuse du mercredi 23 janvier 2008, vers 00:39, Debian testing watch <[EMAIL PROTECTED]> disait:
> FYI: The status of the python-axiom source package > in Debian's testing distribution has changed. > Previous version: 0.5.26-1 > Current version: (not in testing) > Hint: <http://ftp-master.debian.org/testing/hints/he> > Bug #456832: python-axiom: FTBFS: exceptions.TypeError: > set_progress_handler() takes exactly 2 arguments (1 given) > The script that generates this mail tries to extract removal > reasons from comments in the britney hint files. Those comments > were not originally meant to be machine readable, so if the > reason for removing your package seems to be nonsense, it is > probably the reporting script that got confused. Please check the > actual hints file before you complain about meaningless removals. This can be fixed by the following changeset: http://divmod.org/trac/changeset/14739 I attach a diff for this change using quilt. I have also upgraded the package to the new 0.5.27. I have added myself to Uploaders. I have tried to commit this but I get this error: svn: Commit failed (details follow): svn: Authorization failed
pgpgTaWFHsofD.pgp
Description: PGP signature
Index: debian/control =================================================================== --- debian/control (révision 4408) +++ debian/control (copie de travail) @@ -2,13 +2,13 @@ Section: python Priority: optional Maintainer: Debian Python Modules Team <[email protected]> -Uploaders: Stefano Zacchiroli <[EMAIL PROTECTED]>, Tristan Seligmann <[EMAIL PROTECTED]> -Build-Depends: debhelper (>= 5), cdbs (>= 0.4.43), python, python-support (>= 0.4) +Uploaders: Stefano Zacchiroli <[EMAIL PROTECTED]>, Tristan Seligmann <[EMAIL PROTECTED]>, Vincent Bernat <[EMAIL PROTECTED]> +Build-Depends: debhelper (>= 5), cdbs (>= 0.4.43), python, python-support (>= 0.4), quilt, patchutils (>= 0.2.25) Build-Depends-Indep: python-twisted-core, python-twisted-conch, python-epsilon, python-pysqlite2 Homepage: http://www.divmod.org/trac/wiki/DivmodAxiom Vcs-Svn: svn://svn.debian.org/python-modules/packages/python-axiom/trunk/ Vcs-Browser: http://svn.debian.org/wsvn/python-modules/packages/python-axiom/trunk/?op=log -Standards-Version: 3.7.2 +Standards-Version: 3.7.3 Package: python-axiom Architecture: all Index: debian/TODO.Debian =================================================================== --- debian/TODO.Debian (révision 4408) +++ debian/TODO.Debian (copie de travail) @@ -1 +0,0 @@ -- run unit tests at build time Index: debian/changelog =================================================================== --- debian/changelog (révision 4408) +++ debian/changelog (copie de travail) @@ -1,9 +1,16 @@ -python-axiom (0.5.26-2) UNRELEASED; urgency=low +python-axiom (0.5.27-1) UNRELEASED; urgency=low + [ Vincent Bernat ] + * New upstream release. + * Bump Standards-Version + * Fix failing unittests that were calling set_progress_handler() without + a second argument (Closes: #456832). + + [ Sandro Tosi ] * debian/control - uniforming Vcs-Browser field - -- Sandro Tosi <[EMAIL PROTECTED]> Thu, 03 Jan 2008 11:59:15 +0100 + -- Vincent Bernat <[EMAIL PROTECTED]> Thu, 24 Jan 2008 20:31:45 +0100 python-axiom (0.5.26-1) unstable; urgency=low Index: debian/patches/progresshandler-fix.patch =================================================================== --- debian/patches/progresshandler-fix.patch (révision 0) +++ debian/patches/progresshandler-fix.patch (révision 0) @@ -0,0 +1,90 @@ +This patch is stolen from changeset 14739: + http://divmod.org/trac/changeset/14739 +See bug #2468: + http://divmod.org/trac/ticket/2468 +It fixes the Debian bug #456832 + http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=456832 + +Index: Axiom/axiom/test/util.py +=================================================================== +--- Axiom/axiom/test/util.py (revision 10861) ++++ Axiom/axiom/test/util.py (revision 14739) +@@ -98,9 +98,8 @@ + if sph is None: + raise SkipTest( +- "Your version of PySQLite does not expose the " +- "set_progress_handler API. A patch which does so " +- "is available from " +- "http://initd.org/tracker/pysqlite/ticket/182") +- sph(self.progressHandler) ++ "QueryCounter requires PySQLite 2.4 or newer, or a patch " ++ "(see <http://initd.org/tracker/pysqlite/ticket/182>) to " ++ "expose the set_progress_handler API.") ++ sph(self.progressHandler, 1) + + def progressHandler(self): +Index: Axiom/axiom/test/test_query.py +=================================================================== +--- Axiom/axiom/test/test_query.py (revision 13104) ++++ Axiom/axiom/test/test_query.py (revision 14739) +@@ -7,4 +7,5 @@ + from axiom.store import Store, ItemQuery + from axiom.item import Item, Placeholder ++from axiom.test.util import QueryCounter + + from axiom import errors +@@ -1013,20 +1014,4 @@ + self.store = Store() + self.query = self.store.query(FirstType, self.comparison) +- class counter: +- count = 0 +- def increment(self): +- self.count += 1 +- return 0 +- self.counter = counter() +- +- store = self.store +- connection = store.connection +- _connection = connection._connection +- try: +- self.setProgressHandler = _connection.set_progress_handler +- except AttributeError: +- raise SkipTest( +- "Axiom missing setProgressHandler, cannot run bytecode " +- "execution-counting tests.") + + # Make one of each to get any initialization taken care of so it +@@ -1035,12 +1020,4 @@ + SecondType(store=self.store) + +- self.setProgressHandler(self.counter.increment) +- +- +- def _countQuery(self): +- for i in range(10): +- self.counter.count = 0 +- list(self.query) +- yield self.counter.count + + def test_firstTableOuterLoop(self): +@@ -1053,7 +1030,8 @@ + number of bytecodes executed increased. + """ ++ counter = QueryCounter(self.store) + counts = [] +- for c in self._countQuery(): +- counts.append(c) ++ for c in range(10): ++ counts.append(counter.measure(list, self.query)) + FirstType(store=self.store) + +@@ -1075,6 +1053,8 @@ + never examined. + """ ++ counter = QueryCounter(self.store) + count = None +- for c in self._countQuery(): ++ for i in range(10): ++ c = counter.measure(list, self.query) + if count is None: + count = c Index: debian/patches/series =================================================================== --- debian/patches/series (révision 0) +++ debian/patches/series (révision 0) @@ -0,0 +1 @@ +progresshandler-fix.patch Index: debian/rules =================================================================== --- debian/rules (révision 4408) +++ debian/rules (copie de travail) @@ -2,6 +2,7 @@ DEB_PYTHON_SYSTEM = pysupport include /usr/share/cdbs/1/rules/debhelper.mk include /usr/share/cdbs/1/class/python-distutils.mk +include /usr/share/cdbs/1/rules/patchsys-quilt.mk PKGDIR=debian/python-axiom/ install/python-axiom:: PYTHONPATH="$(CURDIR)/$(DEB_BUILDDIR)/build/lib" /usr/bin/trial axiom
-- BOFH excuse #17: fat electrons in the lines
_______________________________________________ Python-modules-team mailing list [email protected] http://lists.alioth.debian.org/mailman/listinfo/python-modules-team

