[Python-modules-commits] [sortedcontainers] 07/08: Build and install documentation

Sandro Tosi morph at moszumanska.debian.org
Thu Dec 10 17:29:42 UTC 2015


This is an automated email from the git hooks/post-receive script.

morph pushed a commit to branch master
in repository sortedcontainers.

commit b4ec43e8a19d1b4259891582575bb25e5c22b501
Author: Sandro Tosi <morph at debian.org>
Date:   Thu Dec 10 17:23:01 2015 +0000

    Build and install documentation
---
 debian/changelog |  3 ++-
 debian/control   | 17 ++++++++++++++++-
 debian/rules     |  4 +++-
 3 files changed, 21 insertions(+), 3 deletions(-)

diff --git a/debian/changelog b/debian/changelog
index 4fb44c6..64e2652 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -9,8 +9,9 @@ sortedcontainers (1.4.4-1) UNRELEASED; urgency=medium
     - update for new upstream code
   * debian/{control, rules}
     - run tests at build time
+  * Build and install documentation
 
- -- Sandro Tosi <morph at debian.org>  Thu, 10 Dec 2015 16:52:51 +0000
+ -- Sandro Tosi <morph at debian.org>  Thu, 10 Dec 2015 17:22:50 +0000
 
 sortedcontainers (0.9.6-1) unstable; urgency=low
 
diff --git a/debian/control b/debian/control
index f4330f4..02d5d32 100644
--- a/debian/control
+++ b/debian/control
@@ -3,7 +3,7 @@ Section: python
 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), python-all, python3-all, dh-python, python-setuptools, python3-setuptools, python-nose, python3-nose
+Build-Depends: debhelper (>= 9), python-all, python3-all, dh-python, python-setuptools, python3-setuptools, python-nose, python3-nose, python-sphinx
 Standards-Version: 3.9.6
 Homepage: http://www.grantjenks.com/docs/sortedcontainers/
 Vcs-Git: git://anonscm.debian.org/python-modules/packages/sortedcontainers.git
@@ -12,6 +12,7 @@ Vcs-Browser: https://anonscm.debian.org/cgit/python-modules/packages/sortedconta
 Package: python-sortedcontainers
 Architecture: all
 Depends: ${python:Depends}, ${misc:Depends}
+Suggests: python-sortedcontainers-doc
 Description: sorted container types: SortedList, SortedDict, and SortedSet
  Python’s standard library is great until you need a sorted container type. Many
  will attest that you can get really far without one, but the moment you really
@@ -22,6 +23,7 @@ Description: sorted container types: SortedList, SortedDict, and SortedSet
 Package: python3-sortedcontainers
 Architecture: all
 Depends: ${python3:Depends}, ${misc:Depends}
+Suggests: python-sortedcontainers-doc
 Description: sorted container types: SortedList, SortedDict, and SortedSet (Python 3)
  Python’s standard library is great until you need a sorted container type. Many
  will attest that you can get really far without one, but the moment you really
@@ -30,3 +32,16 @@ Description: sorted container types: SortedList, SortedDict, and SortedSet (Pyth
  benchmarking.
  .
  This package contains the Python 3 version of sortedcontainers .
+
+Package: python-sortedcontainers-doc
+Architecture: all
+Section: doc
+Depends: ${misc:Depends}, ${sphinxdoc:Depends}
+Description: sorted container types: SortedList, SortedDict, and SortedSet (Documentation)
+ Python’s standard library is great until you need a sorted container type. Many
+ will attest that you can get really far without one, but the moment you really
+ need a sorted list, dict, or set, you’re faced with a dozen different
+ implementations, most using C-extensions without great documentation and
+ benchmarking.
+ .
+ This package contains the documentation for sortedcontainers Python module.
diff --git a/debian/rules b/debian/rules
index 428a16d..095d6fc 100755
--- a/debian/rules
+++ b/debian/rules
@@ -4,13 +4,14 @@ PY2VERS := $(shell pyversions -s)
 PY3VERS := $(shell py3versions -s)
 
 %:
-	dh $@ --with python2,python3
+	dh $@ --with python2,python3,sphinxdoc
 
 override_dh_auto_build:
 	set -e ; \
 	for python in $(PY2VERS) $(PY3VERS); do \
 		$$python setup.py build; \
 	done
+	$(MAKE) -C docs html
 
 override_dh_auto_install:
 	python  setup.py install --install-layout=deb --root=$(CURDIR)/debian/python-sortedcontainers
@@ -26,3 +27,4 @@ override_dh_auto_test:
 
 override_dh_installdocs:
 	dh_installdocs -A README.rst
+	dh_installdocs -ppython-sortedcontainers-doc docs/_build/html

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/python-modules/packages/sortedcontainers.git



More information about the Python-modules-commits mailing list