[Python-modules-commits] [python-click-log] 04/08: Build documentation
Filip Pytloun
fpytloun-guest at moszumanska.debian.org
Tue Aug 9 10:06:06 UTC 2016
This is an automated email from the git hooks/post-receive script.
fpytloun-guest pushed a commit to branch master
in repository python-click-log.
commit c44987ae0b2a5182d0edf90366b40f996ff24ddd
Author: Filip Pytloun <filip at pytloun.cz>
Date: Tue Aug 9 11:35:28 2016 +0200
Build documentation
---
debian/changelog | 2 +-
debian/control | 18 +++++++++++++++++-
debian/python-click-log-doc.doc-base | 9 +++++++++
debian/rules | 8 +++++++-
4 files changed, 34 insertions(+), 3 deletions(-)
diff --git a/debian/changelog b/debian/changelog
index bca7601..6aae560 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -2,4 +2,4 @@ python-click-log (0.1.4-1) unstable; urgency=low
* initial release (Closes: #xxx)
- -- Filip Pytloun <filip at pytloun.cz> Thu, 27 Aug 2015 09:39:53 +0200
+ -- Filip Pytloun <filip at pytloun.cz> Tue, 09 Aug 2016 11:43:50 +0200
diff --git a/debian/control b/debian/control
index aa0a675..53f2d4c 100644
--- a/debian/control
+++ b/debian/control
@@ -1,7 +1,7 @@
Source: python-click-log
Maintainer: Debian Python Modules Team <python-modules-team at lists.alioth.debian.org>
Uploaders: Filip Pytloun <filip at pytloun.cz>
-Section: utils
+Section: python
Priority: optional
Build-Depends: debhelper (>= 9),
dh-python,
@@ -11,6 +11,8 @@ Build-Depends: debhelper (>= 9),
python3-click,
python-setuptools,
python3-setuptools,
+ python-sphinx,
+ python3-sphinx,
Standards-Version: 3.9.8
Testsuite: autopkgtest-pkg-python
Homepage: https://github.com/click-contrib/click-log
@@ -42,3 +44,17 @@ Description: Logging integration for Click - Python 3.x
This is where click-log comes in.
.
This package contains the Python 3.x module.
+
+Package: python-click-log-doc
+Section: doc
+Architecture: all
+Depends: ${misc:Depends},
+ ${sphinxdoc:Depends}
+Description: Logging integration for Click - documentation
+ Partly because Python’s logging module aims to be so generic, it doesn’t come
+ with sensible defaults for CLI applications. At some point you might also want
+ to expose more logging levels through more options, at which point the
+ boilerplate code grows even more.
+ This is where click-log comes in.
+ .
+ This package contains the documentation for python module.
diff --git a/debian/python-click-log-doc.doc-base b/debian/python-click-log-doc.doc-base
new file mode 100644
index 0000000..f96dea5
--- /dev/null
+++ b/debian/python-click-log-doc.doc-base
@@ -0,0 +1,9 @@
+Document: python-click-log-doc
+Title: Click-log Documentation
+Author: Markus Unterwaditzer
+Abstract: Sphinx documentation for Click-log
+Section: Programming/Python
+
+Format: HTML
+Index: /usr/share/doc/python-click-log-doc/html/index.html
+Files: /usr/share/doc/python-click-log-doc/html/*
diff --git a/debian/rules b/debian/rules
index 0385bf9..0e957dc 100755
--- a/debian/rules
+++ b/debian/rules
@@ -4,4 +4,10 @@ VER ?= $(shell dpkg-parsechangelog -SVersion)
export PYBUILD_NAME=click-log
%:
- dh $@ --with python2,python3 --buildsystem=pybuild
+ dh $@ --with python2,python3,sphinxdoc --buildsystem=pybuild
+
+override_dh_sphinxdoc:
+ifeq (,$(findstring nodocs, $(DEB_BUILD_OPTIONS)))
+ PYTHONPATH=. sphinx-build -b html docs $(CURDIR)/debian/python-click-log-doc/usr/share/doc/python-click-log-doc/html
+ dh_sphinxdoc -O--buildsystem=python_distutils
+endif
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/python-modules/packages/python-click-log.git
More information about the Python-modules-commits
mailing list