[Midnightbsd-cvs] mports [16564] trunk/databases: add postgres fast python lib.
laffer1 at midnightbsd.org
laffer1 at midnightbsd.org
Fri Aug 22 22:56:30 EDT 2014
Revision: 16564
http://svnweb.midnightbsd.org/mports/?rev=16564
Author: laffer1
Date: 2014-08-22 22:56:29 -0400 (Fri, 22 Aug 2014)
Log Message:
-----------
add postgres fast python lib.
Modified Paths:
--------------
trunk/databases/Makefile
Added Paths:
-----------
trunk/databases/py-psycopg2/
trunk/databases/py-psycopg2/Makefile
trunk/databases/py-psycopg2/distinfo
trunk/databases/py-psycopg2/pkg-descr
Modified: trunk/databases/Makefile
===================================================================
--- trunk/databases/Makefile 2014-08-23 02:52:35 UTC (rev 16563)
+++ trunk/databases/Makefile 2014-08-23 02:56:29 UTC (rev 16564)
@@ -96,6 +96,7 @@
SUBDIR += py-gdbm
SUBDIR += py-mysql2pgsql
SUBDIR += py-postgresql
+SUBDIR += py-psycopg2
SUBDIR += py-sqlite3
SUBDIR += py-sqlite3dbm
SUBDIR += qdbm
Added: trunk/databases/py-psycopg2/Makefile
===================================================================
--- trunk/databases/py-psycopg2/Makefile (rev 0)
+++ trunk/databases/py-psycopg2/Makefile 2014-08-23 02:56:29 UTC (rev 16564)
@@ -0,0 +1,38 @@
+# $MidnightBSD$
+
+PORTNAME= psycopg2
+PORTVERSION= 2.5.3
+CATEGORIES= databases python
+MASTER_SITES= http://initd.org/psycopg/tarballs/PSYCOPG-2-5/ \
+ CHEESESHOP
+PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
+
+MAINTAINER= ports at MidnightBSD.org
+COMMENT= High performance Python adapter for PostgreSQL
+
+LICENSE= lgpl3
+LICENSE_FILE= ${WRKSRC}/LICENSE
+
+USE_PGSQL= yes
+USE_PYTHON= yes
+USE_PYDISTUTILS= yes
+PYDISTUTILS_AUTOPLIST= yes
+
+DOCSDIR= ${PREFIX}/share/doc/py-psycopg2
+EXAMPLESDIR= ${PREFIX}/share/examples/py-psycopg2
+
+PORTEXAMPLES= binary.py copy_from.py copy_to.py cursor.py dialtone.py \
+ dict.py dt.py encoding.py fetch.py lastrowid.py lobject.py \
+ mogrify.py myfirstrecipe.py notify.py simple.py somehackers.jpg \
+ threads.py typecast.py tz.py usercast.py whereareyou.jpg
+
+PORTDOCS= AUTHORS INSTALL README NEWS PKG-INFO
+
+post-install:
+ @${MKDIR} ${EXAMPLESDIR}
+ ${INSTALL_DATA} ${PORTEXAMPLES:S,^,${WRKSRC}/examples/,} ${EXAMPLESDIR}
+
+ @${MKDIR} ${DOCSDIR}
+ ${INSTALL_DATA} ${PORTDOCS:S,^,${WRKSRC}/,} ${DOCSDIR}
+
+.include <bsd.port.mk>
Added: trunk/databases/py-psycopg2/distinfo
===================================================================
--- trunk/databases/py-psycopg2/distinfo (rev 0)
+++ trunk/databases/py-psycopg2/distinfo 2014-08-23 02:56:29 UTC (rev 16564)
@@ -0,0 +1,2 @@
+SHA256 (psycopg2-2.5.3.tar.gz) = 3a2df3bb113187227aa97d0dd3d06e0f26be3d50dcdeeaef67fac59ed51a030a
+SIZE (psycopg2-2.5.3.tar.gz) = 690689
Added: trunk/databases/py-psycopg2/pkg-descr
===================================================================
--- trunk/databases/py-psycopg2/pkg-descr (rev 0)
+++ trunk/databases/py-psycopg2/pkg-descr 2014-08-23 02:56:29 UTC (rev 16564)
@@ -0,0 +1,14 @@
+psycopg2 is a PostgreSQL database adapter for the Python programming language.
+It was written from scratch with the aim of being small, fast and stable. It
+supports the full Python DBAPI-2.0 and is thread safe.
+
+psycopg2 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.
+
+WWW: http://initd.org/psycopg/
More information about the Midnightbsd-cvs
mailing list