[Python-modules-commits] [xlwt] 06/13: Add Python 3 support.
Thomas Goirand
zigo at moszumanska.debian.org
Wed Oct 25 17:57:33 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 3243b35e24610b2e4eab686c6823b21764b857ef
Author: Thomas Goirand <thomas at goirand.fr>
Date: Wed Oct 25 17:07:48 2017 +0000
Add Python 3 support.
---
debian/changelog | 1 +
debian/control | 37 ++++++++++++++++++++++++++++++-------
debian/rules | 9 ++++++++-
3 files changed, 39 insertions(+), 8 deletions(-)
diff --git a/debian/changelog b/debian/changelog
index 58d6690..e653269 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -7,6 +7,7 @@ xlwt (1.3.0-1) unstable; urgency=medium
[ Thomas Goirand ]
* New upstream release.
* Ran wrap-and-sort -bast to minimize git diffs.
+ * Add Python 3 support.
-- Thomas Goirand <zigo at debian.org> Wed, 25 Oct 2017 17:00:23 +0000
diff --git a/debian/control b/debian/control
index 46f0f2e..d905e93 100644
--- a/debian/control
+++ b/debian/control
@@ -5,11 +5,14 @@ Maintainer: Jan Dittberner <jandd at debian.org>
Uploaders:
Debian Python Modules Team <python-modules-team at lists.alioth.debian.org>,
Build-Depends:
- debhelper (>= 7.0.50~),
-Build-Depends-Indep:
- python (>= 2.5.6-1~),
+ debhelper (>= 10),
+ dh-python,
+ python-all,
python-antlr,
- python-setuptools (>= 0.6b3-1~),
+ python-setuptools,
+ python3-all,
+ python3-antlr,
+ python3-setuptools,
Standards-Version: 3.9.5
Homepage: https://pypi.python.org/pypi/xlwt
Vcs-Git: https://anonscm.debian.org/git/python-modules/packages/xlwt.git
@@ -23,9 +26,7 @@ Depends:
${python:Depends},
Suggests:
python-xlrd,
-Breaks:
- ${python:Breaks},
-Description: module for writing Microsoft Excel spreadsheet files
+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
spreadsheets can be generated on any platform without needing Excel or a COM
@@ -34,3 +35,25 @@ Description: module for writing Microsoft Excel spreadsheet files
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 Python 2.7 module.
+
+Package: python3-xlwt
+Architecture: all
+Depends:
+ python3-antlr,
+ ${misc:Depends},
+ ${python3:Depends},
+Suggests:
+ python-xlrd,
+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
+ 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 Python 3.x module.
diff --git a/debian/rules b/debian/rules
index e7d2783..1e39bec 100755
--- a/debian/rules
+++ b/debian/rules
@@ -3,7 +3,7 @@
#export DH_VERBOSE=1
include /usr/share/python/python.mk
PYVERS=$(shell pyversions -vd)
-
+PYTHON3S:=$(shell py3versions -vr 2>/dev/null)
%:
dh --with python2 $@
@@ -12,6 +12,13 @@ override_dh_auto_clean:
find . -name '*\.py[co]' -delete
rm -rf build
+override_dh_auto_install:
+ python2.7 setup.py install --install-layout=deb --root $(CURDIR)/debian/python-xlwt
+ set -e && for pyvers in $(PYTHON3S); do \
+ python$$pyvers setup.py install --install-layout=deb \
+ --root $(CURDIR)/debian/python3-xlwt; \
+ done
+
override_dh_install:
rm -r $(CURDIR)/debian/python-xlwt$(call py_libdir,$(PYVERS))/xlwt/examples
dh_install
--
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