debian/0000775000000000000000000000000012316371254007174 5ustar debian/source/0000775000000000000000000000000012270260051010463 5ustar debian/source/format0000664000000000000000000000001412270260051011671 0ustar 3.0 (quilt) debian/copyright0000664000000000000000000001411012271741231011120 0ustar Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ Upstream-Name: py-postgresql Upstream-Contact: James William Pye Source: http://python.projects.pgfoundry.org/ Files: * Copyright: 2004-2013 James William Pye License: BSD-3 Files: postgresql/test/test_dbapi20.py: Copyright: 2003 Stuart Bishop License: BSD-3 Files: postgresql/resolved/crypt.py Copyright: Copyright (C) 2000,2001,2004 Carey Evans Comment: not shipped in binary package, not required for build License: Evans-fcrypt Files: debian/* Copyright: 2010-2014 William Grzybowski , Daniel Kahn Gillmor License: BSD-3 License: BSD-3 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 the James William Pye 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 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. License: Evans-fcrypt Permission to use, copy, modify, and distribute this software and its documentation for any purpose and without fee is hereby granted, provided that the above copyright notice appear in all copies and that both that copyright notice and this permission notice appear in supporting documentation. . CAREY EVANS DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL CAREY EVANS BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. . Based on C code by Eric Young (eay@mincom.oz.au), which has the following copyright. Especially note condition 3, which imposes extra restrictions on top of the standard Python license used above. . The fcrypt.c source is available from: ftp://ftp.psy.uq.oz.au/pub/Crypto/DES/ ----- BEGIN fcrypt.c LICENSE ----- . This library is free for commercial and non-commercial use as long as the following conditions are aheared to. The following conditions apply to all code found in this distribution, be it the RC4, RSA, lhash, DES, etc., code; not just the SSL code. The SSL documentation included with this distribution is covered by the same copyright terms except that the holder is Tim Hudson (tjh@mincom.oz.au). . Copyright remains Eric Young's, and as such any Copyright notices in the code are not to be removed. If this package is used in a product, Eric Young should be given attribution as the author of the parts of the library used. This can be in the form of a textual message at program startup or in documentation (online or textual) provided with the package. . 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 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 acknowledgement: "This product includes cryptographic software written by Eric Young (eay@mincom.oz.au)" The word 'cryptographic' can be left out if the rouines from the library being used are not cryptographic related :-). 4. If you include any Windows specific code (or a derivative thereof) from the apps directory (application code) you must include an acknowledgement: "This product includes software written by Tim Hudson (tjh@mincom.oz.au)" . THIS SOFTWARE IS PROVIDED BY ERIC YOUNG ``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 AUTHOR 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. . The licence and distribution terms for any publically available version or derivative of this code cannot be changed. i.e. this code cannot simply be copied and put under another distribution licence [including the GNU Public Licence.] . ----- END fcrypt.c LICENSE ----- debian/changelog0000664000000000000000000000172612316371254011054 0ustar py-postgresql (1.1.0-1build1) trusty; urgency=medium * No change rebuild to drop python3.3 compiled extension. -- Dimitri John Ledkov Mon, 31 Mar 2014 23:56:44 +0100 py-postgresql (1.1.0-1) unstable; urgency=low [ Jakub Wilk ] * Use canonical URIs for Vcs-* fields. [ Daniel Kahn Gillmor ] * New upstream release (Closes: #736447, #724597) * update debian/watch (Closes: #736450) * bump debhelper to 9 * Add dependency on python3-ipaddr * bump Standards-Version to 3.9.5 (no changes needed) * refreshed add_libpath.patch * added myself to Uploaders as part of the python-modules-team * replaced resolved/crypt with crypt from libpython3-stdlib to reduce licensing silliness -- Daniel Kahn Gillmor Thu, 23 Jan 2014 13:44:16 -0500 py-postgresql (1.0.2-1) unstable; urgency=low * Initial release (Closes: #591048) -- William Grzybowski Thu, 31 Jul 2010 10:47:56 +0000 debian/control0000664000000000000000000000244612316371254010605 0ustar Source: py-postgresql Section: python Priority: optional Maintainer: Ubuntu Developers XSBC-Original-Maintainer: William Grzybowski Uploaders: Debian Python Modules Team , Daniel Kahn Gillmor Build-Depends: debhelper (>= 9), python3-all-dev, python3-sphinx, python-sphinx Standards-Version: 3.9.5 X-Python3-Version: >= 3.1 Homepage: http://python.projects.postgresql.org/ Vcs-Svn: svn://anonscm.debian.org/python-modules/packages/py-postgresql/trunk/ Vcs-Browser: http://anonscm.debian.org/viewvc/python-modules/packages/py-postgresql/trunk/ Package: python3-postgresql Architecture: any Depends: ${python3:Depends}, ${misc:Depends}, ${shlibs:Depends}, libpython3-stdlib, python3-ipaddr, libjs-jquery, libjs-underscore Description: pgsql driver, cluster management tools, and client tools py-postgresql is a python3 DB-API driver, including cluster management tools and client development tools. Written in pure Python 3 with optional optimizations written in C. . It provides support for protocol-level prepared statements, the COPY interface, arrays and composite types, and a console to run quick tests and simple scripts in PostgreSQL called pg_python. debian/python3-postgresql.doc-base0000664000000000000000000000046712270260051014376 0ustar Document: python3-postgresql Title: Python3-postgresql Manual Author: James William Pye Abstract: This manual describes how to use py-postgresql and its API. Section: Programming/Python Format: HTML Index: /usr/share/doc/python3-postgresql/html/index.html Files: /usr/share/doc/python3-postgresql/html/*.html debian/rules0000775000000000000000000000230612271741430010252 0ustar #!/usr/bin/make -f # -*- makefile -*- build3vers := $(shell py3versions -rv) override_dh_auto_build: set -e ; \ for i in $(build3vers); do \ python$$i ./setup.py build;\ done rm -f build/*/postgresql/resolved/crypt.py # avoid shipping crypt.py since we rely on libpython3-stdlib instead (cd postgresql/documentation/sphinx && ./build.sh) mkdir -p build/docs/html/doctrees cp -r postgresql/documentation/html build/docs/ rm -f build/docs/html/_static/jquery.js build/docs/html/_static/underscore.js rm -f build/docs/html/.gitignore override_dh_auto_install: dh_install -ppython3-postgresql mkdir -p $(CURDIR)/debian/python3-postgresql/usr/share/python3-postgresql/ set -e ; \ for i in $(build3vers); do \ python$$i ./setup.py install --root $(CURDIR)/debian/python3-postgresql; \ rm -rf $(CURDIR)/debian/python3-postgresql/usr/local/lib/python$$i/dist-packages/postgresql/documentation; \ mv $(CURDIR)/debian/python3-postgresql/usr/local/lib/python$$i/dist-packages/postgresql/lib/libsys.sql $(CURDIR)/debian/python3-postgresql/usr/share/python3-postgresql/; \ done override_dh_compress: dh_compress -X.js override_dh_auto_clean: dh_clean rm -rf build rm -rf html %: dh $@ --with python3 debian/watch0000664000000000000000000000022312270261011010206 0ustar version=3 opts=filenamemangle=s/.+\/v?(\d\S*)\.tar\.gz/-$1\.tar\.gz/ \ https://github.com/python-postgres/fe/tags .*/v?(\d\S*)\.tar\.gz debian/patches/0000775000000000000000000000000012271740143010620 5ustar debian/patches/use_stock_crypt.patch0000664000000000000000000000042112271740143015056 0ustar --- a/postgresql/protocol/xact3.py +++ b/postgresql/protocol/xact3.py @@ -15,7 +15,7 @@ from . import element3 as element from hashlib import md5 -from ..resolved.crypt import crypt +from crypt import crypt try: from ..port.optimized import consume_tuple_messages debian/patches/use_python3_for_sphinx.patch0000664000000000000000000000050012271253211016346 0ustar --- a/postgresql/documentation/sphinx/build.sh +++ b/postgresql/documentation/sphinx/build.sh @@ -30,5 +30,5 @@ EOF mkdir -p ../html/doctrees -sphinx-build -c "$(pwd)" -E -b html -d ../html/doctrees .. ../html +python3 "$(which sphinx-build)" -c "$(pwd)" -E -b html -d ../html/doctrees .. ../html cd ../html && pwd debian/patches/add_libpath.patch0000664000000000000000000000061712270263251014077 0ustar Abstract: Add /usr/share/python3-postgresql to the py-postgresql libpath Author: William Grzybowski Last-Update: 2010-08-04 --- a/postgresql/sys.py +++ b/postgresql/sys.py @@ -26,7 +26,7 @@ from .python.element import format_element from .python.string import indent -libpath = [] +libpath = ['/usr/share/python3-postgresql/',] def default_errformat(val): """ debian/patches/series0000664000000000000000000000010512271740111012024 0ustar add_libpath.patch use_python3_for_sphinx.patch use_stock_crypt.patch debian/docs0000664000000000000000000000003712270260051010036 0ustar README AUTHORS build/docs/html debian/compat0000664000000000000000000000000212270261476010375 0ustar 9 debian/links0000664000000000000000000000031012271255713010232 0ustar usr/share/javascript/jquery/jquery.js usr/share/doc/python3-postgresql/html/_static/jquery.js usr/share/javascript/underscore/underscore.js usr/share/doc/python3-postgresql/html/_static/underscore.js