Package: python-sasync
Version: 0.7-1
Severity: important
Tags: patch
networkx changed API in 0.99 (current version in Debian sid/squeeze) and
made additional changes in functionality on top of that in 1.0.1.
Please find attached patch to make package compatible with 0.99 (at least
what was tested with unittests). For 1.0.1 issue is spotted with a unittest:
$> nosetests -s test_graph.py
....F.......
======================================================================
FAIL: testWaitForWrites
----------------------------------------------------------------------
Traceback (most recent call last):
File "/usr/lib/python2.5/site-packages/twisted/internet/defer.py", line 328,
in _runCallbacks
self.result = callback(self.result, *args, **kw)
File "/tmp/python-sasync-0.7/sasync/test/test_graph.py", line 134, in second
self.failUnlessGraphsEqual(self.G, self.H)
File "/tmp/python-sasync-0.7/sasync/test/test_graph.py", line 102, in
failUnlessGraphsEqual
return self.failUnlessEqual(*args)
File "/usr/lib/python2.5/site-packages/twisted/trial/unittest.py", line 262,
in failUnlessEqual
% (msg, pformat(first), pformat(second)))
FailTest: Graphs are not identical: [(29, 63)] vs []
not equal:
a = [(29, 63)]
b = []
-- System Information:
Debian Release: squeeze/sid
APT prefers unstable
APT policy: (901, 'unstable'), (900, 'testing'), (300, 'experimental')
Architecture: amd64 (x86_64)
Kernel: Linux 2.6.31-1-amd64 (SMP w/2 CPU cores)
Locale: LANG=en_US, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash
Versions of packages python-sasync depends on:
ii python 2.5.4-8 An interactive high-level object-o
ii python-asynqueue 0.3-1 asynchronous task queueing based o
ii python-sqlalchemy 0.5.6-1 SQL toolkit and Object Relational
ii python-support 1.0.3 automated rebuilding support for P
ii python-twisted-core 8.2.0-3 Event-based framework for internet
Versions of packages python-sasync recommends:
ii python-networkx 0.99-2 tool to manipulate and study more
python-sasync suggests no packages.
-- debconf-show failed
diff -Naur -xbuild -x'*pyc' -x'*.db' python-sasync-0.7/sasync/graph.py python-sasync-0.7.fixed/sasync/graph.py
--- python-sasync-0.7/sasync/graph.py 2010-01-28 13:41:24.000000000 -0500
+++ python-sasync-0.7.fixed/sasync/graph.py 2010-01-28 13:39:00.593716770 -0500
@@ -25,7 +25,7 @@
========
Provides transparently persistent versions of the four different I{NetworkX}
-graph objects: C{Graph}, C{DiGraph}, C{XGraph}, and C{XDiGraph}.
+graph objects: C{Graph}, C{DiGraph}, C{MultiGraph}, and C{MultiDiGraph}.
The persistent versions of those objects work just like the regular ones from
the I{NetworkX} package except that they are instantiated with an active
@@ -203,15 +203,15 @@
adjacencyLists = ('adj', 'pred')
-class XGraph(_Persistent, NX.XGraph):
+class MultiGraph(_Persistent, NX.MultiGraph):
"""
- Persistent version of L{NX.XGraph}
+ Persistent version of L{NX.MultiGraph}
"""
adjacencyLists = ('adj',)
-class XDiGraph(_Persistent, NX.XDiGraph):
+class MultiDiGraph(_Persistent, NX.MultiDiGraph):
"""
- Persistent version of L{NX.XDiGraph}
+ Persistent version of L{NX.MultiDiGraph}
"""
adjacencyLists = ('adj', 'pred')