--- sqlalchemy-0.4.7p1.orig/debian/patches/fix_typos.patch
+++ sqlalchemy-0.4.7p1/debian/patches/fix_typos.patch
@@ -0,0 +1,35 @@
+Index: sqlalchemy-0.4.7p1/lib/sqlalchemy/orm/mapper.py
+===================================================================
+--- sqlalchemy-0.4.7p1.orig/lib/sqlalchemy/orm/mapper.py
++++ sqlalchemy-0.4.7p1/lib/sqlalchemy/orm/mapper.py
+@@ -1583,7 +1583,7 @@ class Mapper(object):
+             if leftcol.table not in needs_tables:
+                 binary.left = sql.bindparam(None, None, type_=binary.right.type)
+                 param_names.append((leftcol, binary.left))
+-            elif rightcol not in needs_tables:
++            elif rightcol.table not in needs_tables:
+                 binary.right = sql.bindparam(None, None, type_=binary.right.type)
+                 param_names.append((rightcol, binary.right))
+ 
+Index: sqlalchemy-0.4.7p1/lib/sqlalchemy/schema.py
+===================================================================
+--- sqlalchemy-0.4.7p1.orig/lib/sqlalchemy/schema.py
++++ sqlalchemy-0.4.7p1/lib/sqlalchemy/schema.py
+@@ -214,7 +214,7 @@ class Table(SchemaItem, expression.Table
+ 
+         self._set_parent(metadata)
+ 
+-	self.__extra_kwargs(**kwargs)
++        self.__extra_kwargs(**kwargs)
+ 
+         # load column definitions from the database if 'autoload' is defined
+         # we do it after the table is in the singleton dictionary to support
+@@ -1036,7 +1036,7 @@ class CheckConstraint(Constraint):
+ 
+         super(CheckConstraint, self).__init__(name, deferrable, initially)
+         if not isinstance(sqltext, basestring):
+-            raise exc.ArgumentError(
++            raise exceptions.ArgumentError(
+                 "sqltext must be a string and will be used verbatim.")
+         self.sqltext = sqltext
+ 
--- sqlalchemy-0.4.7p1.orig/debian/patches/series
+++ sqlalchemy-0.4.7p1/debian/patches/series
@@ -0,0 +1,2 @@
+fix_typos.patch
+disable_ez_setup.patch
--- sqlalchemy-0.4.7p1.orig/debian/patches/disable_ez_setup.patch
+++ sqlalchemy-0.4.7p1/debian/patches/disable_ez_setup.patch
@@ -0,0 +1,12 @@
+Index: sqlalchemy-0.3.11/setup.py
+===================================================================
+--- sqlalchemy-0.3.11.orig/setup.py
++++ sqlalchemy-0.3.11/setup.py
+@@ -1,5 +1,5 @@
+-from ez_setup import use_setuptools
+-use_setuptools()
++#from ez_setup import use_setuptools
++#use_setuptools()
+ from setuptools import setup, find_packages
+ 
+ setup(name = "SQLAlchemy",
--- sqlalchemy-0.4.7p1.orig/debian/python-sqlalchemy-doc.doc-base
+++ sqlalchemy-0.4.7p1/debian/python-sqlalchemy-doc.doc-base
@@ -0,0 +1,11 @@
+Document: sqlalchemy
+Title: SQLAlchemy Documentation
+Author: Mike Bayer
+Abstract: This document describes SQLAlchemy - the Python SQL toolkit and
+ Object Relational Mapper. It's usable as a comprehensive reference, a user
+ guide and a tutorial all-in-one.
+Section: Programming/Python
+
+Format: HTML
+Index: /usr/share/doc/python-sqlalchemy-doc/doc/index.html
+Files: /usr/share/doc/python-sqlalchemy-doc/doc/*.html
--- sqlalchemy-0.4.7p1.orig/debian/README.Debian
+++ sqlalchemy-0.4.7p1/debian/README.Debian
@@ -0,0 +1,24 @@
+SQLAlchemy Debian notes
+=======================
+
+The package does not depend on various low level database libraries, but it
+does suggest all the supported ones. Please install the ones you intend to use.
+
+For SQLite2:
+	python-sqlite
+
+For SQLite3:
+	python >=2.5 or python-pysqlite2 or python-pysqlite1.1
+
+For PostgreSQL:
+	python-psycopg2
+
+For MySQL:
+	python-mysqldb
+
+For Firebird:
+	python-kinterbasdb
+
+
+Documentation and examples can be found in the python-sqlalchemy-doc package
+in /usr/share/doc/python-sqlalchemy-doc.
--- sqlalchemy-0.4.7p1.orig/debian/copyright
+++ sqlalchemy-0.4.7p1/debian/copyright
@@ -0,0 +1,93 @@
+This package was debianized by Tommi Virtanen tv@debian.org on
+Sun, 26 Mar 2006 16:53:19 +0300.
+
+Since Thu, 7 Sep 2006 20:58:45 +0200 it is co-maintained by
+Piotr Ożarowski <piotr@debian.org>
+
+It was originally downloaded from http://www.sqlalchemy.org/
+
+Upstream Author: Mike Bayer <mike_mp@zzzcomputing.com>
+
+Copyright:
+
+ This is the MIT license: http://www.opensource.org/licenses/mit-license.php
+
+ Copyright (c) 2005, 2006, 2007 Michael Bayer and contributors. SQLAlchemy is a
+ trademark of Michael Bayer.
+
+ Permission is hereby granted, free of charge, to any person obtaining a copy
+ of this software and associated documentation files (the "Software"), to deal
+ in the Software without restriction, including without limitation the rights
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+ copies of the Software, and to permit persons to whom the Software is
+ furnished to do so, subject to the following conditions:
+
+ The above copyright notice and this permission notice shall be included in all
+ copies or substantial portions of the Software.
+
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+ SOFTWARE.
+
+-----------------------------------------------------------
+
+test/coverage.py file (only in source package):
+
+ Copyright 2001 Gareth Rees.  All rights reserved.
+ Copyright 2004-2006 Ned Batchelder.  All rights reserved.
+
+ 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.
+
+ 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
+ HOLDERS AND 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.
+
+-----------------------------------------------------------
+
+lib/sqlalchemy/databases/access.py file:
+
+ Copyright (C) 2007 Paul Johnston, paj@pajhome.org.uk
+ Portions derived from jet2sql.py by Matt Keranen, mksql@yahoo.com
+
+ This module is part of SQLAlchemy and is released under
+ the MIT License: http://www.opensource.org/licenses/mit-license.php
+
+-----------------------------------------------------------
+
+lib/sqlalchemy/interfaces.py file:
+
+ Copyright (C) 2007 Jason Kirtland jek@discorporate.us
+
+ This module is part of SQLAlchemy and is released under
+ the MIT License: http://www.opensource.org/licenses/mit-license.php
+
+-----------------------------------------------------------
+
+The Debian packaging is (C) 2006-2007 Tommi Virtanen <tv@debian.org> and Piotr
+Ożarowski <piotr@debian.org> - it is licensed under the GPL.
+
+On Debian systems, the complete text of the GNU General Public License
+can be found in `/usr/share/common-licenses/GPL'.
--- sqlalchemy-0.4.7p1.orig/debian/compat
+++ sqlalchemy-0.4.7p1/debian/compat
@@ -0,0 +1 @@
+5
--- sqlalchemy-0.4.7p1.orig/debian/watch
+++ sqlalchemy-0.4.7p1/debian/watch
@@ -0,0 +1,3 @@
+version=3
+opts=uversionmangle=s/beta/~beta/ \
+http://qa.debian.org/watch/sf.php/sqlalchemy/SQLAlchemy-(.*)\.tar\.gz debian uupdate
--- sqlalchemy-0.4.7p1.orig/debian/python-sqlalchemy-doc.examples
+++ sqlalchemy-0.4.7p1/debian/python-sqlalchemy-doc.examples
@@ -0,0 +1 @@
+examples/*
--- sqlalchemy-0.4.7p1.orig/debian/NEWS
+++ sqlalchemy-0.4.7p1/debian/NEWS
@@ -0,0 +1,30 @@
+python-sqlalchemy (0.4.0~beta1-1) experimental; urgency=low
+
+  From version 0.3 to version 0.4 of SQLAlchemy, some conventions have
+  changed. Most of these conventions are available in the most recent releases
+  of the 0.3 series starting with version 0.3.9, so that you can make a 0.3
+  application compatible with 0.4 in most cases. 
+
+  Things that have changed in a backwards-incompatible manner are documented
+  in "0.3 to 0.4 Migration" section (#overview_migration) in
+  /usr/share/doc/python-sqlalchemy-doc/doc/intro.html file
+  
+  For a full overview of everything that's new and changed, see
+  http://www.sqlalchemy.org/trac/wiki/WhatsNewIn04
+
+ -- Piotr Ożarowski <piotr@debian.org>  Sun, 12 Aug 2007 21:44:53 +0200
+
+python-sqlalchemy (0.3.0-1) unstable; urgency=low
+
+  SQLAlchemy 0.2 -> 0.3 migration notes can be found on the wiki page:
+  http://www.sqlalchemy.org/trac/wiki/03Migration
+
+ -- Piotr Ozarowski <ozarow@gmail.com>  Mon, 23 Oct 2006 18:51:15 +0200
+
+python-sqlalchemy (0.2.3-0.1) unstable; urgency=low
+
+  SQLAlchemy 0.1 -> 0.2 migration notes can be found on the wiki page:
+  http://www.sqlalchemy.org/trac/wiki/02Migration
+
+ -- Piotr Ozarowski <ozarow@gmail.com>  Wed,  7 Jun 2006 00:11:30 +0200
+
--- sqlalchemy-0.4.7p1.orig/debian/changelog
+++ sqlalchemy-0.4.7p1/debian/changelog
@@ -0,0 +1,356 @@
+sqlalchemy (0.4.7p1-2~bpo40+1) etch-backports; urgency=low
+
+  * Rebuild for etch-backports.
+  * Use python-support 0.5.6
+    + rename Egg dir in debian/rules
+    + remove empty /usr/lib/ dir
+  * Don't use bzip2 to compress binary package (works fine on Etch, but
+    backports.org's software rejects it)
+
+ -- Piotr Ożarowski <piotr@debian.org>  Thu, 02 Oct 2008 19:42:56 +0200
+
+sqlalchemy (0.4.7p1-2) unstable; urgency=low
+
+  * Fixed typos in orm/mapper.py and schema.py (closes: #494948, thanks
+    Sebastian)
+
+ -- Piotr Ożarowski <piotr@debian.org>  Thu, 04 Sep 2008 21:20:49 +0200
+
+sqlalchemy (0.4.7p1-1) unstable; urgency=low
+
+  * New upstream release
+
+ -- Piotr Ożarowski <piotr@debian.org>  Fri, 01 Aug 2008 19:43:14 +0200
+
+sqlalchemy (0.4.7-1) unstable; urgency=low
+
+  * New upstream release
+
+ -- Piotr Ożarowski <piotr@debian.org>  Sat, 26 Jul 2008 18:59:46 +0200
+
+sqlalchemy (0.5.0~beta2-1) experimental; urgency=low
+
+  * New upstream release
+
+ -- Piotr Ożarowski <piotr@debian.org>  Mon, 14 Jul 2008 22:39:27 +0200
+
+sqlalchemy (0.5.0~beta1-1) experimental; urgency=low
+
+  * New upstream release
+  * Standards-Version bumped to 3.8.0:
+    + debian/README.source file added
+
+ -- Piotr Ożarowski <piotr@debian.org>  Sun, 15 Jun 2008 20:06:03 +0200
+
+sqlalchemy (0.4.6-1) unstable; urgency=low
+
+  * New upstream release
+
+ -- Piotr Ożarowski <piotr@debian.org>  Thu, 15 May 2008 19:01:21 +0200
+
+sqlalchemy (0.4.5-1) unstable; urgency=low
+
+  * New upstream release
+
+ -- Piotr Ożarowski <piotr@debian.org>  Sat, 05 Apr 2008 00:46:33 +0200
+
+sqlalchemy (0.4.4-1) unstable; urgency=low
+
+  * New upstream release
+  * doc-base: section changed to Programming/Python
+
+ -- Piotr Ożarowski <piotr@debian.org>  Wed, 12 Mar 2008 18:46:41 +0100
+
+sqlalchemy (0.4.3-1) unstable; urgency=low
+
+  * New upstream release
+  * Strip the "-1" from quilt's and setuptools' required build versions
+
+ -- Piotr Ożarowski <piotr@debian.org>  Sat, 16 Feb 2008 01:57:35 +0100
+
+sqlalchemy (0.4.2p3-1) unstable; urgency=low
+
+  * New upstream release
+
+ -- Piotr Ożarowski <piotr@debian.org>  Thu, 10 Jan 2008 11:25:35 +0100
+
+sqlalchemy (0.4.2b-1) unstable; urgency=low
+
+  * New upstream release
+
+ -- Piotr Ożarowski <piotr@debian.org>  Tue,  8 Jan 2008 21:25:41 +0100
+
+sqlalchemy (0.4.2a-2) unstable; urgency=low
+
+  * Bump XS-Python-Version to >= 2.4 (closes: #459448)
+
+ -- Piotr Ożarowski <piotr@debian.org>  Sun, 06 Jan 2008 18:16:06 +0100
+
+sqlalchemy (0.4.2a-1) unstable; urgency=medium
+
+  * New upstream release
+  * Compress binary package with bzip2
+
+ -- Piotr Ożarowski <piotr@debian.org>  Sat, 05 Jan 2008 23:00:10 +0100
+
+sqlalchemy (0.4.2-1) unstable; urgency=low
+
+  * New upstream release
+  * Switch to python-support
+  * Maintainer related changes:
+    - remove Tommi from Maintainer field, thanks Tommi for your work!
+      (closes: #455011),
+    - move my name to Maintainer field,
+    - add Debian Python Modules Team to Uploaders
+  * Add Vcs-Source and Vcs-Browser fields
+  * Standards-version bumped to 3.7.3 (no changes needed)
+
+ -- Piotr Ożarowski <piotr@debian.org>  Wed, 02 Jan 2008 18:38:47 +0100
+
+sqlalchemy (0.4.1-1) unstable; urgency=low
+
+  * New upstream release
+
+ -- Piotr Ożarowski <piotr@debian.org>  Mon, 19 Nov 2007 00:54:16 +0100
+
+sqlalchemy (0.4.0-1) unstable; urgency=low
+
+  * New upstream release
+  * hardcode_version patch removed (it's hardcoded by upstream now)
+
+ -- Piotr Ożarowski <piotr@debian.org>  Wed, 17 Oct 2007 23:58:26 +0200
+
+sqlalchemy (0.3.11-1) unstable; urgency=low
+
+  * New upstream release
+  * Convert from CDBS to pure debhelper & quilt
+  * Applied all Debian packaging related changes from 0.4.0~ (currently in
+    experimental) except the ones from NEWS and copyright files
+    (closes: #438340)
+  * Replace setuptools_version patch with disable_ez_setup
+  * sqlalchemy.__version__ works without setuptools (LP: #136719):
+    - hardcode_version patch added,
+    - python-setuptools removed from Suggests
+
+ -- Piotr Ożarowski <piotr@debian.org>  Sun, 14 Oct 2007 22:04:08 +0200
+
+sqlalchemy (0.4.0~beta6-1) experimental; urgency=low
+
+  * New upstream release
+  * Homepage field added
+
+ -- Piotr Ożarowski <piotr@debian.org>  Thu, 27 Sep 2007 12:58:33 +0200
+
+sqlalchemy (0.4.0~beta5-1) experimental; urgency=low
+
+  * New upstream release
+
+ -- Piotr Ożarowski <piotr@debian.org>  Sun, 02 Sep 2007 15:02:48 +0200
+
+sqlalchemy (0.4.0~beta4-1) experimental; urgency=low
+
+  * New upstream release
+
+ -- Piotr Ożarowski <piotr@debian.org>  Wed, 22 Aug 2007 22:43:51 +0200
+
+sqlalchemy (0.4.0~beta3-1) experimental; urgency=low
+
+  * New upstream release
+  * Removing python-psycopg from Conflicts (0.4 doesn't try to import psycopg
+    anymore)
+
+ -- Piotr Ożarowski <piotr@debian.org>  Thu, 16 Aug 2007 16:57:58 +0000
+
+sqlalchemy (0.4.0~beta2-1) experimental; urgency=low
+
+  * New upstream release
+  * debian/watch file updated ("~" character issue fixed)
+  * Don't provide python2.X-sqlalchemy packages anymore (it's arch. indep.
+    package)
+  * Add "python (>=2.5) |" before all SQLite packages in Suggests (python2.5
+    provides sqlite3 module which is used by SQLAlchemy if available)
+  * Extend README.Debian file (add notes about database <-> required package
+    relation)
+  * Add info about access.py and interfaces.py files to debian/copyright
+
+ -- Piotr Ożarowski <piotr@debian.org>  Tue, 14 Aug 2007 20:19:11 +0200
+
+sqlalchemy (0.4.0~beta1-1) experimental; urgency=low
+
+  * New upstream release (closes: #421101)
+  * debian/rules updated to handle "~" character
+
+ -- Piotr Ożarowski <piotr@debian.org>  Sun, 12 Aug 2007 21:35:32 +0200
+
+sqlalchemy (0.3.10-1) unstable; urgency=low
+
+  * New upstream release
+
+ -- Piotr Ożarowski <piotr@debian.org>  Fri, 20 Jul 2007 23:55:56 +0200
+
+sqlalchemy (0.3.9-1) unstable; urgency=low
+
+  * New upstream release
+
+ -- Piotr Ożarowski <piotr@debian.org>  Sun, 15 Jul 2007 19:59:38 +0200
+
+sqlalchemy (0.3.8-1) unstable; urgency=low
+
+  * New upstream release
+  * python-central and python-setuptools moved to Build-Depends-Indep
+
+ -- Piotr Ożarowski <piotr@debian.org>  Sun, 03 Jun 2007 16:15:05 +0200
+
+sqlalchemy (0.3.7-1) unstable; urgency=low
+
+  * New upstream release
+  * Suggests python-setuptools (dialects within sqlalchemy.databases become a
+    setuptools entry points)
+  * Description updated
+
+ -- Piotr Ożarowski <piotr@debian.org>  Mon, 30 Apr 2007 21:06:19 +0200
+
+sqlalchemy (0.3.6-2) unstable; urgency=low
+
+  * Upload to unstable
+
+ -- Piotr Ożarowski <piotr@debian.org>  Sun, 08 Apr 2007 16:40:59 +0200
+
+sqlalchemy (0.3.6-1) experimental; urgency=low
+
+  * New upstream release (upload to experimental due to Etch freeze)
+  * Changed my address to piotr@debian.org
+
+ -- Piotr Ożarowski <piotr@debian.org>  Sat, 24 Mar 2007 15:16:26 +0100
+
+sqlalchemy (0.3.5-1) experimental; urgency=low
+
+  * New upstream release (upload to experimental due to Etch freeze)
+
+ -- Piotr Ozarowski <ozarow@gmail.com>  Thu, 22 Feb 2007 19:03:14 +0100
+
+sqlalchemy (0.3.4-2) experimental; urgency=low
+
+  * Replace python-all with pytohn-all-dev build dependency (python2.5 needs
+    header files to build this package)
+  * Move python-setuptools to Build-Depends: (for clean rule)
+
+ -- Piotr Ozarowski <ozarow@gmail.com>  Tue, 30 Jan 2007 16:27:47 +0100
+
+sqlalchemy (0.3.4-1) experimental; urgency=low
+
+  * New upstream release (upload to experimental due to Etch freeze)
+
+ -- Piotr Ozarowski <ozarow@gmail.com>  Tue, 23 Jan 2007 21:44:37 +0100
+
+sqlalchemy (0.3.1-2) unstable; urgency=medium
+
+  * debian/copyright file updated (closes: #403767)
+
+ -- Piotr Ozarowski <ozarow@gmail.com>  Wed, 20 Dec 2006 00:02:53 +0100
+
+sqlalchemy (0.3.3-1) experimental; urgency=low
+
+  * New upstream release (upload to experimental due to Etch freeze)
+
+ -- Piotr Ozarowski <ozarow@gmail.com>  Fri, 15 Dec 2006 15:36:00 +0100
+
+sqlalchemy (0.3.2-1) experimental; urgency=low
+
+  * New upstream release (upload to experimental due to Etch freeze)
+
+ -- Piotr Ozarowski <ozarow@gmail.com>  Mon, 11 Dec 2006 18:09:00 +0100
+
+sqlalchemy (0.3.1-1) unstable; urgency=low
+
+  * New upstream release
+
+ -- Piotr Ozarowski <ozarow@gmail.com>  Mon, 13 Nov 2006 15:03:35 +0100
+
+sqlalchemy (0.3.0-2) unstable; urgency=low
+
+  * Documentation and example files moved to python-sqlalchemy-doc package
+  * python-psycopg moved to Conflicts: (closes: #380622, #397427).
+    Please use python-psycopg2 instead, psycopg is not supported but it is
+    used if both psycopg and psycopg2 are installed
+  * python2.3-sqlalchemy removed from Conflicts: and Replaces:
+    (Python v2.3 is not supported in Debian anymore and pycentral will not
+    create links for this version)
+
+ -- Piotr Ozarowski <ozarow@gmail.com>  Wed,  8 Nov 2006 01:19:28 +0100
+
+sqlalchemy (0.3.0-1) unstable; urgency=low
+
+  * New upstream release
+  * Register documentation in doc-base
+
+ -- Piotr Ozarowski <ozarow@gmail.com>  Sun, 22 Oct 2006 22:07:15 +0200
+
+sqlalchemy (0.2.8-1) unstable; urgency=low
+
+  * New upstream release
+  * Added myself to Uploaders 
+  * Acknowledge NMUs I made (closes: #369371)
+  * Bumped python-central required version to 0.5 in order to satisfy lintian
+  * Added patch 01_setuptools_version to force use of currently installed
+    setuptools version during building package
+  * Replaced python-all-dev with python-all build requirement since header
+    files are not needed to build arch indep. modules
+
+ -- Piotr Ozarowski <ozarow@gmail.com>  Thu,  7 Sep 2006 20:58:45 +0200
+
+sqlalchemy (0.2.7-0.1) unstable; urgency=low
+
+  * Non-maintainer upload (with maintainer's knowledge)
+  * Primary mappers issue patch removed (fixed in upstream)
+  * Added python-psycopg2 to Suggests header (python-psycopg's successor)
+
+ -- Piotr Ozarowski <ozarow@gmail.com>  Sun, 13 Aug 2006 00:57:00 +0200
+
+sqlalchemy (0.2.6-0.1) unstable; urgency=low
+
+  * Non-maintainer upload (with maintainer's knowledge)
+  * New upstream release
+  * Added a temporary patch for primary mappers issue (will be fixed in next
+    upstream release)
+  * Updated python-kinterbasdb's dependency (new python policy version is
+    available)
+
+ -- Piotr Ozarowski <ozarow@gmail.com>  Thu, 20 Jul 2006 15:23:59 +0200
+
+sqlalchemy (0.2.5-0.1) unstable; urgency=low
+
+  * Non-maintainer upload (with maintainer's knowledge)
+  * New upstream release
+
+ -- Piotr Ozarowski <ozarow@gmail.com>  Tue, 11 Jul 2006 18:59:49 +0200
+
+sqlalchemy (0.2.4-0.1) unstable; urgency=low
+
+  * Non-maintainer upload (with maintainer's knowledge)
+  * New upstream release
+  * Patch for python 2.3 compatibility removed (fixed in upstream)
+  * Added python to Build-Depends (for clean rule)
+
+ -- Piotr Ozarowski <ozarow@gmail.com>  Fri,  7 Jul 2006 18:07:35 +0200
+
+sqlalchemy (0.2.3-0.1) unstable; urgency=low
+
+  * Non-maintainer upload (closes: #369371)
+  * New upstream release
+  * Update for new python policy:
+    - Convert to python-central
+    - Add debian/pycompat file
+    - Dependencies updated
+  * Add debian/watch file
+  * Fixed long description (indents, missing space in Homepage pseudo-header)
+  * Add temporary patch for python 2.3 compatibility
+  * Standards-version bumped to 3.7.2 (no changes needed)
+
+ -- Piotr Ozarowski <ozarow@gmail.com>  Wed, 21 Jun 2006 21:50:36 +0200
+
+sqlalchemy (0.1.4-1) unstable; urgency=low
+
+  * Initial release
+
+ -- Tommi Virtanen <tv@debian.org>  Sun, 26 Mar 2006 16:52:49 +0300
--- sqlalchemy-0.4.7p1.orig/debian/rules
+++ sqlalchemy-0.4.7p1/debian/rules
@@ -0,0 +1,52 @@
+#!/usr/bin/make -f
+
+#export DH_VERBOSE=1
+p_name=python-sqlalchemy
+m_name=SQLAlchemy
+
+PYVERS=$(shell pyversions -vr)
+DEB_UPSTREAM_VERSION=$(shell dpkg-parsechangelog | sed -rne 's,^Version: ([^-]+).*,\1,p')
+
+include /usr/share/quilt/quilt.make
+
+
+clean: unpatch
+	dh_testdir
+	dh_testroot
+	-rm -rf $(CURDIR)/lib/${m_name}.egg-info $(CURDIR)/build/
+	find . -name '*\.py[co]' -delete
+	dh_clean build-*
+
+build: patch
+
+install: $(PYVERS:%=install-python%)
+install-python%:
+	python$* setup.py install \
+		--single-version-externally-managed \
+		--root $(CURDIR)/debian/${p_name}
+	# share Egg dir - remove Python version from dir name
+	mv debian/${p_name}/usr/lib/python$*/site-packages/${m_name}-${DEB_UPSTREAM_VERSION}-py$*.egg-info \
+	   debian/${p_name}/usr/lib/python$*/site-packages/${m_name}-${DEB_UPSTREAM_VERSION}.egg-info
+
+binary-indep: build install
+	dh_testdir -i
+	dh_testroot -i
+	dh_installchangelogs -i CHANGES
+	dh_installdocs -i
+	dh_installexamples -i
+	rm -rf debian/${p_name}-doc/usr/share/doc/${p_name}-doc/doc/build \
+	       debian/${p_name}-doc/usr/share/doc/${p_name}-doc/examples/README
+	dh_pysupport -i
+	rm -rf debian/${p_name}/usr/lib/
+	dh_compress -i -X.py
+	dh_fixperms -i
+	dh_installdeb -i
+	dh_gencontrol -i
+	dh_md5sums -i
+	dh_builddeb -i
+
+binary-arch:
+
+binary: binary-indep binary-arch
+
+.PHONY: build clean binary-indep binary-arch binary install
--- sqlalchemy-0.4.7p1.orig/debian/README.source
+++ sqlalchemy-0.4.7p1/debian/README.source
@@ -0,0 +1,2 @@
+This package uses the patch management system quilt as documented in
+/usr/share/doc/quilt/README.source.
--- sqlalchemy-0.4.7p1.orig/debian/control
+++ sqlalchemy-0.4.7p1/debian/control
@@ -0,0 +1,60 @@
+Source: sqlalchemy
+Section: python
+Priority: optional
+Maintainer: Piotr Ożarowski <piotr@debian.org>
+Uploaders: Debian Python Modules Team <python-modules-team@lists.alioth.debian.org>
+Build-Depends: debhelper (>= 5.0.38), quilt (>= 0.40)
+Build-Depends-Indep: python-all-dev (>= 2.3.5-11), python-support (>= 0.5.6),
+ python-setuptools (>= 0.6b3-1~)
+Standards-Version: 3.8.0
+Homepage: http://www.sqlalchemy.org/
+Vcs-Svn: svn://svn.debian.org/python-modules/packages/sqlalchemy/trunk
+Vcs-Browser: http://svn.debian.org/wsvn/python-modules/packages/sqlalchemy/trunk/?op=log
+XS-Python-Version: >= 2.4
+
+Package: python-sqlalchemy
+Architecture: all
+Depends: ${python:Depends}
+Conflicts: python2.4-sqlalchemy (<< 0.2.3-0.1)
+Replaces: python2.4-sqlalchemy (<< 0.2.3-0.1)
+Suggests: python-sqlalchemy-doc, python-psycopg2, python-mysqldb (>= 1.2.1-p2-2),
+ python (>= 2.5) | python-pysqlite2 (>= 2.3.0-1) | python-pysqlite1.1 (>= 1.1.7-2) | python-sqlite (>= 1.0.1-5),
+ python-kinterbasdb (>= 3.1.2-0.3)
+Description: SQL toolkit and Object Relational Mapper for Python
+ SQLAlchemy is an SQL database abstraction library for Python.
+ Its strengths are:
+  * full power and flexibility of SQL. SQLAlchemy provides a full suite
+    of well known enterprise-level persistence patterns, designed for
+    efficient and high-performing database access, adapted into a simple
+    and Pythonic domain language.
+  * extremely easy to use for all the basic tasks, such as: accessing pooled
+    connections, constructing SQL from Python expressions, finding object
+    instances, and commiting object modifications back to the database.
+  * powerful enough for complicated tasks, such as: eager load a graph of
+    objects and their dependencies via joins; map recursive adjacency
+    structures automatically; map objects to not just tables but to any
+    arbitrary join or select statement; combine multiple tables together to
+    load whole sets of otherwise unrelated objects from a single result set;
+    commit entire graphs of object changes in one step.
+  * built to conform to what DBAs demand, including the ability to swap out
+    generated SQL with hand-optimized statements, full usage of bind parameters
+    for all literal values, fully transactionalized and consistent updates
+    using Unit of Work.
+  * modular. Different parts of SQLAlchemy can be used independently of the
+    rest, including the connection pool, SQL construction, and ORM. SQLAlchemy
+    is constructed in an open style that allows plenty of customization, with
+    an architecture that supports custom datatypes, custom SQL extensions, and
+    ORM plugins which can augment or extend mapping functionality.
+
+Package: python-sqlalchemy-doc
+Section: doc
+Architecture: all
+Recommends: python-sqlalchemy
+Conflicts: python-sqlalchemy (<= 0.3.0-1)
+Description: Documentation for the SQLAlchemy Python library
+ SQLAlchemy is an SQL database abstraction library for Python.
+ .
+ This package contains the documentation for SQLAlchemy in HTML format.
+ It's usable as a comprehensive reference, a user guide and a tutorial
+ all-in-one.
+
--- sqlalchemy-0.4.7p1.orig/debian/python-sqlalchemy-doc.docs
+++ sqlalchemy-0.4.7p1/debian/python-sqlalchemy-doc.docs
@@ -0,0 +1 @@
+doc
