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

morph at users.alioth.debian.org morph at users.alioth.debian.org
Sat Feb 14 17:43:06 UTC 2015


    Date: Saturday, February 14, 2015 @ 17:43:04
  Author: morph
Revision: 31866

* debian/{control, docs, rules}
  - build documentation and provide a -doc package

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

Modified: packages/python-pygraphviz/trunk/debian/changelog
===================================================================
--- packages/python-pygraphviz/trunk/debian/changelog	2015-02-14 12:44:28 UTC (rev 31865)
+++ packages/python-pygraphviz/trunk/debian/changelog	2015-02-14 17:43:04 UTC (rev 31866)
@@ -4,8 +4,10 @@
     - provide py3k packages
   * debian/watch
     - use PyPI redirector
+  * debian/{control, docs, rules}
+    - build documentation and provide a -doc package
 
- -- Sandro Tosi <morph at debian.org>  Sat, 14 Feb 2015 12:44:12 +0000
+ -- Sandro Tosi <morph at debian.org>  Sat, 14 Feb 2015 17:42:47 +0000
 
 python-pygraphviz (1.3~rc2-1) unstable; urgency=medium
 

Modified: packages/python-pygraphviz/trunk/debian/control
===================================================================
--- packages/python-pygraphviz/trunk/debian/control	2015-02-14 12:44:28 UTC (rev 31865)
+++ packages/python-pygraphviz/trunk/debian/control	2015-02-14 17:43:04 UTC (rev 31866)
@@ -3,7 +3,7 @@
 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, python3-all-dev, python3-all-dbg, libgraphviz-dev, python-setuptools, python3-setuptools, pkg-config, graphviz, python-nose, python3-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, python-sphinx
 Standards-Version: 3.9.6
 X-Python-Version: >= 2.5
 X-Python3-Version: >= 3.2
@@ -60,3 +60,16 @@
  Python to access the Graphviz graph data structure and layout algorithms.
  .
  This package contains the debug extension for python3-pygraphviz.
+
+Package: python-pygraphviz-doc
+Section: doc
+Architecture: all
+Depends: ${misc:Depends}, ${sphinxdoc:Depends}
+Description: Python interface to the Graphviz graph layout and visualization package (doc)
+ 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 documentation for python-pygraphviz.

Deleted: packages/python-pygraphviz/trunk/debian/docs
===================================================================
--- packages/python-pygraphviz/trunk/debian/docs	2015-02-14 12:44:28 UTC (rev 31865)
+++ packages/python-pygraphviz/trunk/debian/docs	2015-02-14 17:43:04 UTC (rev 31866)
@@ -1 +0,0 @@
-README.txt

Modified: packages/python-pygraphviz/trunk/debian/rules
===================================================================
--- packages/python-pygraphviz/trunk/debian/rules	2015-02-14 12:44:28 UTC (rev 31865)
+++ packages/python-pygraphviz/trunk/debian/rules	2015-02-14 17:43:04 UTC (rev 31866)
@@ -4,7 +4,7 @@
 PYTHON3=$(shell py3versions -r)
 
 %:
-	dh  $@ --with python2,python3
+	dh  $@ --with python2,python3,sphinxdoc
 
 override_dh_install:
 	set -e; \
@@ -23,6 +23,7 @@
 		$$python setup.py build; \
 		$$python-dbg setup.py build; \
 	done
+	PYTHONPATH=$(CURDIR)/`python -c "from distutils.command.build import build ; from distutils.core import Distribution ; b = build(Distribution()) ; b.finalize_options() ; print (b.build_platlib)"` $(MAKE) -C doc html
 
 override_dh_strip:
 ifeq (,$(filter nostrip,$(DEB_BUILD_OPTIONS)))
@@ -31,10 +32,13 @@
 endif
 
 override_dh_installexamples:
-	dh_installexamples -ppython-pygraphviz examples/*
+	dh_installexamples -ppython-pygraphviz-doc examples/*
 
 override_dh_installdocs:
-	dh_installdocs --link-doc=python-pygraphviz
+	dh_installdocs -ppython-pygraphviz-dbg --link-doc=python-pygraphviz
+	dh_installdocs -ppython3-pygraphviz-dbg --link-doc=python3-pygraphviz
+	dh_installdocs
+	dh_installdocs -ppython-pygraphviz-doc doc/build/html README.txt
 
 override_dh_auto_test:
 ifeq ($(filter nocheck,$(DEB_BUILD_OPTIONS)),)




More information about the Python-modules-commits mailing list