--- objgraph-1.2.orig/debian/control +++ objgraph-1.2/debian/control @@ -0,0 +1,23 @@ +Source: objgraph +Section: python +Priority: optional +Maintainer: Debian Python Modules Team +Uploaders: Stefano Rivera +Build-Depends: python-setuptools, quilt (>= 0.46-7), debhelper (>= 7.0.50~), python-support (>= 0.8), graphviz +Standards-Version: 3.8.4 +Homepage: http://mg.pov.lt/objgraph/ +Vcs-Svn: svn://svn.debian.org/python-modules/packages/objgraph/trunk/ +Vcs-Browser: http://svn.debian.org/viewsvn/python-modules/packages/objgraph/trunk/ +XS-Python-Version: all + +Package: python-objgraph +Architecture: all +Depends: ${misc:Depends}, ${python:Depends} +Recommends: graphviz +Description: Ad-hoc tools for drawing Python object reference graphs with graphviz + objgraph contains a set of utility functions for exploring Python objects in + memory. + . + It can be used for counting and statistics, finding root references + responsible for large object trees and export the object reference graphs in + graphviz format. --- objgraph-1.2.orig/debian/README.Debian +++ objgraph-1.2/debian/README.Debian @@ -0,0 +1,11 @@ +objgraph for Debian +------------------- + +The version of objgraph in Debian has been modified to never call xdot (as it +isn't available on Debian). + +Module-authors using this should be aware that certain functions (show_graph, +show_refs, show_backrefs) will create files called objects.dot and objects.png +in the current directory. Use these functions with caution. + + -- Stefano Rivera Fri, 29 Jan 2010 19:45:10 +0200 --- objgraph-1.2.orig/debian/changelog +++ objgraph-1.2/debian/changelog @@ -0,0 +1,11 @@ +objgraph (1.2-1~ppa+4~jaunty) jaunty; urgency=low + + * Build for jaunty + + -- Stefano Rivera Fri, 29 Jan 2010 22:50:13 +0200 + +objgraph (1.2-1) unstable; urgency=low + + * Initial release (Closes: #566798) + + -- Stefano Rivera Thu, 28 Jan 2010 13:00:22 +0200 --- objgraph-1.2.orig/debian/docs +++ objgraph-1.2/debian/docs @@ -0,0 +1,2 @@ +README.txt +debian/README.Debian --- objgraph-1.2.orig/debian/compat +++ objgraph-1.2/debian/compat @@ -0,0 +1 @@ +7 --- objgraph-1.2.orig/debian/watch +++ objgraph-1.2/debian/watch @@ -0,0 +1,3 @@ +version=3 + +http://pypi.python.org/packages/source/o/objgraph/objgraph-(.*).tar.gz --- objgraph-1.2.orig/debian/examples +++ objgraph-1.2/debian/examples @@ -0,0 +1 @@ +sample*-graph.png --- objgraph-1.2.orig/debian/copyright +++ objgraph-1.2/debian/copyright @@ -0,0 +1,43 @@ +Format-Specification: http://svn.debian.org/wsvn/dep/web/deps/dep5.mdwn?rev=135 +Name: objgraph +Maintainer: Marius Gedminas +Source: http://pypi.python.org/pypi/objgraph/ + +Files: * +Copyright: 2008, Marius Gedminas +License: MIT + Released under the MIT licence. + . + Permission is hereby granted, free of charge, to any person obtaining a copy of + this software and associated documentation files (the "Software"), to deal in + the Software without restriction, including without limitation the rights to + use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies + of the Software, and to permit persons to whom the Software is furnished to do + so, subject to the following conditions: + . + The above copyright notice and this permission notice shall be included in all + copies or substantial portions of the Software. + . + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE + SOFTWARE. + +Files: debian/* +Copyright: 2010, Stefano Rivera +License: GPL-2+ + This program is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2 of the License, or + (at your option) any later version. + . + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + General Public License for more details. + . + On Debian systems, the complete text of the GNU General Public License + version 2 can be found in the /usr/share/common-licenses/GPL-2 file. --- objgraph-1.2.orig/debian/rules +++ objgraph-1.2/debian/rules @@ -0,0 +1,8 @@ +#!/usr/bin/make -f + +%: + dh --with quilt $@ + +override_dh_auto_build: + dh_auto_build + python setup.py --build-images --- objgraph-1.2.orig/debian/source/format +++ objgraph-1.2/debian/source/format @@ -0,0 +1 @@ +1.0 --- objgraph-1.2.orig/debian/patches/excise-setuptools.diff +++ objgraph-1.2/debian/patches/excise-setuptools.diff @@ -0,0 +1,19 @@ +Description: We want a deterministic build. Don't try to use setuptools over + distutils. +Author: Stefano Rivera +Forwarded: not-needed +Last-Updated: 2010-01-25 + +--- a/setup.py ++++ b/setup.py +@@ -1,9 +1,6 @@ + import os, sys + +-try: +- from setuptools import setup +-except ImportError: +- from distutils import setup ++from distutils.core import setup + + + def relative(filename): --- objgraph-1.2.orig/debian/patches/dont-call-xdot.patch +++ objgraph-1.2/debian/patches/dont-call-xdot.patch @@ -0,0 +1,33 @@ +Description: xdot isn't packaged for Debian, so don't try to call it. +Author: Stefano Rivera +Forwarded: not-needed +Last-Update: 2010-01-29 + +--- a/objgraph.py ++++ b/objgraph.py +@@ -35,7 +35,7 @@ + + Object boxes are less crammed with useless information (such as IDs). + +-Spawns xdot if it is available. ++Spawns xdot if it is available [Disabled on Debian]. + """ + # Permission is hereby granted, free of charge, to any person obtaining a + # copy of this software and associated documentation files (the "Software"), +@@ -207,6 +207,7 @@ + + Produces a Graphviz .dot file and spawns a viewer (xdot) if one is + installed, otherwise converts the graph to a .png image. ++ The xdot functionality is disabled on Debian. + + Use ``max_depth`` and ``too_many`` to limit the depth and breadth of the + graph. +@@ -333,7 +334,7 @@ + print >> f, "}" + f.close() + print "Graph written to objects.dot (%d nodes)" % nodes +- if os.system('which xdot >/dev/null') == 0: ++ if False: # Disabled on Debian: os.system('which xdot >/dev/null') == 0: + print "Spawning graph viewer (xdot)" + os.system("xdot objects.dot &") + else: --- objgraph-1.2.orig/debian/patches/series +++ objgraph-1.2/debian/patches/series @@ -0,0 +1,2 @@ +dont-call-xdot.patch +excise-setuptools.diff