[Python-modules-commits] r2026 - in /packages/python-networkx/trunk/debian: ./ README.Debian changelog compat control copyright docs patches/ patches/10_doc_relocation patches/20_egg_support patches/series python-networkx.lintian-overrides pyversions rules watch

kibi-guest at users.alioth.debian.org kibi-guest at users.alioth.debian.org
Tue Apr 10 18:11:10 UTC 2007


Author: kibi-guest
Date: Tue Apr 10 18:11:10 2007
New Revision: 2026

URL: http://svn.debian.org/wsvn/python-modules/?sc=1&rev=2026
Log:
[svn-inject] Applying Debian modifications to trunk

Added:
    packages/python-networkx/trunk/debian/   (with props)
    packages/python-networkx/trunk/debian/README.Debian
    packages/python-networkx/trunk/debian/changelog
    packages/python-networkx/trunk/debian/compat
    packages/python-networkx/trunk/debian/control
    packages/python-networkx/trunk/debian/copyright
    packages/python-networkx/trunk/debian/docs
    packages/python-networkx/trunk/debian/patches/
    packages/python-networkx/trunk/debian/patches/10_doc_relocation
    packages/python-networkx/trunk/debian/patches/20_egg_support
    packages/python-networkx/trunk/debian/patches/series
    packages/python-networkx/trunk/debian/python-networkx.lintian-overrides
    packages/python-networkx/trunk/debian/pyversions
    packages/python-networkx/trunk/debian/rules   (with props)
    packages/python-networkx/trunk/debian/watch

Propchange: packages/python-networkx/trunk/debian/
------------------------------------------------------------------------------
    mergeWithUpstream = 1

Added: packages/python-networkx/trunk/debian/README.Debian
URL: http://svn.debian.org/wsvn/python-modules/packages/python-networkx/trunk/debian/README.Debian?rev=2026&op=file
==============================================================================
--- packages/python-networkx/trunk/debian/README.Debian (added)
+++ packages/python-networkx/trunk/debian/README.Debian Tue Apr 10 18:11:10 2007
@@ -1,0 +1,19 @@
+python-networkx for Debian
+--------------------------
+
+As stated in the changelog, I put in Recommends: all the packages needed
+to get the networkx/tests/test.py script run almost OK. We are still
+missing a pyyaml package (providing a way to allow ``import yaml'' from
+networkx code) to get the whole testsuite pass. Any hint appreciated.
+
+To run the test:
+  cd /usr/share/python-support/python-networkx/networkx/tests
+  python test.py
+
+To list the recommended packages:
+  LANG=C apt-cache show python-networkx | grep ^Recommends:
+
+After all these packages have been installed, you should have only one
+test failing, because of the above-mentioned missing yaml module.
+
+ -- Cyril Brulebois <cyril.brulebois at enst-bretagne.fr>, Fri, 27 Oct 2006 23:12:26 +0200

Added: packages/python-networkx/trunk/debian/changelog
URL: http://svn.debian.org/wsvn/python-modules/packages/python-networkx/trunk/debian/changelog?rev=2026&op=file
==============================================================================
--- packages/python-networkx/trunk/debian/changelog (added)
+++ packages/python-networkx/trunk/debian/changelog Tue Apr 10 18:11:10 2007
@@ -1,0 +1,69 @@
+python-networkx (0.33-1) unstable; urgency=low
+
+  * New upstream release.
+  * New features:
+     - draw edges with specified colormap
+     - more efficient version of Floyd's algorithm for all pairs shortest path
+     - include tests in source package (networkx/tests)
+     - include documentation in source package (doc)
+  * Bug fixes:
+     - refactored large modules into smaller code files
+     - degree(nbunch) now returns degrees in same order as nbunch
+     - degree() now works for multiedges=True
+     - update node_boundary and edge_boundary for efficiency
+     - edited documentation for graph classes, now mostly in info.py
+  * Removed python-numeric from Recommends: (obsolete, no longer supported).
+  * Added python-setuptools to Recommends: so that one can easily use the
+    following to run the testsuite.
+      import networkx
+      networkx.test()
+  * Changed watch file from sourceforge to upstream's homepage download
+    section.
+  * Changed the install rule so that there's no .pyc compilation at all, since
+    they are created during the postinst (and thus were deleted after the
+    ``setup.py install'' call).
+  * Switched from dpatch to quilt to ease patch management.
+
+  
+  Thanks to Oleksandr Moskalenko and Piotr Ożarowski for the time they spent
+  on advising me about the following items.
+  * Added the Debian Python Modules Team in the Uploaders field.
+  * Added a B-D on python-all-dev.
+  * Added egg support:
+     - added 20_egg_support to import setup from setuptools in setup.py;
+     - added the --single-version-externally-managed option to the
+       "setup.py install" call;
+     - tweaked debian/rules to strip out the version info from the egg
+       info dir;
+     - updated clean rule to delete the networkx.egg-info directory.
+  * Cleaned *.txt documentation files: license-related files are no longer
+    installed, superseded by debian/copyright, and Readme.txt is installed as
+    README.
+
+ -- Cyril Brulebois <cyril.brulebois at enst-bretagne.fr>  Fri, 06 Apr 2007 19:10:42 +0200
+
+python-networkx (0.32-2) unstable; urgency=low
+
+  * Added a Recommends: on python-pygraphviz | python-pydot, thanks to Seo
+    Sanghyeon for the notice about pydot (Closes: #401657).
+  * Fixed a typo in the debian/watch file.
+
+ -- Cyril Brulebois <cyril.brulebois at enst-bretagne.fr>  Wed,  6 Dec 2006 14:07:37 +0100
+
+python-networkx (0.32-1) unstable; urgency=low
+
+  * Initial release (Closes: #323398)
+  * Added an override for the tests/test.py file which is not executable due
+    to python-support (apparently). Interested users should be able to run
+    this script by prepending its name with the interpreter.
+  * Added ``2.4-'' into debian/pyversions since the installation fails when
+    byte-compiling for python2.3. Upstream will be reported that problem since
+    that release is said to be for python >= 2.3.
+  * Added Recommends: on all packages needed for the tests/test.py to run
+    almost OK. There's currently no package providing `yaml' so that having
+    ``import yaml'' in a python script is OK.
+  * Added a note about the previous point in the README.Debian file.
+  * Added Suggests: on all optional packages suggested by upstream.
+
+ -- Cyril Brulebois <cyril.brulebois at enst-bretagne.fr>  Wed, 25 Oct 2006 17:52:26 +0200
+

Added: packages/python-networkx/trunk/debian/compat
URL: http://svn.debian.org/wsvn/python-modules/packages/python-networkx/trunk/debian/compat?rev=2026&op=file
==============================================================================
--- packages/python-networkx/trunk/debian/compat (added)
+++ packages/python-networkx/trunk/debian/compat Tue Apr 10 18:11:10 2007
@@ -1,0 +1,1 @@
+5

Added: packages/python-networkx/trunk/debian/control
URL: http://svn.debian.org/wsvn/python-modules/packages/python-networkx/trunk/debian/control?rev=2026&op=file
==============================================================================
--- packages/python-networkx/trunk/debian/control (added)
+++ packages/python-networkx/trunk/debian/control Tue Apr 10 18:11:10 2007
@@ -1,0 +1,28 @@
+Source: python-networkx
+Section: graphics
+Priority: optional
+Maintainer: Cyril Brulebois <cyril.brulebois at enst-bretagne.fr>
+Build-Depends: debhelper (>= 5), python-all-dev, quilt (>= 0.40)
+Build-Depends-Indep: python-support (>= 0.4)
+Standards-Version: 3.7.2
+Uploaders: Debian Python Modules Team <python-modules-team at lists.alioth.debian.org>
+
+Package: python-networkx
+Architecture: all
+Depends: ${shlibs:Depends}, ${misc:Depends}, ${python:Depends}
+Provides: ${python:Provides}
+Recommends: python-numpy, python-scipy, python-pygraphviz | python-pydot, python-setuptools
+Description: tool to manipulate and study more than complex networks
+ NetworkX is a Python-based package for the creation, manipulation, and
+ study of the structure, dynamics, and functions of complex networks.
+ .
+ The structure of a graph or network is encoded in the edges (connections,
+ links, ties, arcs, bonds) between nodes (vertices, sites, actors). If
+ unqualified, by graph we mean a simple undirected graph, i.e. no
+ self-loops and no multiple edges are allowed. By a network we usually
+ mean a graph with weights (fields, properties) on nodes and/or edges.
+ .
+ The potential audience for NetworkX includes: mathematicians, physicists,
+ biologists, computer scientists, social scientists.
+ .
+ Homepage: https://networkx.lanl.gov/

Added: packages/python-networkx/trunk/debian/copyright
URL: http://svn.debian.org/wsvn/python-modules/packages/python-networkx/trunk/debian/copyright?rev=2026&op=file
==============================================================================
--- packages/python-networkx/trunk/debian/copyright (added)
+++ packages/python-networkx/trunk/debian/copyright Tue Apr 10 18:11:10 2007
@@ -1,0 +1,50 @@
+This package was debianized by Cyril Brulebois <cyril.brulebois at enst-bretagne.fr> on
+Wed, 25 Oct 2006 17:52:26 +0200.
+
+It was downloaded from https://networkx.lanl.gov/
+
+Upstream Authors and Copyright Holders:
+  Aric Hagberg <hagberg at lanl.gov>, 2004-2006
+  Pieter Swart <swart at lanl.gov>, 2004-2006
+  Dan Schult <dschult at colgate.edu>, 2004-2006
+
+Additional Authors having left their copyrights to the Upstream Authors and
+Copyright Holders listed just above:
+  A. L. Barabási and R. Albert
+  A. Steger and N. Wormald
+  Brendt Wohlberg
+  C. Gkantsidis, M. Mihail, and E. Zegura
+  Coen Bron and Joep Kerbosch
+  Fan Chung and L. Lu
+  Jean-Loup Guillaume and Matthieu Latapy
+  Jeong Han Kim and Van H. Vu
+  Katy Bold
+  Lun Li, David Alderson, Reiko Tanaka, John C. Doyle, and Walter Willinger
+  M. E. J. Newman
+  P. Holme and B. J. Kim
+  P. L. Krapivsky and S. Redner
+  Robert Sedgewick
+  Russel Merris
+
+License:
+
+    This package is free software; you can redistribute it and/or
+    modify it under the terms of the GNU Lesser General Public
+    License as published by the Free Software Foundation; either
+    version 2 of the License, or (at your option) any later version.
+
+    This package 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
+    Lesser General Public License for more details.
+
+    You should have received a copy of the GNU Lesser General Public
+    License along with this package; if not, write to the Free Software
+    Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301 USA
+
+On Debian systems, the complete text of the GNU Lesser General
+Public License can be found in `/usr/share/common-licenses/LGPL'.
+
+
+The Debian packaging is (C) 2006, Cyril Brulebois <cyril.brulebois at enst-bretagne.fr> and
+is licensed under the GPL, see `/usr/share/common-licenses/GPL'.

Added: packages/python-networkx/trunk/debian/docs
URL: http://svn.debian.org/wsvn/python-modules/packages/python-networkx/trunk/debian/docs?rev=2026&op=file
==============================================================================
--- packages/python-networkx/trunk/debian/docs (added)
+++ packages/python-networkx/trunk/debian/docs Tue Apr 10 18:11:10 2007
@@ -1,0 +1,1 @@
+README

Added: packages/python-networkx/trunk/debian/patches/10_doc_relocation
URL: http://svn.debian.org/wsvn/python-modules/packages/python-networkx/trunk/debian/patches/10_doc_relocation?rev=2026&op=file
==============================================================================
--- packages/python-networkx/trunk/debian/patches/10_doc_relocation (added)
+++ packages/python-networkx/trunk/debian/patches/10_doc_relocation Tue Apr 10 18:11:10 2007
@@ -1,0 +1,13 @@
+Index: networkx-0.33/setup.py
+===================================================================
+--- networkx-0.33.orig/setup.py	2007-04-10 18:05:32.000000000 +0200
++++ networkx-0.33/setup.py	2007-04-10 18:15:04.000000000 +0200
+@@ -31,7 +31,7 @@
+           "networkx.tests.drawing",
+           ]
+ 
+-docdirbase  = 'share/doc/networkx-%s' % version
++docdirbase  = 'share/doc/python-networkx'
+ data = [(docdirbase, glob("doc/*.txt")),
+         (os.path.join(docdirbase, 'examples'),glob("doc/examples/*.py")),
+         (os.path.join(docdirbase, 'examples'),glob("doc/examples/*.dat")),

Added: packages/python-networkx/trunk/debian/patches/20_egg_support
URL: http://svn.debian.org/wsvn/python-modules/packages/python-networkx/trunk/debian/patches/20_egg_support?rev=2026&op=file
==============================================================================
--- packages/python-networkx/trunk/debian/patches/20_egg_support (added)
+++ packages/python-networkx/trunk/debian/patches/20_egg_support Tue Apr 10 18:11:10 2007
@@ -1,0 +1,12 @@
+Index: networkx-0.33/setup.py
+===================================================================
+--- networkx-0.33.orig/setup.py	2007-04-10 18:08:58.000000000 +0200
++++ networkx-0.33/setup.py	2007-04-10 18:09:14.000000000 +0200
+@@ -11,6 +11,7 @@
+ if os.path.exists('MANIFEST'): os.remove('MANIFEST')
+ 
+ from distutils.core import setup
++from setuptools import setup
+ 
+ if sys.argv[-1] == 'setup.py':
+     print "To install, run 'python setup.py install'"

Added: packages/python-networkx/trunk/debian/patches/series
URL: http://svn.debian.org/wsvn/python-modules/packages/python-networkx/trunk/debian/patches/series?rev=2026&op=file
==============================================================================
--- packages/python-networkx/trunk/debian/patches/series (added)
+++ packages/python-networkx/trunk/debian/patches/series Tue Apr 10 18:11:10 2007
@@ -1,0 +1,2 @@
+10_doc_relocation
+20_egg_support

Added: packages/python-networkx/trunk/debian/python-networkx.lintian-overrides
URL: http://svn.debian.org/wsvn/python-modules/packages/python-networkx/trunk/debian/python-networkx.lintian-overrides?rev=2026&op=file
==============================================================================
--- packages/python-networkx/trunk/debian/python-networkx.lintian-overrides (added)
+++ packages/python-networkx/trunk/debian/python-networkx.lintian-overrides Tue Apr 10 18:11:10 2007
@@ -1,0 +1,7 @@
+# It looks like python-support doesn't like shipping files with +x, so
+# we are ignoring that warning.
+
+# The user who wants to run this script shouldn't find hard to:
+# ``python /path/to/tests/test.py''
+
+python-networkx: script-not-executable ./usr/share/python-support/python-networkx/networkx/tests/test.py

Added: packages/python-networkx/trunk/debian/pyversions
URL: http://svn.debian.org/wsvn/python-modules/packages/python-networkx/trunk/debian/pyversions?rev=2026&op=file
==============================================================================
--- packages/python-networkx/trunk/debian/pyversions (added)
+++ packages/python-networkx/trunk/debian/pyversions Tue Apr 10 18:11:10 2007
@@ -1,0 +1,1 @@
+2.4-

Added: packages/python-networkx/trunk/debian/rules
URL: http://svn.debian.org/wsvn/python-modules/packages/python-networkx/trunk/debian/rules?rev=2026&op=file
==============================================================================
--- packages/python-networkx/trunk/debian/rules (added)
+++ packages/python-networkx/trunk/debian/rules Tue Apr 10 18:11:10 2007
@@ -1,0 +1,119 @@
+#!/usr/bin/make -f
+# -*- makefile -*-
+# Sample debian/rules that uses debhelper.
+# This file was originally written by Joey Hess and Craig Small.
+# As a special exception, when this file is copied by dh-make into a
+# dh-make output file, you may use that output file without restriction.
+# This special exception was added by Craig Small in version 0.37 of dh-make.
+
+# Uncomment this to turn on verbose mode.
+#export DH_VERBOSE=1
+
+DEB_UPSTREAM_VERSION=$(shell dpkg-parsechangelog \
+        | grep ^Version: | cut -d ' ' -f 2 | cut -d '-' -f 1)
+
+PYSUPPORT_DIR=debian/python-networkx/usr/share/python-support/python-networkx
+
+
+include /usr/share/quilt/quilt.make
+
+
+CFLAGS = -Wall -g
+
+ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
+	CFLAGS += -O0
+else
+	CFLAGS += -O2
+endif
+
+configure: configure-stamp
+configure-stamp:
+	dh_testdir
+	# Add here commands to configure the package.
+	# Fix a missing +x
+	chmod +x networkx/tests/test.py
+	
+
+	touch configure-stamp
+
+
+build: patch build-stamp
+
+build-stamp: configure-stamp 
+	dh_testdir
+
+	# Add here commands to compile the package.
+	#$(MAKE)
+
+	touch $@
+
+clean: clean-patched unpatch
+
+clean-patched:
+	dh_testdir
+	dh_testroot
+	rm -f build-stamp configure-stamp
+
+	# Add here commands to clean up after the build process.
+	-rm -r build
+	-rm -r networkx.egg-info
+
+	dh_clean 
+
+install: build
+	dh_testdir
+	dh_testroot
+	dh_clean -k 
+	dh_installdirs
+
+	# Install w/o compiling *.pyc files
+	# Install egg-info directories (--single-... option)
+	python setup.py install --no-compile --root=$(CURDIR)/debian/python-networkx \
+		--single-version-externally-managed
+
+	# Install a lintian override about a missing +x, due to dh_pysupport
+	install -d $(CURDIR)/debian/python-networkx/usr/share/lintian/overrides
+	cp $(CURDIR)/debian/python-networkx.lintian-overrides \
+		$(CURDIR)/debian/python-networkx/usr/share/lintian/overrides/python-networkx
+
+	# Do some cleanup: delete unneeded files
+	for i in Credits.txt GNU_LGPL.txt Legal.txt; do \
+		rm $(CURDIR)/debian/python-networkx/usr/share/doc/python-networkx/$$i ; \
+	done
+
+	# Empty dir...
+	rmdir $(CURDIR)/debian/python-networkx/usr/share/doc/python-networkx/data
+
+	# Rename Readme.txt to README
+	mv $(CURDIR)/debian/python-networkx/usr/share/doc/python-networkx/Readme.txt \
+		$(CURDIR)/debian/python-networkx/usr/share/doc/python-networkx/README
+
+
+# Build architecture-independent files here.
+binary-indep: build install
+# We have nothing to do by default.
+
+# Build architecture-dependent files here.
+binary-arch: build install
+	dh_testdir
+	dh_testroot
+	dh_installchangelogs 
+	dh_installdocs
+	dh_installexamples
+#	dh_install
+	dh_pysupport
+	mv ${PYSUPPORT_DIR}/networkx-${DEB_UPSTREAM_VERSION}-py[0-9].[0-9].egg-info \
+		${PYSUPPORT_DIR}/networkx-${DEB_UPSTREAM_VERSION}.egg-info
+	dh_installman
+	dh_link
+	dh_strip
+	dh_compress
+#	dh_makeshlibs
+	dh_installdeb
+	dh_shlibdeps
+	dh_gencontrol
+	dh_md5sums
+	dh_builddeb
+
+binary: binary-indep binary-arch
+.PHONY: build clean binary-indep binary-arch binary install configure

Propchange: packages/python-networkx/trunk/debian/rules
------------------------------------------------------------------------------
    svn:executable = *

Added: packages/python-networkx/trunk/debian/watch
URL: http://svn.debian.org/wsvn/python-modules/packages/python-networkx/trunk/debian/watch?rev=2026&op=file
==============================================================================
--- packages/python-networkx/trunk/debian/watch (added)
+++ packages/python-networkx/trunk/debian/watch Tue Apr 10 18:11:10 2007
@@ -1,0 +1,4 @@
+# Compulsory line, this is a version 3 file
+version=3
+
+http://networkx.lanl.gov/download/networkx-(.*).tar.gz




More information about the Python-modules-commits mailing list