diff options
author | adam <adam@pkgsrc.org> | 2011-04-15 13:28:26 +0000 |
---|---|---|
committer | adam <adam@pkgsrc.org> | 2011-04-15 13:28:26 +0000 |
commit | efa2829ec57ac74f2ff9cb0b0bf334ce1cb22023 (patch) | |
tree | 037cb07a14658b7e32c739162b8f4e911a2764cf /databases | |
parent | 25b5841f0ea0e23c22eb4b9176ac1cf060c62eaa (diff) | |
download | pkgsrc-efa2829ec57ac74f2ff9cb0b0bf334ce1cb22023.tar.gz |
Changes 2.4:
* New features and changes:
- Added support for Python 3.1 and 3.2. The conversion has also
brought several improvements:
- Added 'b' and 't' mode to large objects: write can deal with both
bytes strings and unicode; read can return either bytes strings
or decoded unicode.
- COPY sends Unicode data to files implementing 'io.TextIOBase'.
- Improved PostgreSQL-Python encodings mapping.
- Added a few missing encodings: EUC_CN, EUC_JIS_2004, ISO885910,
ISO885916, LATIN10, SHIFT_JIS_2004.
- Dropped repeated dictionary lookups with unicode query/parameters.
- Improvements to the named cusors:
- More efficient iteration on named cursors, fetching 'itersize'
records at time from the backend.
- The named cursors name can be an invalid identifier.
- Improvements in data handling:
- Added 'register_composite()' function to cast PostgreSQL
composite types into Python tuples/namedtuples.
- Adapt types 'bytearray' (from Python 2.6), 'memoryview' (from
Python 2.7) and other objects implementing the "Revised Buffer
Protocol" to 'bytea' data type.
- The 'hstore' adapter can work even when the data type is not
installed in the 'public' namespace.
- Raise a clean exception instead of returning bad data when
receiving bytea in 'hex' format and the client libpq can't parse
them.
- Empty lists correctly roundtrip Python -> PostgreSQL -> Python.
- Other changes:
- 'cursor.description' is provided as named tuples if available.
- The build script refuses to guess values if 'pg_config' is not
found.
- Connections and cursors are weakly referenceable.
* Bug fixes
Diffstat (limited to 'databases')
-rw-r--r-- | databases/py-psycopg2/Makefile | 6 | ||||
-rw-r--r-- | databases/py-psycopg2/PLIST | 5 | ||||
-rw-r--r-- | databases/py-psycopg2/distinfo | 8 |
3 files changed, 11 insertions, 8 deletions
diff --git a/databases/py-psycopg2/Makefile b/databases/py-psycopg2/Makefile index 16bcfcd9dca..1d6b819859f 100644 --- a/databases/py-psycopg2/Makefile +++ b/databases/py-psycopg2/Makefile @@ -1,9 +1,9 @@ -# $NetBSD: Makefile,v 1.13 2011/01/20 09:55:30 adam Exp $ +# $NetBSD: Makefile,v 1.14 2011/04/15 13:28:26 adam Exp $ -DISTNAME= psycopg2-2.3.2 +DISTNAME= psycopg2-2.4 PKGNAME= ${PYPKGPREFIX}-${DISTNAME} CATEGORIES= databases python -MASTER_SITES= http://initd.org/psycopg/tarballs/ +MASTER_SITES= http://initd.org/psycopg/tarballs/PSYCOPG-2-4/ MAINTAINER= joerg@NetBSD.org HOMEPAGE= http://initd.org/psycopg/ diff --git a/databases/py-psycopg2/PLIST b/databases/py-psycopg2/PLIST index 068524a9a93..ea15cf59ba9 100644 --- a/databases/py-psycopg2/PLIST +++ b/databases/py-psycopg2/PLIST @@ -1,4 +1,4 @@ -@comment $NetBSD: PLIST,v 1.4 2011/01/20 09:55:30 adam Exp $ +@comment $NetBSD: PLIST,v 1.5 2011/04/15 13:28:26 adam Exp $ ${PYSITELIB}/psycopg2/__init__.py ${PYSITELIB}/psycopg2/__init__.pyc ${PYSITELIB}/psycopg2/__init__.pyo @@ -72,6 +72,9 @@ ${PYSITELIB}/psycopg2/tests/test_quote.pyo ${PYSITELIB}/psycopg2/tests/test_transaction.py ${PYSITELIB}/psycopg2/tests/test_transaction.pyc ${PYSITELIB}/psycopg2/tests/test_transaction.pyo +${PYSITELIB}/psycopg2/tests/testconfig.py +${PYSITELIB}/psycopg2/tests/testconfig.pyc +${PYSITELIB}/psycopg2/tests/testconfig.pyo ${PYSITELIB}/psycopg2/tests/testutils.py ${PYSITELIB}/psycopg2/tests/testutils.pyc ${PYSITELIB}/psycopg2/tests/testutils.pyo diff --git a/databases/py-psycopg2/distinfo b/databases/py-psycopg2/distinfo index ef3b2eb1d52..16e153198dd 100644 --- a/databases/py-psycopg2/distinfo +++ b/databases/py-psycopg2/distinfo @@ -1,5 +1,5 @@ -$NetBSD: distinfo,v 1.7 2011/01/20 09:55:30 adam Exp $ +$NetBSD: distinfo,v 1.8 2011/04/15 13:28:26 adam Exp $ -SHA1 (psycopg2-2.3.2.tar.gz) = 221c1b7d3c1d352ff0bad7ee5ca13fea6e9be3d0 -RMD160 (psycopg2-2.3.2.tar.gz) = 4b0247a9cb823ce172e00b79af230777c4e6c0e6 -Size (psycopg2-2.3.2.tar.gz) = 587987 bytes +SHA1 (psycopg2-2.4.tar.gz) = e5e85f2bc58baf09a0a60ab254644064f6b15a4b +RMD160 (psycopg2-2.4.tar.gz) = 90b82c928bc1e8d9b44535aadfba382d9144a421 +Size (psycopg2-2.4.tar.gz) = 645573 bytes |