pkgsrc/databases/py-peewee/Makefile
fhajny 8c13579411 Update databases/py-peewee to 2.8.0.
This release includes a couple new field types and greatly improved
C extension support for both speedups and SQLite enhancements. Also
includes some work, suggested by @foxx, to remove some places where
Proxy was used in favor of more obvious APIs.

New features

- C extension speedups now enabled by default, includes faster
  implementations for dict and tuple QueryResultWrapper classes,
  faster date formatting, and a faster field and model sorting.
- C implementations of SQLite functions is now enabled by default.
  SQLite extension is now compatible with APSW and can be used in
  standalone form directly from Python.
- SQLite C extension now supports murmurhash2.
- UUIDField is now supported for SQLite and MySQL, using text and
  varchar respectively, thanks @foxx!
- Added BinaryField, thanks again, @foxx!
- Added PickledField to playhouse.fields.
- ManyToManyField now accepts a list of primary keys when adding or
  removing values from the through relationship.
- Added support for SQLite table-valued functions using the
  sqlite-vtfunc library.
- Significantly simplified the build process for compiling the
  C extensions.

Backwards-incompatible changes

- Instead of using a Proxy for defining circular foreign key
  relationships, you now need to use DeferredRelation.
- Instead of using a Proxy for defining many-to-many through tables,
  you now need to use DeferredThroughModel.
- SQLite Virtual Models must now use Meta.extension_module and
  Meta.extension_options to declare extension and any options.
- MySQL database will now issue COMMIT statements for SELECT queries.

Bugs fixed

- #766, fixed bug with PasswordField and Python3. Fuck Python 3.
- #768, fixed SortedFieldList and remove_field(). Thanks @klen!
- #771, clarified docs for APSW.
- #773, added docs for request hooks in Pyramid
- #774, prefetch() only loads first ForeignKeyField
  for a given relation.
- #782, fixed typo in docs.
- #791, foreign keys were not correctly handling coercing to
  the appropriate python value.
- #792, cleaned up some CSV utils code.
- #798, cleaned up iteration protocol in QueryResultWrappers.
- #806, not really a bug, but MySQL users were clowning around
  and needed help.

2.7.4

This is another small release which adds code to automatically build
the SQLite C extension if libsqlite is available. The release also
includes:

- Support for UUIDField with SQLite.
- Support for registering additional database classes with the db_url
  module via register_database.
- prefetch() supports fetching multiple foreign-keys to the same model
  class.
- Added method to validate FTS5 search queries.
2016-01-18 15:53:14 +00:00

28 lines
693 B
Makefile

# $NetBSD: Makefile,v 1.10 2016/01/18 15:53:14 fhajny Exp $
DISTNAME= peewee-2.8.0
PKGNAME= ${PYPKGPREFIX}-${DISTNAME}
CATEGORIES= databases
MASTER_SITES= ${MASTER_SITE_GITHUB:=coleifer/}
MAINTAINER= filip@joyent.com
HOMEPAGE= http://www.peewee-orm.com/
COMMENT= Small, expressive ORM for PostgreSQL, MySQL and SQLite
LICENSE= mit
GITHUB_PROJECT= peewee
USE_LANGUAGES= c
USE_TOOLS+= bash
MESSAGE_SUBST+= PYPKGPREFIX=${PYPKGPREFIX}
REPLACE_BASH+= playhouse/berkeley_build.sh
REPLACE_PYTHON+= pwiz.py
PYDISTUTILSPKG= yes
.include "../../devel/py-cython/buildlink3.mk"
.include "../../lang/python/application.mk"
.include "../../lang/python/extension.mk"
.include "../../mk/bsd.pkg.mk"