debian/0000755000000000000000000000000012222026504007161 5ustar debian/rules0000755000000000000000000000316512074772100010253 0ustar #!/usr/bin/make -f # -*- makefile -*- PY2VERS := $(shell pyversions -s) PY3VERS := $(shell py3versions -s) %: dh $@ --with=python3 override_dh_auto_build: set -e ; \ for python in $(PY2VERS) $(PY3VERS); do \ cd core ; $$python setup.py build ; cd .. ; \ done $(MAKE) docs override_dh_auto_test: ifeq ($(filter nocheck,$(DEB_BUILD_OPTIONS)),) set -e ; \ for python in $(PY2VERS) $(PY3VERS); do \ # retrive the lib path \ LIB=$$($$python -c "from distutils.command.build import build ; from distutils.core import Distribution ; b = build(Distribution()) ; b.finalize_options() ; print (b.build_purelib)") ; \ $(MAKE) tests PYTHON=$$python PYTHONPATH=../core/$$LIB ; \ done endif override_dh_auto_install: set -e ; \ for python in $(PY2VERS); do \ cd core ; $$python setup.py install --root=$(CURDIR)/debian/python-pygraph --install-layout=deb ; cd .. ; \ cd dot ; $$python setup.py install --root=$(CURDIR)/debian/python-pygraph --install-layout=deb ; cd .. ; \ done set -e ; \ for python in $(PY3VERS); do \ cd core ; $$python setup.py install --root=$(CURDIR)/debian/python3-pygraph --install-layout=deb ; cd .. ; \ cd dot ; $$python setup.py install --root=$(CURDIR)/debian/python3-pygraph --install-layout=deb ; cd .. ; \ done # clean up __pycache__ dirs, generated when running tests on the build dir find $(CURDIR)/debian/python3-pygraph -type d -name "__pycache__" | xargs rm -rf override_dh_installdocs: dh_installdocs docs override_dh_installexamples: dh_installexamples tests/*.py override_dh_python3: # else python3-pydot would have been added, which doesn't exist dh_python3 --no-guessing-deps debian/source/0000755000000000000000000000000012222026504010461 5ustar debian/source/format0000644000000000000000000000001411702620510011666 0ustar 3.0 (quilt) debian/control0000644000000000000000000000551312222020704010564 0ustar Source: python-graph Section: python Priority: optional Maintainer: Debian Python Modules Team Uploaders: Sandro Tosi Build-Depends: debhelper (>= 7.0.50~) Build-Depends-Indep: python-support, python-all (>= 2.5.3-1~), python3-all, python-epydoc, python-setuptools, python-pydot, python3-setuptools Standards-Version: 3.9.4 Homepage: http://code.google.com/p/python-graph/ Vcs-Svn: svn://anonscm.debian.org/python-modules/packages/python-graph/trunk/ Vcs-Browser: http://anonscm.debian.org/viewvc/python-modules/packages/python-graph/trunk/ X-Python-Version: all X-Python3-Version: all Package: python-pygraph Architecture: all Depends: ${python:Depends}, ${misc:Depends}, python-pydot, python-pkg-resources Suggests: libgv-python, python-pyparsing Description: library for working with graphs in Python This software provides a suitable data structure for representing graphs and a whole set of important algorithms. . Provided features and algorithms: . * Support for directed, undirected, weighted and non-weighted graphs * Support for hypergraphs * Canonical operations * XML import and export * DOT-Language output (for usage with Graphviz) * Random graph generation . * Accessibility (transitive closure) * Breadth-first search * Critical path algorithm * Cut-vertex and cut-edge identification * Cycle detection * Depth-first search * Heuristic search (A* algorithm) * Identification of connected components * Minimum spanning tree (Prim's algorithm) * Mutual-accessibility (strongly connected components) * Shortest path search (Dijkstra's algorithm) * Topological sorting * Transitive edge identification Package: python3-pygraph Architecture: all Depends: ${python3:Depends}, ${misc:Depends}, python3-pkg-resources #Depends: python-pydot Suggests: python3-pyparsing #Suggests: libgv-python, Description: library for working with graphs in Python (Python3) This software provides a suitable data structure for representing graphs and a whole set of important algorithms. . Provided features and algorithms: . * Support for directed, undirected, weighted and non-weighted graphs * Support for hypergraphs * Canonical operations * XML import and export * DOT-Language output (for usage with Graphviz) * Random graph generation . * Accessibility (transitive closure) * Breadth-first search * Critical path algorithm * Cut-vertex and cut-edge identification * Cycle detection * Depth-first search * Heuristic search (A* algorithm) * Identification of connected components * Minimum spanning tree (Prim's algorithm) * Mutual-accessibility (strongly connected components) * Shortest path search (Dijkstra's algorithm) * Topological sorting * Transitive edge identification . This package contains the Python 3 version of pygraph. debian/compat0000644000000000000000000000000211125022726010362 0ustar 7 debian/python-pygraph.doc-base0000644000000000000000000000060411352461203013553 0ustar Document: python-pygraph Title: python-graph - A library for working with graphs in Python Author: Pedro Matiello and others Abstract: This software provides a suitable data structure for representing graphs and a whole set of important algorithms Section: Programming/Python Format: HTML Index: /usr/share/doc/python-pygraph/docs/index.html Files: /usr/share/doc/python-pygraph/docs/* debian/watch0000644000000000000000000000020011702565135010214 0ustar version=3 http://code.google.com/p/python-graph/downloads/list //python-graph.googlecode.com/files/python-graph-([0-9.]*)\.zip debian/patches/0000755000000000000000000000000012222026504010610 5ustar debian/patches/40_dont_clean_when_building_docs.patch0000644000000000000000000000055112016472760020163 0ustar Description: Don't try to clean when building docs Author: Sandro Tosi Forwarded: not-needed --- a/Makefile +++ b/Makefile @@ -44,7 +44,7 @@ sdist-dot: clean # Docs --------------------------------------------------------------- -docs: cleanpyc +docs: rm -rf ${DOCS_DIR} ${TEMP} mkdir -p ${TEMP} cp -R ${CORE_DIR}/pygraph ${TEMP} debian/patches/20_remove_reset.patch0000644000000000000000000000101512016170146014631 0ustar Author: Sandro Tosi Description: Don't use reset to clean the screen before running tests (play bad with our build systems) --- a/Makefile +++ b/Makefile @@ -63,13 +63,10 @@ docs: cleanpyc # Tests -------------------------------------------------------------- -test-pre: - reset - -test: test-pre +test: export PYTHONPATH=${PYTHONPATH} && cd ${TESTS_DIR} && python testrunner.py -test3: test-pre +test3: export PYTHONPATH=${PYTHONPATH} && cd ${TESTS_DIR} && python3 testrunner.py tests: test debian/patches/30_pass_python_to_makefile.patch0000644000000000000000000000155612016226320017047 0ustar Description: Pass the wanted python interpreted when running tests Author: Sandro Tosi Forwarded: http://code.google.com/p/python-graph/issues/detail?id=110 --- a/Makefile +++ b/Makefile @@ -10,6 +10,8 @@ TESTS_DIR="tests/" DOCS_DIR="docs/" TEMP="temp/" PYTHONPATH="`pwd`/core:`pwd`/dot" +PYTHON=python +PYTHON3=python3 # General ------------------------------------------------------------ @@ -64,10 +66,10 @@ docs: cleanpyc # Tests -------------------------------------------------------------- test: - export PYTHONPATH=${PYTHONPATH} && cd ${TESTS_DIR} && python testrunner.py + export PYTHONPATH=${PYTHONPATH} && cd ${TESTS_DIR} && ${PYTHON} testrunner.py test3: - export PYTHONPATH=${PYTHONPATH} && cd ${TESTS_DIR} && python3 testrunner.py + export PYTHONPATH=${PYTHONPATH} && cd ${TESTS_DIR} && ${PYTHON3} testrunner.py tests: test debian/patches/series0000644000000000000000000000013612016472760012037 0ustar 20_remove_reset.patch 30_pass_python_to_makefile.patch 40_dont_clean_when_building_docs.patch debian/changelog0000644000000000000000000001420012222026467011040 0ustar python-graph (1.8.2-4) unstable; urgency=low [ Jakub Wilk ] * Use canonical URIs for Vcs-* fields. [ Sandro Tosi ] * debian/control - bump Standards-Version to 3.9.4 (no changes needed) -- Sandro Tosi Sun, 29 Sep 2013 15:37:51 +0200 python-graph (1.8.2-3) experimental; urgency=low * debian/rules - byte-compile py3k module; thanks to Jakub Wilk for the report and fix; Closes: #697112 * debian/copyright - extended packaging copyright years -- Sandro Tosi Mon, 14 Jan 2013 14:24:40 +0100 python-graph (1.8.2-2) experimental; urgency=low * debian/control - replace python3-pkg-resources with python3-setuptools in b-d-i, needed to build the package; thanks to Jakub Wilk for the report; Closes: #686385 -- Sandro Tosi Fri, 31 Aug 2012 23:22:11 +0200 python-graph (1.8.2-1) experimental; urgency=low * New upstream release * debian/copyright - updated upstream copyright years * debian/patches/20_remove_reset.patch - updated to reflect new upstream code * debian/control - bump Standards-Version to 3.9.3 (no changes needed) - added python3-pkg-resources to b-d-i, needed to run tests * debian/rules - run tests in the right target, honoring 'nocheck' * debian/patches/30_pass_python_to_makefile.patch - pass the python interpreter when running tests * debian/{control, rules} - build, test and install for all supported python2.x versions - provide Python 3 package * debian/patches/40_dont_clean_when_building_docs.patch - don't clean when building documentation -- Sandro Tosi Sun, 26 Aug 2012 21:29:23 +0200 python-graph (1.8.1-1) unstable; urgency=low * New upstream release * debian/control - bump Standards-Version to 3.9.2 (no changes needed) - rename field XS-P-V to X-P-V * debian/watch - update to reflecg Google Code changes * debian/copyright - updated copyright years * debian/patches/10_exceptions_catch_fix.dpatch - removed, we don't support 2.5 anymore * Switch to 3.0 (quilt) source format * Switch to compat debian/rules format -- Sandro Tosi Mon, 09 Jan 2012 18:59:30 +0100 python-graph (1.8.0-2) unstable; urgency=low * debian/control - added python-pkg-resources to Depends; thanks to Alexander Heinlein for the report; Closes: #614414 - remove Replaces/Provides/Conflict with python-graph << 1.6.1-1, no more needed - removed XB-P-V, not used -- Sandro Tosi Sun, 24 Apr 2011 16:30:48 +0200 python-graph (1.8.0-1) experimental; urgency=low * New upstream release * debian/copyright - added new upstream author * debian/control - bump Standards-Version to 3.9.1 (no changes needed) -- Sandro Tosi Sun, 17 Oct 2010 10:58:12 +0200 python-graph (1.7.0-1) unstable; urgency=low * New upstream release * debian/patches/20_remove_reset.dpatch - Don't use reset to clean the screen before running tests (play bad with our build systems) * debian/python-pygraph.doc-base - added doc-base registration -- Sandro Tosi Wed, 24 Mar 2010 20:06:14 +0100 python-graph (1.6.3-1) unstable; urgency=low * New upstream release * debian/patches/10_remove_doc_installation - removed, no more needed * debian/rules - upstream changed the build system, updated accordingly - detect build dir dinamically, to support both Python 2.5 and 2.6 - install also files under 'dot/' dir - install tests instead of examples (removed from upstream tarball) * debian/patches/10_exceptions_catch_fix.dpatch - added to catch exceptions in a way compatible with Python 2.5 * debian/control - bump Standards-Version to 3.8.4 (no changes needed) - suggests python-pyparsing, needed for dot support - fixed Provices/Provides typo - remove version from Provides field - drop 'python-graph' transitional package - updated long description * debian/copyright - extended packaging copyright years, fixing the legal notice too * debian/{control, rules} - pass '--install-layout=deb' to setup.py install calls, for Python 2.6 * debian/README.Debian - removed, no more needed -- Sandro Tosi Wed, 03 Mar 2010 07:14:12 +0100 python-graph (1.6.1-1) unstable; urgency=low * New upstream release - debian/{control, rules} + renamed bin pkg to python-pygraph due to module rename (python-graph is now a transitional pkg) * debian/control - bump Standards-Version to 3.8.3 (no changes needed) * debian/patches/10_remove_doc_installation.dpatch - adapted to new upstream code * debian/copyright - updated list of upstream copyright holders * debian/rules - use testrunner to execute unit tests -- Sandro Tosi Thu, 20 Aug 2009 01:03:44 +0200 python-graph (1.5.0-1) unstable; urgency=low * New upstream release * debian/copyright - updated copyright authors notice, removing all the copyright exceptions * debian/control - added python-pydot to Depends, and to b-d-i (for tests) * debian/patches/10_remove_doc_installation.dpatch - updated to new upstream code * bump Standards-Version to 3.8.1 (no changes needed) -- Sandro Tosi Mon, 18 May 2009 20:52:00 +0200 python-graph (1.4.2-1) unstable; urgency=low * New upstream release * debian/copyright - extended packaging copyright years - extended upstream copyright years - updated list of files with different copyright notices * debian/patches/10_remove_doc_installation.dpatch - adapted to new upstrem code * debian/patches/{20_fix_make_clean.dpatch, 30_fix_make_docs.dpatch} - removed since no more needed (due to upstream code changes) * debian/rules - changed location of test files * debian/{control, rules} - switch to python-support * debian/control - added python-setuptools to b-d-i -- Sandro Tosi Tue, 03 Mar 2009 20:11:38 +0100 python-graph (1.3.1-1) unstable; urgency=low * Initial release (Closes: #509722) -- Sandro Tosi Fri, 26 Dec 2008 15:04:30 +0100 debian/copyright0000644000000000000000000000431712074772166011142 0ustar This package was debianized by Sandro Tosi on Fri, 26 Dec 2008 00:07:15 +0100. It was downloaded from http://code.google.com/p/python-graph/ Upstream Author: Pedro Matiello Copyright: Copyright (c) 2007-2012 Pedro Matiello Eugen Zagorodniy Christian Muise Nathan Davis Paul Harrison Rhys Ulerich Roy Smith Salim Fadhley Tomaz Kovacic Zsolt Haraszti Johannes Reinhardt Juarez Bochi License: 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. The Debian packaging is Copyright (C) 2008-2013, Sandro Tosi and is licensed under the same term of the upstream code, see above.