[med-svn] [python-fitbit] 12/13: Add Sphinx documentation into the package
Iain Learmonth
irl-guest at moszumanska.debian.org
Mon Feb 3 21:25:54 UTC 2014
This is an automated email from the git hooks/post-receive script.
irl-guest pushed a commit to branch master
in repository python-fitbit.
commit 5f56f5bd3a284be0d0d33377e3caa34975ee0f20
Author: Iain R. Learmonth <irl at fsfe.org>
Date: Mon Feb 3 20:56:23 2014 +0000
Add Sphinx documentation into the package
---
debian/control | 4 ++--
debian/docs | 1 +
debian/python-fitbit.doc-base | 9 +++++++++
debian/python-fitbit.links | 2 ++
debian/python-markdown-doc.docs | 1 +
debian/rules | 5 +++++
6 files changed, 20 insertions(+), 2 deletions(-)
diff --git a/debian/control b/debian/control
index 13701e3..2f7ab9d 100644
--- a/debian/control
+++ b/debian/control
@@ -1,5 +1,5 @@
Source: python-fitbit
-Section: science
+Section: python
Priority: optional
Maintainer: Debian Med Packaging Team <debian-med-packaging at lists.alioth.debian.org>
Uploaders: Andreas Tille <tille at debian.org>, Iain R. Learmonth <irl at fsfe.org>
@@ -12,7 +12,7 @@ X-Python-Version: >= 2.6
Package: python-fitbit
Architecture: all
-Depends: ${python:Depends}, ${sphinxdoc:Depends}, ${misc:Depends}
+Depends: ${python:Depends}, ${sphinxdoc:Depends}, ${misc:Depends}, libjs-jquery, libjs-underscore
Description: FitBit REST API Client Implementation
A Python module containing an implementation of a client for the FitBit
REST API. It uses oAuth for authentication, it supports both us and si
diff --git a/debian/docs b/debian/docs
new file mode 100644
index 0000000..6d28621
--- /dev/null
+++ b/debian/docs
@@ -0,0 +1 @@
+build/html
diff --git a/debian/python-fitbit.doc-base b/debian/python-fitbit.doc-base
new file mode 100644
index 0000000..d09106b
--- /dev/null
+++ b/debian/python-fitbit.doc-base
@@ -0,0 +1,9 @@
+Document: python3-fitbitscraper
+Title: Python-Fitbit Documentation
+Author: ORCAS
+Abstract: This manual describes the functions provided by the Python FitBit REST API client.
+Section: Programming
+
+Format: html
+Index: /usr/share/doc/python-fitbit/html/index.html
+Files: /usr/share/doc/python-fitbit/html/*.html
diff --git a/debian/python-fitbit.links b/debian/python-fitbit.links
new file mode 100644
index 0000000..7e4be00
--- /dev/null
+++ b/debian/python-fitbit.links
@@ -0,0 +1,2 @@
+usr/share/javascript/jquery/jquery.js usr/share/doc/python-fitbit/html/_static/jquery.js
+usr/share/javascript/underscore/underscore.js usr/share/doc/python-fitbit/html/_static/underscore.js
diff --git a/debian/python-markdown-doc.docs b/debian/python-markdown-doc.docs
new file mode 100644
index 0000000..6d28621
--- /dev/null
+++ b/debian/python-markdown-doc.docs
@@ -0,0 +1 @@
+build/html
diff --git a/debian/rules b/debian/rules
index 951cffb..321baa4 100755
--- a/debian/rules
+++ b/debian/rules
@@ -2,6 +2,11 @@
export PYBUILD_NAME=fitbit
+override_dh_auto_build:
+ dh_auto_build
+ PYTHONPATH=. http_proxy='localhost' sphinx-build -N -bhtml docs/ build/html # HTML generator
+ rm build/html/_static/jquery.js # Remove JQuery, this is linked in d/*.links
+ rm build/html/_static/underscore.js # Remove underscore, this is linked in d/*.links
%:
dh $@ --with python2 --buildsystem=pybuild
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-med/python-fitbit.git
More information about the debian-med-commit
mailing list