debian/0000755000000000000000000000000012155634452007175 5ustar debian/compat0000644000000000000000000000000212155620112010357 0ustar 7 debian/examples0000644000000000000000000000002012155574554010734 0ustar xlrd/examples/* debian/source/0000755000000000000000000000000012155634273010476 5ustar debian/source/format0000644000000000000000000000001412155614356011704 0ustar 3.0 (quilt) debian/python-xlrd.install0000644000000000000000000000004412155632566013057 0ustar usr/lib/python2* usr/bin/runxlrd.py debian/watch0000644000000000000000000000011312155617053010217 0ustar version=2 http://pypi.python.org/packages/source/x/xlrd/xlrd-(.*)\.tar\.gz debian/control0000644000000000000000000000306312155634223010576 0ustar Source: python-xlrd Section: python Priority: optional Maintainer: Debian Python Modules Team Uploaders: Vincent Bernat Standards-Version: 3.9.4 Build-Depends: debhelper (>= 7.0.50~) Build-Depends-Indep: python-all (>= 2.6.6-3~), python3-all Homepage: http://www.python-excel.org/ Vcs-Svn: svn://anonscm.debian.org/python-modules/packages/python-xlrd/trunk/ Vcs-Browser: http://anonscm.debian.org/viewvc/python-modules/packages/python-xlrd/trunk/ Package: python-xlrd Architecture: all Depends: ${python:Depends}, ${misc:Depends} Description: extract data from Microsoft Excel spreadsheet files 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 Python2 version of xlrd as well as the documentation and runxlrd, a small utility to extract data from Microsoft Excel spreadsheet files. Package: python3-xlrd Architecture: all Depends: ${python3:Depends}, ${misc:Depends} Description: extract data from Microsoft Excel spreadsheet files (Python3 version) 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 only the Python3 version of xlrd. debian/python-xlrd.manpages0000644000000000000000000000002112155622374013173 0ustar debian/runxlrd.1 debian/changelog0000644000000000000000000000413412155634055011050 0ustar python-xlrd (0.9.2-1) unstable; urgency=low [ Jakub Wilk ] * Use canonical URIs for Vcs-* fields. [ Vincent Bernat ] * Promote Debian Python Modules Team as maintainer. Closes: #700555. * Switch from dpatch to 3.0 (quilt) format. Closes: #664378. * New upstream release. Closes: #682962. + Update debian/watch to look at Pypi. + Update homepage. + Drop shebang patch. Not needed anymore. * Bump Standards-Version to 3.9.4. * Switch to dh and dh_python2. * Enhance long description in debian/control. * Add doc-base registration. * Update manual page. * Switch to machine-readable debian/copyright. * Use shipped unittests. * Add Python 3 support. Closes: #614503. -- Vincent Bernat Tue, 11 Jun 2013 15:22:17 +0200 python-xlrd (0.6.1-2) unstable; urgency=low [ Sandro Tosi ] * debian/control - switch Vcs-Browser field to viewsvn [ Luca Falavigna ] * Switch to python-support. * debian/rules: pass --prefix=/usr to setup.py (Closes: #557936). * debian/control: bump Standards-Version to 3.8.3, no changes needed. -- Debian Python Modules Team Sat, 12 Dec 2009 13:08:41 +0100 python-xlrd (0.6.1-1) unstable; urgency=low * New upstream version * New Maintainer * First release into Debian repository (closes: #366137) * new debian/ -- Thomas Bläsing Thu, 08 May 2008 21:24:54 +0000 python-xlrd (0.6.1a4-2) UNRELEASED; urgency=low * debian/runxlrd.1, debian/manpages: manpage added. * debian/copyright: refer to copy of BSD license. * debian/docs: install /usr/share/doc/python-xlrd/doc/{compdoc,HISTORY,README,xlrd}.html. * debian/examples: install examples. * debian/{rules,install}, debian/runxlrd: supply a wrapper script in /usr/bin/runxlrd to work around missing #!/usr/bin/python in runxlrd.py. -- Joost van Baal Thu, 24 May 2007 07:29:28 +0200 python-xlrd (0.6.1a4-1) UNRELEASED; urgency=low * Initial Release (closes: #366137) -- Joost van Baal Mon, 21 May 2007 13:11:02 +0200 debian/docs0000644000000000000000000000001312155574554010050 0ustar xlrd/doc/* debian/runxlrd.10000644000000000000000000000727612155633665010776 0ustar .\" Hey, EMACS: -*- nroff -*- .\" .\" $Id: runxlrd.1 13212 2007-05-24 05:27:04Z joostvb $ .\" $URL: https://infix.uvt.nl/its-id/trunk/sources/python-xlrd/debian/runxlrd.1 $ .\" .\" Copyright (C) 2007 Joost van Baal .\" You can redistribute this file and/or modify it under .\" the terms of the BSD license. .\" .\" .\" Some roff macros, for reference: .\" .nh disable hyphenation .\" .hy enable hyphenation .\" .ad l left justify .\" .ad b justify to both left and right margins .\" .nf disable filling .\" .fi enable filling .\" .br insert line break .\" .sp insert n+1 empty lines .\" for manpage-specific macros, see man(7) .\" .\" URL - macro for URLs .\" The first argument is the URL, the second is the text to be .\" hyperlinked, and the third (optional) argument is any text that .\" needs to immediately trail the hyperlink without intervening .\" whitespace. .\" .de URL \\$2 \(laURL: \\$1 \(ra\\$3 .. .if \n[.g] .mso www.tmac .\" First parameter, NAME, should be all caps .\" Second parameter, SECTION, should be 1-8, maybe w/ subsection .\" other parameters are allowed: see man(7), man(1) .TH RUNXLRD 1 2007-05-24 "xlrd 0.9.2" .\" Please adjust this date whenever revising the manpage. .\" .SH NAME runxlrd \- extract data from Microsoft Excel spreadsheet files .SH SYNOPSIS .BI "runxlrd [" options ] " command " [ input\-file\-patterns ] .\" .RI [ options ] " files" ... .SH DESCRIPTION This manual page documents briefly the .B runxlrd command. .PP .\" TeX users may be more comfortable with the \fB\fP and .\" \fI\fP escape sequences to invode bold face and italics, .\" respectively. \fBrunxlrd\fP offers a commandline interface to the Python xlrd module; it extracts data from Microsoft Excel spreadsheet files. For a complete list of options and commands, run .B runxlrd with .Ar --help argument. .SH OPTIONS .TP \fB\-h\fP, \fB\-\-help\fP Show summary of options and exit. .\".TP .\".B \-h, \-\-help .\" Show summary of options and exit. .\" .\" .TP .\" .B \-v, \-\-version .\" Show version of program. .TP .BI "-l " logfilename Contains error messages. .TP \fB\-v\fP \fIverbosity\fP, \fB\-\-verbosity\fP=\fIverbosity\fP Level of information and diagnostics provided. .TP \fB\-m\fP \fImmap\fP, \fB\-\-mmap\fP=\fImmap\fP 1: use mmap; 0: don't use mmap; \-1: accept heuristic. .TP \fB\-e\fP \fIencoding\fP, \fB\-\-encoding\fP=\fIencoding\fP Encoding override. .TP \fB\-f\fP \fIformatting\fP, \fB\-\-formatting\fP=\fIformatting\fP 0 (default): no fmt info 1: fmt info (all cells) 2: fmt info (margins trimmed). .TP \fB\-g\fP \fIgc\fP, \fB\-\-gc=gc\fP 0: auto gc enabled; 1: auto gc disabled, manual collect after each file; 2: no gc. .TP \fB\-s\fP \fIonesheet\fP, \fB\-\-onesheet\fP=\fIonesheet\fP Restrict output to this sheet (name or index). .SH COMMANDS Main commands are .IP \(bu 2 .B 2rows .IP \(bu 2 .B 3rows .IP \(bu 2 .B bench .IP \(bu 2 .B hdr .IP \(bu 2 .B labels .IP \(bu 2 .B names .IP \(bu 2 .B ov .IP \(bu 2 .B show .IP \(bu 2 .B version .IP \(bu 2 .B xfc .LP See the xlrd API documentation for the meaning of these commands. .SH EXAMPLES To show the first, second and last rows of each sheet in each file, run .RS .B $ runxlrd 3rows *blah*.xls .RE .br Run .RS .B $ runxlrd -e koi8_r 3rows myfile.xls .RE to explicitly pass the needed codepage to xlrd, e.g. if the codepage record is missing, or if it exists but is wrong. .SH SEE ALSO The xlrd API documentation, shipped in the file xlrd.html. .br The .URL "http://www.python-excel.org" "xlrd website" "." .SH AUTHOR runxlrd was written by John Machin. .PP This manual page was written by Joost van Baal , for the Debian project (but may be used by others). debian/doc-base0000644000000000000000000000041212155623465010574 0ustar Document: python-xlrd Title: xlrd (python-xlrd) documentation 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 debian/patches/0000755000000000000000000000000012155634273010625 5ustar debian/patches/disable-non-working-tests.patch0000644000000000000000000000176712155626462016673 0ustar Disable tests requiring non-existent xlsx files. Index: xlrd-0.9.2/tests/test_open_workbook.py =================================================================== --- xlrd-0.9.2.orig/tests/test_open_workbook.py 2013-04-09 20:58:13.000000000 +0200 +++ xlrd-0.9.2/tests/test_open_workbook.py 2013-06-11 15:58:45.012571048 +0200 @@ -24,15 +24,3 @@ # For now, we just check this doesn't raise an error. open_workbook(from_this_dir('picture_in_cell.xls'), formatting_info=True) - - def test_xlsx_simple(self): - # For now, we just check this doesn't raise an error. - open_workbook(from_this_dir('text_bar.xlsx')) - # we should make assertions here that data has been - # correctly processed. - - def test_xlsx(self): - # For now, we just check this doesn't raise an error. - open_workbook(from_this_dir('reveng1.xlsx')) - # we should make assertions here that data has been - # correctly processed. debian/patches/setup-dont-include-doc-and-examples.patch0000644000000000000000000000136512155623271020511 0ustar Don't install documentation and examples. Index: xlrd-0.9.2/setup.py =================================================================== --- xlrd-0.9.2.orig/setup.py 2013-04-05 16:47:21.000000000 +0200 +++ xlrd-0.9.2/setup.py 2013-06-11 15:15:57.074385248 +0200 @@ -27,14 +27,6 @@ scripts = [ 'scripts/runxlrd.py', ], - package_data={ - 'xlrd': [ - 'doc/*.htm*', - # 'doc/*.txt', - 'examples/*.*', - ], - - }, description = 'Library for developers to extract data from Microsoft Excel (tm) spreadsheet files', long_description = \ "Extract data from Excel spreadsheets (.xls and .xlsx, versions 2.0 onwards) on any platform. " \ debian/patches/series0000644000000000000000000000011212155626371012034 0ustar setup-dont-include-doc-and-examples.patch disable-non-working-tests.patch debian/python3-xlrd.install0000644000000000000000000000002112155633224013125 0ustar usr/lib/python3* debian/rules0000755000000000000000000000164112155633214010252 0ustar #!/usr/bin/make -f PY2VERSIONS = $(shell pyversions -vr) PY3VERSIONS = $(shell py3versions -vr) %: dh $@ --with python2,python3 override_dh_auto_build: dh_auto_build set -e; for version in $(PY3VERSIONS); do \ python$$version setup.py build; \ done override_dh_auto_install: dh_auto_install set -e; for version in $(PY3VERSIONS); do \ python$$version setup.py install --no-compile -O0 --install-layout=deb \ --root $(CURDIR)/debian/tmp; \ done override_dh_auto_clean: dh_auto_clean set -e; for version in $(PY3VERSIONS); do \ python$$version setup.py clean; \ done rm -rf xlrd/__pycache__/ override_dh_install: dh_install --fail-missing mv debian/python-xlrd/usr/bin/runxlrd.py debian/python-xlrd/usr/bin/runxlrd ifeq (,$(filter nocheck,$(DEB_BUILD_OPTIONS))) override_dh_auto_test: set -e; for version in $(PY2VERSIONS) $(PY3VERSIONS); do \ python$$version -m unittest discover ; \ done endif debian/copyright0000644000000000000000000000661712155633504011137 0ustar Format: http://dep.debian.net/deps/dep5/ Upstream-Name: xlrd Upstream-Contact: John Machin Source: http://www.python-excel.org/ Files: * Copyright: Copyright (C) 2005-2012, Stephen John Machin, Lingfo Pty Ltd Copyright (c) 2001 David Giffin. License: BSD-3-clause Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: . 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. . 2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. . 3. None of the names of Stephen John Machin, Lingfo Pty Ltd and any contributors may be used to endorse or promote products derived from this software without specific prior written permission. . THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. . Based on the the Java version: Andrew Khan Copyright (c) 2000. . Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: . 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. . 2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. . 3. All advertising materials mentioning features or use of this software must display the following acknowledgment: "This product includes software developed by David Giffin ." . 4. Redistributions of any form whatsoever must retain the following acknowledgment: "This product includes software developed by David Giffin ." . THIS SOFTWARE IS PROVIDED BY DAVID GIFFIN ``AS IS'' AND ANY EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL DAVID GIFFIN OR ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.