[Python-modules-commits] [python-xlrd] 08/08: d/control: add a package for documentation
Vincent Bernat
bernat at moszumanska.debian.org
Tue Nov 14 07:38:55 UTC 2017
This is an automated email from the git hooks/post-receive script.
bernat pushed a commit to annotated tag debian/1.1.0-1
in repository python-xlrd.
commit ed6c7329ceb22521d3b1f6ebe2e6881dfb598d58
Author: Vincent Bernat <vincent at bernat.im>
Date: Tue Nov 14 08:33:41 2017 +0100
d/control: add a package for documentation
---
debian/changelog | 1 +
debian/control | 18 ++++++++++++++++++
debian/docs | 1 -
debian/{doc-base => python-xlrd-docs.doc-base} | 4 ++--
debian/rules | 7 ++++++-
5 files changed, 27 insertions(+), 4 deletions(-)
diff --git a/debian/changelog b/debian/changelog
index f49014e..90be398 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -6,6 +6,7 @@ python-xlrd (1.1.0-1) unstable; urgency=medium
* d/rules: remove symbolic rules to examples during tests.
* d/compat: switch to debhelper 10.
* d/watch: switch to HTTPS.
+ * d/control: add a package for documentation.
-- Vincent Bernat <bernat at debian.org> Tue, 14 Nov 2017 08:20:54 +0100
diff --git a/debian/control b/debian/control
index d92d94b..828e9f8 100644
--- a/debian/control
+++ b/debian/control
@@ -6,7 +6,9 @@ Uploaders: Vincent Bernat <bernat at debian.org>
Standards-Version: 4.1.1
Build-Depends: debhelper (>= 10),
dh-python,
+ python3-sphinx,
python-setuptools, python3-setuptools,
+ python-pkginfo, python3-pkginfo,
python-all (>= 2.6.6-3~), python3-all
Homepage: http://www.python-excel.org/
Vcs-Git: https://anonscm.debian.org/git/python-modules/packages/python-xlrd.git
@@ -41,3 +43,19 @@ Description: extract data from Microsoft Excel spreadsheet files (Python3 versio
outside of the standard Python distribution.
.
This package contains only the Python3 version of xlrd.
+
+Package: python-xlrd-docs
+Architecture: all
+Section: doc
+Depends: ${misc:Depends}, ${sphinxdoc:Depends}
+Replaces: python-xlrd (<< 1.1.0-1)
+Breaks: python-xlrd (<< 1.1.0-1)
+Description: extract data from Microsoft Excel spreadsheet files (documentation)
+ xlrd is a Python library to Extract data from new and old Microsoft
+ Excel spreadsheets. It supports both .xls and .xlsx files (from Excel
+ 2007).
+ .
+ xlrd is a pure Python module and does not require any dependency
+ outside of the standard Python distribution.
+ .
+ This package contains the documentation.
diff --git a/debian/docs b/debian/docs
deleted file mode 100644
index ba46434..0000000
--- a/debian/docs
+++ /dev/null
@@ -1 +0,0 @@
-xlrd/doc/*
diff --git a/debian/doc-base b/debian/python-xlrd-docs.doc-base
similarity index 65%
rename from debian/doc-base
rename to debian/python-xlrd-docs.doc-base
index 3e359fc..ea6ab0c 100644
--- a/debian/doc-base
+++ b/debian/python-xlrd-docs.doc-base
@@ -4,5 +4,5 @@ Abstract: This manual contains information on how to use xlrd Python module.
Section: Programming/Python
Format: HTML
-Index: /usr/share/doc/python-xlrd/xlrd.html
-Files: /usr/share/doc/python-xlrd/*.html
+Index: /usr/share/doc/python-xlrd-docs/index.html
+Files: /usr/share/doc/python-xlrd-docs/*.html
diff --git a/debian/rules b/debian/rules
index 39298e9..ee146e9 100755
--- a/debian/rules
+++ b/debian/rules
@@ -3,7 +3,12 @@
export PYBUILD_NAME = xlrd
%:
- dh $@ --with python2,python3 --buildsystem pybuild
+ dh $@ --with python2,python3,sphinxdoc --buildsystem pybuild
+
+override_dh_installdocs:
+ dh_installdocs
+ PYTHONPATH=. sphinx-build -N -q -E -b html docs \
+ debian/python-xlrd-docs/usr/share/doc/python-xlrd-docs/
override_dh_auto_install:
dh_auto_install
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/python-modules/packages/python-xlrd.git
More information about the Python-modules-commits
mailing list