[med-svn] [python-fitbit] 01/04: Move documentation into a new package python-fitbit-doc

Dylan Aïssi bob.dybian-guest at moszumanska.debian.org
Sun Feb 4 15:22:21 UTC 2018


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

bob.dybian-guest pushed a commit to branch master
in repository python-fitbit.

commit 53d012a6895c3b8f578113a41a9c8f3c8dae6dd9
Author: Dylan Aïssi <bob.dybian at gmail.com>
Date:   Sun Feb 4 15:56:35 2018 +0100

    Move documentation into a new package python-fitbit-doc
---
 debian/changelog                                      |  6 ++++++
 debian/control                                        | 19 +++++++++++++++----
 ...hon-fitbit.doc-base => python-fitbit-doc.doc-base} |  4 ++--
 debian/{docs => python-fitbit-doc.docs}               |  0
 debian/python-fitbit.links                            |  2 --
 debian/python-markdown-doc.docs                       |  1 -
 debian/rules                                          | 10 ++++------
 7 files changed, 27 insertions(+), 15 deletions(-)

diff --git a/debian/changelog b/debian/changelog
index bca664a..1b4f5d4 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,9 @@
+python-fitbit (0.3.0-2) UNRELEASED; urgency=medium
+
+  * Move documentation into a new package python-fitbit-doc.
+
+ -- Dylan Aïssi <bob.dybian at gmail.com>  Sun, 04 Feb 2018 15:55:33 +0100
+
 python-fitbit (0.3.0-1) unstable; urgency=medium
 
   * New upstream release.
diff --git a/debian/control b/debian/control
index b560e59..d266831 100644
--- a/debian/control
+++ b/debian/control
@@ -24,13 +24,24 @@ Homepage: https://github.com/orcasgit/python-fitbit/
 Package: python-fitbit
 Architecture: all
 Depends: ${python:Depends},
-         ${sphinxdoc:Depends},
          ${misc:Depends},
-         libjs-jquery,
-         libjs-underscore,
          python-dateutil,
          python-requests-oauthlib
-Description: FitBit REST API Client Implementation
+Description: FitBit REST API Client Implementation - Python 2
  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
  units.
+ .
+ This package contains the Python 2 module.
+
+Package: python-fitbit-doc
+Section: doc
+Architecture: all
+Depends: ${sphinxdoc:Depends},
+         ${misc:Depends}
+Description: FitBit REST API Client Implementation - Documentation
+ 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
+ units.
+ .
+  This package contains the documentation.
diff --git a/debian/python-fitbit.doc-base b/debian/python-fitbit-doc.doc-base
similarity index 65%
rename from debian/python-fitbit.doc-base
rename to debian/python-fitbit-doc.doc-base
index 8989283..7bf9e43 100644
--- a/debian/python-fitbit.doc-base
+++ b/debian/python-fitbit-doc.doc-base
@@ -5,5 +5,5 @@ Abstract: This manual describes the functions provided by the Python FitBit REST
 Section: Programming
 
 Format: html
-Index: /usr/share/doc/python-fitbit/html/index.html
-Files: /usr/share/doc/python-fitbit/html/*.html
+Index: /usr/share/doc/python-fitbit-doc/html/index.html
+Files: /usr/share/doc/python-fitbit-doc/html/*.html
diff --git a/debian/docs b/debian/python-fitbit-doc.docs
similarity index 100%
rename from debian/docs
rename to debian/python-fitbit-doc.docs
diff --git a/debian/python-fitbit.links b/debian/python-fitbit.links
deleted file mode 100644
index 7e4be00..0000000
--- a/debian/python-fitbit.links
+++ /dev/null
@@ -1,2 +0,0 @@
-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
deleted file mode 100644
index 6d28621..0000000
--- a/debian/python-markdown-doc.docs
+++ /dev/null
@@ -1 +0,0 @@
-build/html
diff --git a/debian/rules b/debian/rules
index 6ac3cbc..e057c81 100755
--- a/debian/rules
+++ b/debian/rules
@@ -2,14 +2,12 @@
 
 export PYBUILD_NAME=fitbit
 
+%:
+	dh $@ --with python2,sphinxdoc --buildsystem=pybuild
+
 override_dh_auto_build:
 	dh_auto_build
-	PYTHONPATH=. http_proxy='localhost' sphinx-build -N -bhtml docs/ build/html  # HTML generator
-	rm -rf build/html/.doctrees
-	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
+	PYTHONPATH=. http_proxy='localhost' sphinx-build -N -bhtml docs/ build/html # HTML generator
 
 override_dh_auto_test:
 	echo "Skipping tests: Tests require network access..."

-- 
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