pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/databases/py-psycopg2 Import py-psycopg2-2.0.2, a rewr...
details: https://anonhg.NetBSD.org/pkgsrc/rev/e3c45b1efbb0
branches: trunk
changeset: 516009:e3c45b1efbb0
user: joerg <joerg%pkgsrc.org@localhost>
date: Wed Jul 12 16:34:39 2006 +0000
description:
Import py-psycopg2-2.0.2, a rewritten version of psycopg:
This is version 2, a complete rewrite of the original code to provide
new-style classes for connection and cursor objects and other
sweet candies. Like the original, psycopg 2 was written with the aim of
being very small and fast, and stable as a rock.
diffstat:
databases/py-psycopg2/DESCR | 19 +++++++++++++++++++
databases/py-psycopg2/Makefile | 19 +++++++++++++++++++
databases/py-psycopg2/PLIST | 21 +++++++++++++++++++++
databases/py-psycopg2/buildlink3.mk | 19 +++++++++++++++++++
databases/py-psycopg2/distinfo | 5 +++++
5 files changed, 83 insertions(+), 0 deletions(-)
diffs (103 lines):
diff -r cba7eff1cce0 -r e3c45b1efbb0 databases/py-psycopg2/DESCR
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/databases/py-psycopg2/DESCR Wed Jul 12 16:34:39 2006 +0000
@@ -0,0 +1,19 @@
+psycopg is a PostgreSQL database adapter for the Python programming language
+(just like pygresql and popy.) It was written from scratch with the aim of
+being very small and fast, and stable as a rock. The main advantages of
+psycopg are that it supports (well... *will* support) the full Python
+DBAPI-2.0 and being thread safe at level 2.
+
+psycopg is different from the other database adapter because it was designed
+for heavily multi-threaded applications that create and destroy lots of
+cursors and make a conspicuous number of concurrent INSERTs or UPDATEs.
+Every open Python connection keeps a pool of real (UNIX or TCP/IP) connections
+to the database. Every time a new cursor is created, a new connection does not
+need to be opened; instead one of the unused connections from the pool is
+used. That makes psycopg very fast in typical client-server applications that
+create a servicing thread every time a client request arrives.
+
+This is version 2, a complete rewrite of the original code to provide
+new-style classes for connection and cursor objects and other
+sweet candies. Like the original, psycopg 2 was written with the aim of
+being very small and fast, and stable as a rock.
diff -r cba7eff1cce0 -r e3c45b1efbb0 databases/py-psycopg2/Makefile
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/databases/py-psycopg2/Makefile Wed Jul 12 16:34:39 2006 +0000
@@ -0,0 +1,19 @@
+# $NetBSD: Makefile,v 1.1.1.1 2006/07/12 16:34:39 joerg Exp $
+#
+
+DISTNAME= psycopg2-2.0.2
+PKGNAME= ${PYPKGPREFIX}-${DISTNAME}
+CATEGORIES= databases python
+MASTER_SITES= http://initd.org/pub/software/psycopg/
+
+MAINTAINER= joerg%NetBSD.org@localhost
+HOMEPAGE= http://initd.org/software/psycopg
+COMMENT= PostgreSQL database adapter for Python
+
+PYDISTUTILSPKG= yes
+PYTHON_VERSIONS_ACCEPTED= 24 23
+
+.include "../../lang/python/extension.mk"
+.include "../../mk/pgsql.buildlink3.mk"
+.include "../../mk/pthread.buildlink3.mk"
+.include "../../mk/bsd.pkg.mk"
diff -r cba7eff1cce0 -r e3c45b1efbb0 databases/py-psycopg2/PLIST
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/databases/py-psycopg2/PLIST Wed Jul 12 16:34:39 2006 +0000
@@ -0,0 +1,21 @@
+@comment $NetBSD: PLIST,v 1.1.1.1 2006/07/12 16:34:39 joerg Exp $
+${PYSITELIB}/psycopg2/__init__.py
+${PYSITELIB}/psycopg2/__init__.pyc
+${PYSITELIB}/psycopg2/__init__.pyo
+${PYSITELIB}/psycopg2/_psycopg.so
+${PYSITELIB}/psycopg2/extensions.py
+${PYSITELIB}/psycopg2/extensions.pyc
+${PYSITELIB}/psycopg2/extensions.pyo
+${PYSITELIB}/psycopg2/extras.py
+${PYSITELIB}/psycopg2/extras.pyc
+${PYSITELIB}/psycopg2/extras.pyo
+${PYSITELIB}/psycopg2/pool.py
+${PYSITELIB}/psycopg2/pool.pyc
+${PYSITELIB}/psycopg2/pool.pyo
+${PYSITELIB}/psycopg2/psycopg1.py
+${PYSITELIB}/psycopg2/psycopg1.pyc
+${PYSITELIB}/psycopg2/psycopg1.pyo
+${PYSITELIB}/psycopg2/tz.py
+${PYSITELIB}/psycopg2/tz.pyc
+${PYSITELIB}/psycopg2/tz.pyo
+@dirrm ${PYSITELIB}/psycopg2
diff -r cba7eff1cce0 -r e3c45b1efbb0 databases/py-psycopg2/buildlink3.mk
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/databases/py-psycopg2/buildlink3.mk Wed Jul 12 16:34:39 2006 +0000
@@ -0,0 +1,19 @@
+# $NetBSD: buildlink3.mk,v 1.1.1.1 2006/07/12 16:34:39 joerg Exp $
+
+BUILDLINK_DEPTH:= ${BUILDLINK_DEPTH}+
+PY_PSYCOPG_BUILDLINK3_MK:= ${PY_PSYCOPG_BUILDLINK3_MK}+
+
+.if !empty(BUILDLINK_DEPTH:M+)
+BUILDLINK_DEPENDS+= psycopg
+.endif
+
+BUILDLINK_PACKAGES:= ${BUILDLINK_PACKAGES:Npsycopg}
+BUILDLINK_PACKAGES+= psycopg
+
+.if !empty(PY_PSYCOPG_BUILDLINK3_MK:M+)
+BUILDLINK_API_DEPENDS.psycopg+= ${PYPKGPREFIX}-psycopg>=1.1.21
+BUILDLINK_ABI_DEPENDS.psycopg?= ${PYPKGPREFIX}-psycopg>=1.1.21nb1
+BUILDLINK_PKGSRCDIR.psycopg?= ../../databases/py-psycopg
+.endif # PY_PSYCOPG_BUILDLINK3_MK
+
+BUILDLINK_DEPTH:= ${BUILDLINK_DEPTH:S/+$//}
diff -r cba7eff1cce0 -r e3c45b1efbb0 databases/py-psycopg2/distinfo
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/databases/py-psycopg2/distinfo Wed Jul 12 16:34:39 2006 +0000
@@ -0,0 +1,5 @@
+$NetBSD: distinfo,v 1.1.1.1 2006/07/12 16:34:39 joerg Exp $
+
+SHA1 (psycopg2-2.0.2.tar.gz) = 94c37b6cfdc7fa40cf5c9b4e1b6d2b774f7b1ee2
+RMD160 (psycopg2-2.0.2.tar.gz) = 8a56c952eda241ebc000bd9455c3482ee5890345
+Size (psycopg2-2.0.2.tar.gz) = 279200 bytes
Home |
Main Index |
Thread Index |
Old Index