summaryrefslogtreecommitdiff
path: root/databases
diff options
context:
space:
mode:
authordarcy <darcy@pkgsrc.org>2013-01-03 13:58:35 +0000
committerdarcy <darcy@pkgsrc.org>2013-01-03 13:58:35 +0000
commit1bdd23687232ae9d509c1efc1d742f35772e7b26 (patch)
treed0cdba92be7435673cb3ba8dde6ea4b4219f5895 /databases
parent343ce7d09dc9a605d6734222c4b60630ba7f263f (diff)
downloadpkgsrc-1bdd23687232ae9d509c1efc1d742f35772e7b26.tar.gz
Upgrade to version 4.1.
Changes since 4.0: - Dropped support for Python below 2.5 and PostgreSQL below 8.3. - Added support for Python up to 2.7 and PostgreSQL up to 9.2. - Particularly, support PQescapeLiteral() and PQescapeIdentifier(). - The query method of the classic API now supports positional parameters. This an effective way to pass arbitrary or unknown data without worrying about SQL injection or syntax errors (contribution by Patrick TJ McPhee). - The classic API now supports a method namedresult() in addition to getresult() and dictresult(), which returns the rows of the result as named tuples if these are supported (Python 2.6 or higher). - The classic API has got the new methods begin(), commit(), rollback(), savepoint() and release() for handling transactions. - Both classic and DBAPI 2 connections can now be used as context managers for encapsulating transactions. - The execute() and executemany() methods now return the cursor object, so you can now write statements like "for row in cursor.execute(...)" (as suggested by Adam Frederick). - Binary objects are now automatically escaped and unescaped. - Bug in money quoting fixed. Amounts of $0.00 handled correctly. - Proper handling of date and time objects as input. - Proper handling of floats with 'nan' or 'inf' values as input. - Fixed the set_decimal() function. - All DatabaseError instances now have a sqlstate attribute. - The getnotify() method can now also return payload strings (#15). - Better support for notice processing with the new methods set_notice_receiver() and get_notice_receiver() (as suggested by Michael Filonenko, see #12 and #37). - Open transactions are rolled back when pgdb connections are closed (as suggested by Peter Harris, see #46). - Connections and cursors can now be used with the "with" statement (as suggested by Peter Harris, see #46). - New method use_regtypes() that can be called to let getattnames() return regular type names instead of the simplified classic types (#44).
Diffstat (limited to 'databases')
-rw-r--r--databases/py-postgresql/Makefile8
-rw-r--r--databases/py-postgresql/PLIST6
-rw-r--r--databases/py-postgresql/distinfo8
3 files changed, 13 insertions, 9 deletions
diff --git a/databases/py-postgresql/Makefile b/databases/py-postgresql/Makefile
index 5ac038388de..5e877af2e38 100644
--- a/databases/py-postgresql/Makefile
+++ b/databases/py-postgresql/Makefile
@@ -1,8 +1,7 @@
-# $NetBSD: Makefile,v 1.65 2012/10/02 21:25:49 asau Exp $
+# $NetBSD: Makefile,v 1.66 2013/01/03 13:58:35 darcy Exp $
-DISTNAME= PyGreSQL-4.0
-PKGNAME= ${PYPKGPREFIX}-postgresql-4.0
-PKGREVISION= 3
+DISTNAME= PyGreSQL-4.1
+PKGNAME= ${PYPKGPREFIX}-postgresql-4.1
CATEGORIES= databases python
MASTER_SITES= http://pygresql.org/files/
EXTRACT_SUFX= .tgz
@@ -14,6 +13,7 @@ COMMENT= Python interface to PostgreSQL
MAKE_ENV+= MANDIR=${PREFIX}/${PKGMANDIR}
MAKE_ENV+= BINDIR=${PREFIX}/bin
USE_TOOLS+= gmake
+LICENSE= postgresql-license
MAKE_FILE= GNUmakefile
MAKE_ENV+= INSTALLED_LIBPQ=1
diff --git a/databases/py-postgresql/PLIST b/databases/py-postgresql/PLIST
index 535c8534dcf..8716c179f1d 100644
--- a/databases/py-postgresql/PLIST
+++ b/databases/py-postgresql/PLIST
@@ -1,4 +1,4 @@
-@comment $NetBSD: PLIST,v 1.8 2009/06/14 17:43:22 joerg Exp $
+@comment $NetBSD: PLIST,v 1.9 2013/01/03 13:58:35 darcy Exp $
${PYSITELIB}/_pg.so
${PYSITELIB}/pg.py
${PYSITELIB}/pg.pyc
@@ -6,6 +6,10 @@ ${PYSITELIB}/pg.pyo
${PYSITELIB}/pgdb.py
${PYSITELIB}/pgdb.pyc
${PYSITELIB}/pgdb.pyo
+${PYSITELIB}/PyGreSQL-4.1-py2.7.egg-info/PKG-INFO
+${PYSITELIB}/PyGreSQL-4.1-py2.7.egg-info/SOURCES.txt
+${PYSITELIB}/PyGreSQL-4.1-py2.7.egg-info/dependency_links.txt
+${PYSITELIB}/PyGreSQL-4.1-py2.7.egg-info/top_level.txt
share/doc/${PYPKGPREFIX}-postgresql/docs/announce.html
share/doc/${PYPKGPREFIX}-postgresql/docs/announce.txt
share/doc/${PYPKGPREFIX}-postgresql/docs/changelog.html
diff --git a/databases/py-postgresql/distinfo b/databases/py-postgresql/distinfo
index 461ad5d5ad2..dbda4f60f86 100644
--- a/databases/py-postgresql/distinfo
+++ b/databases/py-postgresql/distinfo
@@ -1,5 +1,5 @@
-$NetBSD: distinfo,v 1.14 2009/01/01 13:21:44 darcy Exp $
+$NetBSD: distinfo,v 1.15 2013/01/03 13:58:35 darcy Exp $
-SHA1 (PyGreSQL-4.0.tgz) = faeb31b6c8d62bf56cad00ff8fbeb7426623422b
-RMD160 (PyGreSQL-4.0.tgz) = 633364ddaa01166db201754e005067d211591864
-Size (PyGreSQL-4.0.tgz) = 89528 bytes
+SHA1 (PyGreSQL-4.1.tgz) = b091329950a7ba9e18ee9ee1af6b767889bc21b2
+RMD160 (PyGreSQL-4.1.tgz) = e1015903c9b080d404843fffe9897bc826ee13e3
+Size (PyGreSQL-4.1.tgz) = 99407 bytes