[Python-modules-commits] r22567 - in packages/python-graph/trunk/debian (3 files)
morph at users.alioth.debian.org
morph at users.alioth.debian.org
Sat Aug 25 22:37:08 UTC 2012
Date: Saturday, August 25, 2012 @ 22:37:06
Author: morph
Revision: 22567
provide Python 3 package
Modified:
packages/python-graph/trunk/debian/changelog
packages/python-graph/trunk/debian/control
packages/python-graph/trunk/debian/rules
Modified: packages/python-graph/trunk/debian/changelog
===================================================================
--- packages/python-graph/trunk/debian/changelog 2012-08-25 19:59:41 UTC (rev 22566)
+++ packages/python-graph/trunk/debian/changelog 2012-08-25 22:37:06 UTC (rev 22567)
@@ -13,8 +13,9 @@
- pass the python interpreter when running tests
* debian/{control, rules}
- build, test and install for all supported python2.x versions
+ - provide Python 3 package
- -- Sandro Tosi <morph at debian.org> Sat, 25 Aug 2012 21:59:07 +0200
+ -- Sandro Tosi <morph at debian.org> Sun, 26 Aug 2012 00:35:33 +0200
python-graph (1.8.1-1) unstable; urgency=low
Modified: packages/python-graph/trunk/debian/control
===================================================================
--- packages/python-graph/trunk/debian/control 2012-08-25 19:59:41 UTC (rev 22566)
+++ packages/python-graph/trunk/debian/control 2012-08-25 22:37:06 UTC (rev 22567)
@@ -4,12 +4,13 @@
Maintainer: Debian Python Modules Team <python-modules-team at lists.alioth.debian.org>
Uploaders: Sandro Tosi <morph at debian.org>
Build-Depends: debhelper (>= 7.0.50~)
-Build-Depends-Indep: python-support, python-all (>= 2.5.3-1~), python-epydoc, python-setuptools, python-pydot
+Build-Depends-Indep: python-support, python-all (>= 2.5.3-1~), python3-all, python-epydoc, python-setuptools, python-pydot
Standards-Version: 3.9.3
Homepage: http://code.google.com/p/python-graph/
Vcs-Svn: svn://svn.debian.org/svn/python-modules/packages/python-graph/trunk/
Vcs-Browser: http://svn.debian.org/viewsvn/python-modules/packages/python-graph/trunk/
X-Python-Version: all
+X-Python3-Version: all
Package: python-pygraph
Architecture: all
@@ -41,3 +42,38 @@
* 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.
Modified: packages/python-graph/trunk/debian/rules
===================================================================
--- packages/python-graph/trunk/debian/rules 2012-08-25 19:59:41 UTC (rev 22566)
+++ packages/python-graph/trunk/debian/rules 2012-08-25 22:37:06 UTC (rev 22567)
@@ -2,13 +2,14 @@
# -*- makefile -*-
PY2VERS := $(shell pyversions -s)
+PY3VERS := $(shell py3versions -s)
%:
dh $@
override_dh_auto_build:
set -e ; \
- for python in $(PY2VERS); do \
+ for python in $(PY2VERS) $(PY3VERS); do \
cd core ; $$python setup.py build ; cd .. ; \
done
@@ -17,9 +18,9 @@
override_dh_auto_test:
ifeq ($(filter nocheck,$(DEB_BUILD_OPTIONS)),)
set -e ; \
- for python in $(PY2VERS); do \
+ 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") ; \
+ 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
@@ -30,7 +31,15 @@
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
More information about the Python-modules-commits
mailing list