[Python-modules-commits] r15154 - in packages/python-dbf/trunk (18 files)
marga at users.alioth.debian.org
marga at users.alioth.debian.org
Mon Dec 27 18:13:38 UTC 2010
Date: Monday, December 27, 2010 @ 18:13:25
Author: marga
Revision: 15154
Initial debian dir for the python-dbf module
Added:
packages/python-dbf/trunk/debian/
packages/python-dbf/trunk/debian/changelog
packages/python-dbf/trunk/debian/compat
packages/python-dbf/trunk/debian/control
packages/python-dbf/trunk/debian/copyright
packages/python-dbf/trunk/debian/patches/
packages/python-dbf/trunk/debian/patches/24compat
packages/python-dbf/trunk/debian/patches/remove-doc-install
packages/python-dbf/trunk/debian/patches/series
packages/python-dbf/trunk/debian/python-dbf-doc.dirs
packages/python-dbf/trunk/debian/python-dbf-doc.doc-base
packages/python-dbf/trunk/debian/python-dbf-doc.install
packages/python-dbf/trunk/debian/python-dbf.docs
packages/python-dbf/trunk/debian/python-dbf.preinst
packages/python-dbf/trunk/debian/rules
packages/python-dbf/trunk/debian/source/
packages/python-dbf/trunk/debian/source/format
packages/python-dbf/trunk/debian/watch
Property changes on: packages/python-dbf/trunk/debian
___________________________________________________________________
Added: mergeWithUpstream
+ 1
Added: packages/python-dbf/trunk/debian/changelog
===================================================================
--- packages/python-dbf/trunk/debian/changelog (rev 0)
+++ packages/python-dbf/trunk/debian/changelog 2010-12-27 18:13:25 UTC (rev 15154)
@@ -0,0 +1,13 @@
+dbf (0.88.16-2) UNRELEASED; urgency=low
+
+ * Changed the maintainer to Debian Python Modules Team
+
+ -- Margarita Manterola <marga at debian.org> Mon, 27 Dec 2010 18:08:34 +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 <marga at debian.org> Mon, 27 Dec 2010 11:51:06 +0000
Added: packages/python-dbf/trunk/debian/compat
===================================================================
--- packages/python-dbf/trunk/debian/compat (rev 0)
+++ packages/python-dbf/trunk/debian/compat 2010-12-27 18:13:25 UTC (rev 15154)
@@ -0,0 +1 @@
+7
Added: packages/python-dbf/trunk/debian/control
===================================================================
--- packages/python-dbf/trunk/debian/control (rev 0)
+++ packages/python-dbf/trunk/debian/control 2010-12-27 18:13:25 UTC (rev 15154)
@@ -0,0 +1,31 @@
+Source: dbf
+Maintainer: Debian Python Modules Team <python-modules-team at lists.alioth.debian.org>
+Uploaders: Margarita Manterola <marga at debian.org>
+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.
Added: packages/python-dbf/trunk/debian/copyright
===================================================================
--- packages/python-dbf/trunk/debian/copyright (rev 0)
+++ packages/python-dbf/trunk/debian/copyright 2010-12-27 18:13:25 UTC (rev 15154)
@@ -0,0 +1,55 @@
+
+Format: http://svn.debian.org/wsvn/dep/web/deps/dep5.mdwn?op=file&rev=135
+Upstream-Name: dbf
+Upstream-Contact: Ethan Furman <ethan at stoneleaf.us>
+Source: http://pypi.python.org/pypi/dbf/
+
+Files: *
+Copyright: 2008-2009 Ad-Mail, Inc - Ethan Furman <ethan at stoneleaf.us>
+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 <marga at debian.org>
+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'.
+
Added: packages/python-dbf/trunk/debian/patches/24compat
===================================================================
--- packages/python-dbf/trunk/debian/patches/24compat (rev 0)
+++ packages/python-dbf/trunk/debian/patches/24compat 2010-12-27 18:13:25 UTC (rev 15154)
@@ -0,0 +1,66 @@
+Patches tables.py so that it's compatible with Python 2.4.
+Author: Margarita Manterola <marga at debian.org>
+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):
Added: packages/python-dbf/trunk/debian/patches/remove-doc-install
===================================================================
--- packages/python-dbf/trunk/debian/patches/remove-doc-install (rev 0)
+++ packages/python-dbf/trunk/debian/patches/remove-doc-install 2010-12-27 18:13:25 UTC (rev 15154)
@@ -0,0 +1,14 @@
+Patches the setup.py so that the documentation is not installed in the
+basic module package, but in the -doc package.
+Author: Margarita Manterola <marga at debian.org>
+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/*']},
+ )
+
Added: packages/python-dbf/trunk/debian/patches/series
===================================================================
--- packages/python-dbf/trunk/debian/patches/series (rev 0)
+++ packages/python-dbf/trunk/debian/patches/series 2010-12-27 18:13:25 UTC (rev 15154)
@@ -0,0 +1,2 @@
+24compat
+remove-doc-install
Added: packages/python-dbf/trunk/debian/python-dbf-doc.dirs
===================================================================
--- packages/python-dbf/trunk/debian/python-dbf-doc.dirs (rev 0)
+++ packages/python-dbf/trunk/debian/python-dbf-doc.dirs 2010-12-27 18:13:25 UTC (rev 15154)
@@ -0,0 +1,2 @@
+usr/share/doc/python-dbf-doc/html/
+
Added: packages/python-dbf/trunk/debian/python-dbf-doc.doc-base
===================================================================
--- packages/python-dbf/trunk/debian/python-dbf-doc.doc-base (rev 0)
+++ packages/python-dbf/trunk/debian/python-dbf-doc.doc-base 2010-12-27 18:13:25 UTC (rev 15154)
@@ -0,0 +1,10 @@
+Document: python-dbf-doc
+Title: python-dbfâs documentation
+Author: Ethan Furman <ethan at stoneleaf.us>
+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/*
+
Added: packages/python-dbf/trunk/debian/python-dbf-doc.install
===================================================================
--- packages/python-dbf/trunk/debian/python-dbf-doc.install (rev 0)
+++ packages/python-dbf/trunk/debian/python-dbf-doc.install 2010-12-27 18:13:25 UTC (rev 15154)
@@ -0,0 +1 @@
+dbf/html/* usr/share/doc/python-dbf-doc/html/
Added: packages/python-dbf/trunk/debian/python-dbf.docs
===================================================================
--- packages/python-dbf/trunk/debian/python-dbf.docs (rev 0)
+++ packages/python-dbf/trunk/debian/python-dbf.docs 2010-12-27 18:13:25 UTC (rev 15154)
@@ -0,0 +1 @@
+README
Added: packages/python-dbf/trunk/debian/python-dbf.preinst
===================================================================
--- packages/python-dbf/trunk/debian/python-dbf.preinst (rev 0)
+++ packages/python-dbf/trunk/debian/python-dbf.preinst 2010-12-27 18:13:25 UTC (rev 15154)
@@ -0,0 +1,14 @@
+#! /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#
Added: packages/python-dbf/trunk/debian/rules
===================================================================
--- packages/python-dbf/trunk/debian/rules (rev 0)
+++ packages/python-dbf/trunk/debian/rules 2010-12-27 18:13:25 UTC (rev 15154)
@@ -0,0 +1,44 @@
+#!/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
+
+
+
Property changes on: packages/python-dbf/trunk/debian/rules
___________________________________________________________________
Added: svn:executable
+ *
Added: packages/python-dbf/trunk/debian/source/format
===================================================================
--- packages/python-dbf/trunk/debian/source/format (rev 0)
+++ packages/python-dbf/trunk/debian/source/format 2010-12-27 18:13:25 UTC (rev 15154)
@@ -0,0 +1 @@
+3.0 (quilt)
Added: packages/python-dbf/trunk/debian/watch
===================================================================
--- packages/python-dbf/trunk/debian/watch (rev 0)
+++ packages/python-dbf/trunk/debian/watch 2010-12-27 18:13:25 UTC (rev 15154)
@@ -0,0 +1,2 @@
+version=3
+http://pypi.python.org/packages/source/d/dbf/dbf-(.*)\.zip
More information about the Python-modules-commits
mailing list