Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 4 Jan 2014 18:04:24 GMT
From:      Matthias Petermann <matthias@petermann-it.de>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   ports/185470: [NEW PORT] devel/py-peewee (a small, expressive Python ORM)
Message-ID:  <201401041804.s04I4ONL084719@oldred.freebsd.org>
Resent-Message-ID: <201401041810.s04IA0Ax031511@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         185470
>Category:       ports
>Synopsis:       [NEW PORT] devel/py-peewee (a small, expressive Python ORM)
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Sat Jan 04 18:10:00 UTC 2014
>Closed-Date:
>Last-Modified:
>Originator:     Matthias Petermann
>Release:        9.2
>Organization:
>Environment:
FreeBSD workstation.local 9.2-RELEASE FreeBSD 9.2-RELEASE #0 r255898: Thu Sep 26 22:50:31 UTC 2013     root@bake.isc.freebsd.org:/usr/obj/usr/src/sys/GENERIC  amd64
>Description:
Peewee is a MIT licensed object relational mapper for Python. It allows access of relational databases (MySQL / MariaDB, PostgreSQL, SQLite3) in a pretty object oriented way. There is usually no need to write SQL.

There are some alternatives out there:

* SQLAlchemy (databases/py-sqlalchemy)
* SQLObject  (databases/py-sqlobject)
* Storm (not ported yet)

Peewee can be distinguished from the above by the following facts:

* portable (no native bindings required)
* small

The attached shar archive contains the port. I'd really appreciate it if someone could commit it.

Best regards,
Matthias


>How-To-Repeat:

>Fix:


Patch attached with submission follows:

# This is a shell archive.  Save it in a file, remove anything before
# this line, and then unpack it by entering "sh file".  Note, it may
# create directories; files and directories will be owned by you and
# have default permissions.
#
# This archive contains:
#
#	./py-peewee/
#	./py-peewee/Makefile
#	./py-peewee/distinfo
#	./py-peewee/pkg-descr
#	./py-peewee/pkg-plist
#
echo c - ./py-peewee/
mkdir -p ./py-peewee/ > /dev/null 2>&1
echo x - ./py-peewee/Makefile
sed 's/^X//' >./py-peewee/Makefile << '4addf5fbe286ecb1f9859e2dfcbc7f6b'
X# Created by: Matthias Petermann <matthias@petermann-it.de>
X# $FreeBSD$
X
XPORTNAME=	peewee
XPORTVERSION=	2.1.7
XCATEGORIES=	databases python
XMASTER_SITES=	CHEESESHOP
XPKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
X
XMAINTAINER=	matthias@petermann-it.de
XCOMMENT=	A small, expressive Python ORM
X
XLICENSE=	MIT
X
XOPTIONS_DEFINE=		DOCS SQLITE MYSQL PGSQL
XOPTIONS_DEFAULT=	SQLITE
XDOCS_DESC=		Install Documentation
XSQLITE_DESC=		Add runtime support for SQLite
XMYSQL_DESC=		Add runtime support for MySQL / MariaDB
XPGSQL_DESC=		Add runtime support for PostgreSQL
X
XUSE_PYTHON=		2.6+
XUSE_PYDISTUTILS=	easy_install
X
X.include <bsd.port.options.mk>
X
X.if ${PORT_OPTIONS:MSQLITE}
XRUN_DEPENDS+=	${PYTHON_LIBDIR}/lib-dynload/_sqlite3.so:${PORTSDIR}/databases/py-sqlite3
X.endif
X
X.if ${PORT_OPTIONS:MMYSQL}
XRUN_DEPENDS+=	${PYTHON_PKGNAMEPREFIX}MySQLdb>=1.2.3:${PORTSDIR}/databases/py-MySQLdb
X.endif
X
X.if ${PORT_OPTIONS:MPGSQL}
XRUN_DEPENDS+=	${PYTHON_PKGNAMEPREFIX}psycopg2>=2.5.1:${PORTSDIR}/databases/py-psycopg2
X.endif
X
Xpost-install:
X.if ${PORT_OPTIONS:MDOCS}
X	@${MKDIR} ${STAGEDIR}${DOCSDIR}
X	${INSTALL_DATA} ${WRKSRC}/README.rst ${STAGEDIR}${DOCSDIR}
X	${INSTALL_DATA} ${WRKSRC}/docs/${PORTNAME}/* ${STAGEDIR}${DOCSDIR}
X.endif
X
X.include <bsd.port.mk>
4addf5fbe286ecb1f9859e2dfcbc7f6b
echo x - ./py-peewee/distinfo
sed 's/^X//' >./py-peewee/distinfo << 'f33bbe31493b0580e6929dbc0f91c05c'
XSHA256 (peewee-2.1.7.tar.gz) = dd3f694817d940db77e312778424e622bf9d0ce01863dae73fa4d83bd4bb0411
XSIZE (peewee-2.1.7.tar.gz) = 1109242
f33bbe31493b0580e6929dbc0f91c05c
echo x - ./py-peewee/pkg-descr
sed 's/^X//' >./py-peewee/pkg-descr << '7d112efbc0dcc8a1113a7c9b604cc285'
XPeewee is a small, expressive ORM written in Python. It supports 
XPostgreSQL, MySQL and SQLite.
X
XWWW: http://peewee.readthedocs.org
7d112efbc0dcc8a1113a7c9b604cc285
echo x - ./py-peewee/pkg-plist
sed 's/^X//' >./py-peewee/pkg-plist << '222e8c477d629d5dc715053b711015a1'
Xbin/pwiz.py
X%%PYTHON_SITELIBDIR%%/peewee-2.1.7-py2.7.egg
X%%PORTDOCS%%%%DOCSDIR%%/README.rst
X%%PORTDOCS%%%%DOCSDIR%%/api.rst
X%%PORTDOCS%%%%DOCSDIR%%/cookbook.rst
X%%PORTDOCS%%%%DOCSDIR%%/database.rst
X%%PORTDOCS%%%%DOCSDIR%%/example.rst
X%%PORTDOCS%%%%DOCSDIR%%/expressions.rst
X%%PORTDOCS%%%%DOCSDIR%%/installation.rst
X%%PORTDOCS%%%%DOCSDIR%%/models.rst
X%%PORTDOCS%%%%DOCSDIR%%/playhouse.rst
X%%PORTDOCS%%%%DOCSDIR%%/querying.rst
X%%PORTDOCS%%%%DOCSDIR%%/quickstart.rst
X%%PORTDOCS%%%%DOCSDIR%%/schema.jpg
X%%PORTDOCS%%%%DOCSDIR%%/tweepee.jpg
X%%PORTDOCS%%%%DOCSDIR%%/upgrading.rst
X%%PORTDOCS%%@dirrm %%DOCSDIR%%
222e8c477d629d5dc715053b711015a1
exit



>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201401041804.s04I4ONL084719>