[Python-modules-commits] [xlwt] 09/13: Tests with nose.

Thomas Goirand zigo at moszumanska.debian.org
Wed Oct 25 17:57:54 UTC 2017


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

zigo pushed a commit to branch new-upstream-1.3.0
in repository xlwt.

commit bb218975bc9b88a66ea966be260f3891ef7cf941
Author: Thomas Goirand <thomas at goirand.fr>
Date:   Wed Oct 25 17:38:56 2017 +0000

    Tests with nose.
---
 debian/changelog |  3 +++
 debian/control   | 29 ++++++++++++++++++++++++++++-
 debian/rules     | 14 +++++++++++---
 3 files changed, 42 insertions(+), 4 deletions(-)

diff --git a/debian/changelog b/debian/changelog
index e653269..cc3ab81 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -8,6 +8,9 @@ xlwt (1.3.0-1) unstable; urgency=medium
   * New upstream release.
   * Ran wrap-and-sort -bast to minimize git diffs.
   * Add Python 3 support.
+  * Tests with nose.
+  * Add a doc package and generate the doc using sphinx.
+  * Generate the doc using sphinx.
 
  -- Thomas Goirand <zigo at debian.org>  Wed, 25 Oct 2017 17:00:23 +0000
 
diff --git a/debian/control b/debian/control
index d905e93..8a78c85 100644
--- a/debian/control
+++ b/debian/control
@@ -10,9 +10,16 @@ Build-Depends:
  python-all,
  python-antlr,
  python-setuptools,
+ python-sphinx,
  python3-all,
  python3-antlr,
  python3-setuptools,
+Build-Depends-Indep:
+ python-nose,
+ python-pkginfo,
+ python-six,
+ python3-nose,
+ python3-six,
 Standards-Version: 3.9.5
 Homepage: https://pypi.python.org/pypi/xlwt
 Vcs-Git: https://anonscm.debian.org/git/python-modules/packages/xlwt.git
@@ -26,6 +33,7 @@ Depends:
  ${python:Depends},
 Suggests:
  python-xlrd,
+ python-xlrt-doc,
 Description: module for writing Microsoft Excel spreadsheet files - Python 2.7
  This package provides a pure Python module for writing spreadsheet files
  readable by Excel 97/2000/XP/2003, OpenOffice.org Calc, and Gnumeric. Excel
@@ -45,7 +53,8 @@ Depends:
  ${misc:Depends},
  ${python3:Depends},
 Suggests:
- python-xlrd,
+ python3-xlrd,
+ python-xlrt-doc,
 Description: module for writing Microsoft Excel spreadsheet files - Python 3.x
  This package provides a pure Python module for writing spreadsheet files
  readable by Excel 97/2000/XP/2003, OpenOffice.org Calc, and Gnumeric. Excel
@@ -57,3 +66,21 @@ Description: module for writing Microsoft Excel spreadsheet files - Python 3.x
  parse_xls function, see the python-xlrd package.
  .
  This package provides the Python 3.x module.
+
+Package: python-xlrt-doc
+Section: doc
+Architecture: all
+Depends:
+ ${misc:Depends},
+ ${sphinxdoc:Depends},
+Description: module for writing Microsoft Excel spreadsheet files - doc
+ This package provides a pure Python module for writing spreadsheet files
+ readable by Excel 97/2000/XP/2003, OpenOffice.org Calc, and Gnumeric. Excel
+ spreadsheets can be generated on any platform without needing Excel or a COM
+ server.
+ .
+ Xlwt is a fork of the unmaintained pyExcelerator module with several
+ bugfixes and enhancements. For the functionality previously provided by the
+ parse_xls function, see the python-xlrd package.
+ .
+ This package provides the documentation.
diff --git a/debian/rules b/debian/rules
index ede3896..f275efe 100755
--- a/debian/rules
+++ b/debian/rules
@@ -6,7 +6,7 @@ PYVERS=$(shell pyversions -vd)
 PYTHON3S:=$(shell py3versions -vr 2>/dev/null)
 
 %:
-	dh --with python2 $@
+	dh --with python2,python3,sphinxdoc $@
 
 override_dh_auto_clean:
 	find . -name '*\.py[co]' -delete
@@ -19,8 +19,16 @@ override_dh_auto_install:
 			--root $(CURDIR)/debian/python3-xlwt; \
 	done
 
-override_dh_installchangelogs:
-	dh_installchangelogs -i HISTORY.html
+override_dh_sphinxdoc:
+ifeq (,$(findstring nodoc, $(DEB_BUILD_OPTIONS)))
+	PYTHONPATH=. sphinx-build -b html docs $(CURDIR)/debian/python-xlrt-doc/usr/share/doc/python-xlrt-doc/html
+	dh_sphinxdoc -O--buildsystem=python_distutils
+endif
+
+override_dh_auto_test:
+	for i in 2.7 $(PYTHON3S) ; do \
+		PYTHON=python$$i PYTHONPATH=. python$$i -m nose -v ; \
+	done
 
 override_dh_compress:
 	dh_compress -i -X.py

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



More information about the Python-modules-commits mailing list