debian/0000755000000000000000000000000011742277302007173 5ustar debian/python-dbf-doc.doc-base0000644000000000000000000000064611506132342013405 0ustar Document: python-dbf-doc Title: python-dbf’s documentation Author: Ethan Furman Abstract: python-dbf is a pure Python module for reading and writing dBase III, FoxPro, and Visual FoxPro 6 .dbf files (including memos). These pages document how to use the API. Section: Programming/Python Format: HTML Index: /usr/share/doc/python-dbf-doc/html/index.html Files: /usr/share/doc/python-dbf-doc/html/* debian/changelog0000644000000000000000000000071411742277302011047 0ustar dbf (0.88.16-1build1) precise; urgency=low * Rebuild to drop python2.6 dependencies and provides. -- Matthias Klose Sat, 14 Apr 2012 13:42:26 +0000 dbf (0.88.16-1) unstable; urgency=low * Initial Release (Closes: #608113) * Applied patch to make it compatible with Python 2.4 * Applied patch to make setup.py not install the documentation by default. -- Margarita Manterola Mon, 27 Dec 2010 11:51:06 +0000 debian/python-dbf.preinst0000644000000000000000000000065511506076647012670 0ustar #! /bin/sh set -e # This was added by stdeb to workaround Debian #479852. In a nutshell, # pycentral does not remove normally remove its symlinks on an # upgrade. Since we're using python-support, however, those symlinks # will be broken. This tells python-central to clean up any symlinks. if [ -e /var/lib/dpkg/info/python-dbf.list ] && which pycentral >/dev/null 2>&1 then pycentral pkgremove python-dbf fi #DEBHELPER# debian/python-dbf.docs0000644000000000000000000000000711506113604012104 0ustar README debian/python-dbf-doc.install0000644000000000000000000000005611506130551013371 0ustar dbf/html/* usr/share/doc/python-dbf-doc/html/ debian/rules0000755000000000000000000000130711506132256010250 0ustar #!/usr/bin/make -f # Uncomment this to turn on verbose mode. #export DH_VERBOSE=1 build: build-stamp build-stamp: dh_testdir python setup.py build; touch $@ clean: dh_testdir dh_testroot [ ! -d build ] || rm -rf build python setup.py clean; dh_clean build-stamp patch-stamp install: build dh_testdir dh_testroot dh_installdirs python setup.py install --root=debian/python-dbf; binary-indep: build install dh_testdir dh_testroot dh_install dh_installdocs dh_installchangelogs dh_pysupport dh_compress -X.py -X.js dh_link dh_fixperms dh_installdeb dh_gencontrol dh_md5sums dh_builddeb binary: binary-indep binary-arch .PHONY: build clean binary-indep binary-arch binary install debian/python-dbf-doc.dirs0000644000000000000000000000004411506117546012672 0ustar usr/share/doc/python-dbf-doc/html/ debian/control0000644000000000000000000000206011506132550010565 0ustar Source: dbf Maintainer: Margarita Manterola Section: python Priority: optional Build-Depends: debhelper (>= 7), python Build-Depends-Indep: python-support (>= 0.90) Standards-Version: 3.9.1 Homepage: http://groups.google.com/group/python-dbase Package: python-dbf Architecture: all Depends: ${misc:Depends}, ${python:Depends} Provides: ${python:Provides} Suggests: python-dbf-doc Description: Python module for reading and writing dbf files A pure Python module for reading and writing dBase III, FoxPro, and Visual FoxPro 6 .dbf files (including memos). Text is returned as unicode, and codepage settings in tables are honored. . Currently not supported: index files, null fields, auto-incrementing fields. Package: python-dbf-doc Architecture: all Section: doc Depends: ${misc:Depends} Description: Python module for reading and writing dbf files - Documentation A pure Python module for reading and writing dBase III, FoxPro, and Visual FoxPro 6 .dbf files (including memos). . This package includes the HTML documentation for the module. debian/copyright0000644000000000000000000000520311506102344011115 0ustar Format: http://svn.debian.org/wsvn/dep/web/deps/dep5.mdwn?op=file&rev=135 Upstream-Name: dbf Upstream-Contact: Ethan Furman Source: http://pypi.python.org/pypi/dbf/ Files: * Copyright: 2008-2009 Ad-Mail, Inc - Ethan Furman License: BSD Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: - Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. - 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. - Neither the name of Ad-Mail, Inc nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission. THIS SOFTWARE IS PROVIDED BY Ad-Mail, Inc ''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 Ad-Mail, Inc 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. Files: debian/* Copyright: 2010 Margarita Manterola License: GPL-2+ This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. . This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. . You should have received a copy of the GNU General Public License along with this package; if not, write to the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA . On Debian systems, the full text of the GNU General Public License version 2 can be found in the file `/usr/share/common-licenses/GPL-2'. debian/source/0000755000000000000000000000000011506103461010463 5ustar debian/source/format0000644000000000000000000000001411506122656011700 0ustar 3.0 (quilt) debian/watch0000644000000000000000000000010511506113335010211 0ustar version=3 http://pypi.python.org/packages/source/d/dbf/dbf-(.*)\.zip debian/patches/0000755000000000000000000000000011506133064010614 5ustar debian/patches/series0000644000000000000000000000003411506130604012023 0ustar 24compat remove-doc-install debian/patches/24compat0000644000000000000000000000533111506133011012162 0ustar Patches tables.py so that it's compatible with Python 2.4. Author: Margarita Manterola Index: dbf-0.88.16/dbf/tables.py =================================================================== --- dbf-0.88.16.orig/dbf/tables.py 2010-12-27 14:53:12.000000000 +0000 +++ dbf-0.88.16/dbf/tables.py 2010-12-27 15:39:59.000000000 +0000 @@ -1835,7 +1835,10 @@ if value not in result._set: result._set.add(value) result._list.append((rec.record_table, rec.record_number, value)) - result._current = 0 if result else -1 + if result: + result._current = 0 + else: + result._current = -1 return result return NotImplemented def __contains__(yo, record): @@ -1864,7 +1867,10 @@ result._list[:] = yo._list[key] result._set = set(result._list) result.key = yo.key - result._current = 0 if result else -1 + if result: + result._current = 0 + else: + result._current = -1 return result else: raise TypeError('indices must be integers') @@ -1903,7 +1909,10 @@ result._set.remove(value) lost.add((rec.record_table, rec.record_number, value)) result._list = [item for item in result._list if item not in lost] - result._current = 0 if result else -1 + if result: + result._current = 0 + else: + result._current = -1 return result return NotImplemented def __sub__(yo, other): @@ -1928,7 +1937,10 @@ result._set.remove(value) lost.add(value) result._list = [item for item in result._list if item[2] not in lost] - result._current = 0 if result else -1 + if result: + result._current = 0 + else: + result._current = -1 return result return NotImplemented def _maybe_add(yo, item): @@ -2165,7 +2177,10 @@ for loc in range(start, stop, step): record = yo._table.get_record(yo._rec_by_val[loc]) result._maybe_add(item=(yo._table, yo._rec_by_val[loc], result.key(record))) - result._current = 0 if result else -1 + if result: + result._current = 0 + else: + result._current = -1 return result elif isinstance (key, (str, unicode, tuple, _DbfRecord)): if isinstance(key, _DbfRecord): debian/patches/remove-doc-install0000644000000000000000000000113211506133052014235 0ustar Patches the setup.py so that the documentation is not installed in the basic module package, but in the -doc package. Author: Margarita Manterola Index: dbf-0.88.16/setup.py =================================================================== --- dbf-0.88.16.orig/setup.py 2010-12-27 15:32:27.000000000 +0000 +++ dbf-0.88.16/setup.py 2010-12-27 15:32:33.000000000 +0000 @@ -28,6 +28,5 @@ 'License :: OSI Approved :: BSD License', 'Programming Language :: Python', 'Topic :: Database' ], - package_data={'dbf': ['html/*']}, ) debian/compat0000644000000000000000000000000211506076647010400 0ustar 7