pkgsrc/databases/py-psycopg2/Makefile

20 lines
572 B
Makefile
Raw Normal View History

# $NetBSD: Makefile,v 1.29 2015/02/17 14:01:56 wiz Exp $
DISTNAME= psycopg2-2.6
PKGNAME= ${PYPKGPREFIX}-${DISTNAME}
CATEGORIES= databases python
MASTER_SITES= http://initd.org/psycopg/tarballs/PSYCOPG-2-6/
MAINTAINER= joerg@NetBSD.org
2010-09-09 16:32:26 +02:00
HOMEPAGE= http://initd.org/psycopg/
COMMENT= PostgreSQL database adapter for Python
Changes 2.2.2: * psycopg/cursor_type.c: executemany() propagates exceptions raised by the iterable to the caller. * lib/pool.py: dropped logging.basicConfig() call. It messes up with projects using logging but where no handler is installed on the root logger. * psycopg/cursor_type.c: exceptions raised in the columns iterator of the copy methods propagated to the caller. * psycopg/typecast_datetime.c: Round seconds in historical timezones to the nearest minute. * lib/extras.py: register_tstz_w_secs() is now no-op. Changes 2.2.1: * Builds again on Windows. Changes 2.2.0: * typecast.c: Fixed problem related to receiving None from Python when a string was expected. * psycopg/adapter_datetime.c: Fixed TimestampFromTicks for second values > 59.5. * psycopg/adapter_datetime.c: Fixed same bug for TimeFromTicks. * Added typecasters for arrays of specific MX/Py time-related types. * psycopg/adapter_[mx]datetime.c: Explicit cast of the SQL representation of time-related objects. * psycopg/adapter_binary.c: Adapt buffer objects using an explicit cast on the string literal * lib/pqpath.c: Fixed reference leak in notify reception. * Notifies are collected if available after every query execution. * lib/extensions.py: DECIMAL typecaster imported from _psycopg. * lib/extensions.py: PY* and MX* time typecaster imported from _psycopg. * psycopg/connection_type.c: Correctly parse keywords in connect(). * psycopg/pqpath.c: Ensure running COPY in blocking mode. * psycopg/pqpath.c: Free the GIL in blocking operations in V2 COPY FROM. * psycopg/pqpath.c: Evaluate Python objects only once outside the COPY I/O loops. * Fixed problem with asynchronous NOTIFYs. * Integrated async pacthes from Jan's git tree.
2010-09-07 08:13:12 +02:00
LICENSE= gnu-lgpl-v3
REPLACE_PYTHON+= tests/*.py
.include "../../lang/python/application.mk"
Update py-psycopg2 to 2.4.4. While here, let to register egg-info. What's new in psycopg 2.4.4 --------------------------- - 'register_composite()' also works with the types implicitly defined after a table row, not only with the ones created by 'CREATE TYPE'. - Values for the isolation level symbolic constants restored to what they were before release 2.4.2 to avoid breaking apps using the values instead of the constants. - Named DictCursor/RealDictCursor honour itersize (ticket #80). - Fixed rollback on error on Zope (ticket #73). - Raise 'DatabaseError' instead of 'Error' with empty libpq errors, consistently with other disconnection-related errors: regression introduced in release 2.4.1 (ticket #82). What's new in psycopg 2.4.3 --------------------------- - connect() supports all the keyword arguments supported by the database - Added 'new_array_type()' function for easy creation of array typecasters. - Added support for arrays of hstores and composite types (ticket #66). - Fixed segfault in case of transaction started with connection lost (and possibly other events). - Fixed adaptation of Decimal type in sub-interpreters, such as in certain mod_wsgi configurations (ticket #52). - Rollback connections in transaction or in error before putting them back into a pool. Also discard broken connections (ticket #62). - Lazy import of the slow uuid module, thanks to Marko Kreen. - Fixed NamedTupleCursor.executemany() (ticket #65). - Fixed --static-libpq setup option (ticket #64). - Fixed interaction between RealDictCursor and named cursors (ticket #67). - Dropped limit on the columns length in COPY operations (ticket #68). - Fixed reference leak with arguments referenced more than once in queries (ticket #81). - Fixed typecasting of arrays containing consecutive backslashes. - 'errorcodes' map updated to PostgreSQL 9.1.
2012-01-26 11:49:41 +01:00
.include "../../lang/python/distutils.mk"
.include "../../mk/pgsql.buildlink3.mk"
.include "../../mk/pthread.buildlink3.mk"
.include "../../mk/bsd.pkg.mk"