[Python-modules-commits] r31864 - in packages/python-pygraphviz/trunk/debian (3 files)

morph at users.alioth.debian.org morph at users.alioth.debian.org
Sat Feb 14 12:43:44 UTC 2015


    Date: Saturday, February 14, 2015 @ 12:43:43
  Author: morph
Revision: 31864

* debian/{control, rules}
  - provide py3k packages

Modified:
  packages/python-pygraphviz/trunk/debian/changelog
  packages/python-pygraphviz/trunk/debian/control
  packages/python-pygraphviz/trunk/debian/rules

Modified: packages/python-pygraphviz/trunk/debian/changelog
===================================================================
--- packages/python-pygraphviz/trunk/debian/changelog	2015-02-14 11:05:08 UTC (rev 31863)
+++ packages/python-pygraphviz/trunk/debian/changelog	2015-02-14 12:43:43 UTC (rev 31864)
@@ -1,3 +1,10 @@
+python-pygraphviz (1.3~rc2-2) UNRELEASED; urgency=medium
+
+  * debian/{control, rules}
+    - provide py3k packages
+
+ -- Sandro Tosi <morph at debian.org>  Sat, 14 Feb 2015 12:43:28 +0000
+
 python-pygraphviz (1.3~rc2-1) unstable; urgency=medium
 
   * New upstream release candidate

Modified: packages/python-pygraphviz/trunk/debian/control
===================================================================
--- packages/python-pygraphviz/trunk/debian/control	2015-02-14 11:05:08 UTC (rev 31863)
+++ packages/python-pygraphviz/trunk/debian/control	2015-02-14 12:43:43 UTC (rev 31864)
@@ -3,9 +3,10 @@
 Priority: optional
 Maintainer: Sandro Tosi <morph at debian.org>
 Uploaders: Debian Python Modules Team <python-modules-team at lists.alioth.debian.org>
-Build-Depends: debhelper (>= 9), dh-python, python-all-dev (>= 2.3.5-11), python-all-dbg, libgraphviz-dev, python-setuptools, pkg-config, graphviz, python-nose
+Build-Depends: debhelper (>= 9), dh-python, python-all-dev (>= 2.3.5-11), python-all-dbg, python3-all-dev, python3-all-dbg, libgraphviz-dev, python-setuptools, python3-setuptools, pkg-config, graphviz, python-nose, python3-nose
 Standards-Version: 3.9.6
-XS-Python-Version: >= 2.5
+X-Python-Version: >= 2.5
+X-Python3-Version: >= 3.2
 Homepage: http://networkx.lanl.gov/pygraphviz/
 Vcs-Svn: svn://anonscm.debian.org/python-modules/packages/python-pygraphviz/trunk/
 Vcs-Browser: http://anonscm.debian.org/viewvc/python-modules/packages/python-pygraphviz/trunk/
@@ -20,6 +21,18 @@
  With Pygraphviz you can create, edit, read, write, and draw graphs using
  Python to access the Graphviz graph data structure and layout algorithms.
 
+Package: python3-pygraphviz
+Architecture: any
+Depends: ${python3:Depends}, ${shlibs:Depends}, graphviz (>= 2.16), ${misc:Depends}
+Description: Python interface to the Graphviz graph layout and visualization package (Python 3)
+ Pygraphviz is a Python interface to the Graphviz graph layout and
+ visualization package.
+ .
+ With Pygraphviz you can create, edit, read, write, and draw graphs using
+ Python to access the Graphviz graph data structure and layout algorithms.
+ .
+ This package contains the Python 3 version of python-pygraphviz.
+
 Package: python-pygraphviz-dbg
 Priority: extra
 Section: debug
@@ -33,3 +46,17 @@
  Python to access the Graphviz graph data structure and layout algorithms.
  .
  This package contains the debug extension for python-pygraphviz.
+
+Package: python3-pygraphviz-dbg
+Priority: extra
+Section: debug
+Architecture: any
+Depends: ${misc:Depends}, python3-pygraphviz (= ${binary:Version}), python3-dbg, ${shlibs:Depends}
+Description: Python interface to the Graphviz graph layout and visualization package (py3k debug extension)
+ Pygraphviz is a Python interface to the Graphviz graph layout and
+ visualization package.
+ .
+ With Pygraphviz you can create, edit, read, write, and draw graphs using
+ Python to access the Graphviz graph data structure and layout algorithms.
+ .
+ This package contains the debug extension for python3-pygraphviz.

Modified: packages/python-pygraphviz/trunk/debian/rules
===================================================================
--- packages/python-pygraphviz/trunk/debian/rules	2015-02-14 11:05:08 UTC (rev 31863)
+++ packages/python-pygraphviz/trunk/debian/rules	2015-02-14 12:43:43 UTC (rev 31864)
@@ -1,20 +1,33 @@
 #!/usr/bin/make -f
 
 PYTHON2=$(shell pyversions -r)
+PYTHON3=$(shell py3versions -r)
 
 %:
-	dh  $@ --with python2
+	dh  $@ --with python2,python3
 
 override_dh_install:
 	set -e; \
 	for python in $(PYTHON2); do \
 		$$python setup.py install --install-layout=deb --root=$(CURDIR)/debian/python-pygraphviz; \
-                $$python-dbg setup.py install --install-layout=deb --root=$(CURDIR)/debian/python-pygraphviz-dbg; \
+		$$python-dbg setup.py install --install-layout=deb --root=$(CURDIR)/debian/python-pygraphviz-dbg; \
 	done
+	for python in $(PYTHON3); do \
+		$$python setup.py install --install-layout=deb --root=$(CURDIR)/debian/python3-pygraphviz; \
+		$$python-dbg setup.py install --install-layout=deb --root=$(CURDIR)/debian/python3-pygraphviz-dbg; \
+	done
 
+override_dh_auto_build:
+	set -e; \
+	for python in $(PYTHON2) $(PYTHON3); do \
+		$$python setup.py build; \
+		$$python-dbg setup.py build; \
+	done
+
 override_dh_strip:
 ifeq (,$(filter nostrip,$(DEB_BUILD_OPTIONS)))
 	dh_strip -ppython-pygraphviz --dbg-package=python-pygraphviz-dbg
+	dh_strip -ppython3-pygraphviz --dbg-package=python3-pygraphviz-dbg
 endif
 
 override_dh_installexamples:
@@ -26,12 +39,12 @@
 override_dh_auto_test:
 ifeq ($(filter nocheck,$(DEB_BUILD_OPTIONS)),)
 	set -e; \
-	for python in $(PYTHON2); do \
-		LIB=$$($$python -c "from distutils.command.build import build ; from distutils.core import Distribution ; b = build(Distribution()) ; b.finalize_options() ; print (b.build_purelib)") ; \
+	for python in $(PYTHON2) $(PYTHON3); do \
+		LIB=$$($$python -c "from distutils.command.build import build ; from distutils.core import Distribution ; b = build(Distribution()) ; b.finalize_options() ; print (b.build_platlib)") ; \
 		touch $(CURDIR)/$$LIB/pygraphviz/tests/__init__py ; \
 		cd build ; $$python -c "import sys ; sys.path.insert(0, '$(CURDIR)/$$LIB') ; import pygraphviz as t ; t.test()" ; cd .. ; \
 		rm $(CURDIR)/$$LIB/pygraphviz/tests/__init__py ; \
-		LIB=$$($$python-dbg -c "from distutils.command.build import build ; from distutils.core import Distribution ; b = build(Distribution()) ; b.finalize_options() ; print (b.build_purelib)") ; \
+		LIB=$$($$python-dbg -c "from distutils.command.build import build ; from distutils.core import Distribution ; b = build(Distribution()) ; b.finalize_options() ; print (b.build_platlib)") ; \
 		touch $(CURDIR)/$$LIB/pygraphviz/tests/__init__py ; \
 		cd build ; $$python-dbg -c "import sys ; sys.path.insert(0, '$(CURDIR)/$$LIB') ; import pygraphviz as t ; t.test()" ; cd .. ; \
 		rm $(CURDIR)/$$LIB/pygraphviz/tests/__init__py ; \




More information about the Python-modules-commits mailing list