diff options
| author | adam <adam@pkgsrc.org> | 2019-03-06 08:37:57 +0000 |
|---|---|---|
| committer | adam <adam@pkgsrc.org> | 2019-03-06 08:37:57 +0000 |
| commit | d109918db93791f0724bbe6ca6a74c3a3d78138a (patch) | |
| tree | 9bbff26b7e28d44e968fc760242f1fd3dbb02145 /databases/py-peewee | |
| parent | 6c611e130b1d310b5a205932e239f3d40c67edb5 (diff) | |
| download | pkgsrc-d109918db93791f0724bbe6ca6a74c3a3d78138a.tar.gz | |
py-peewee: updated to 3.9.0
3.9.0:
New and improved stuff
Added new document describing how to use peewee interactively.
Added convenience functions for generating model classes from a pre-existing database, printing model definitions and printing CREATE TABLE sql for a model. See the "use peewee interactively" section for details.
Added a __str__ implementation to all Query subclasses which converts the query to a string and interpolates the parameters.
Improvements to sqlite_ext.JSONField regarding the serialization of data, as well as the addition of options to override the JSON serialization and de-serialization functions.
Added index_type parameter to Field
Added DatabaseProxy, which allows one to use database-specific decorators with an uninitialized Proxy object.
Added support for INSERT ... ON CONFLICT when the conflict target is a partial index (e.g., contains a WHERE clause). The OnConflict and on_conflict() APIs now take an additional conflict_where parameter to represent the WHERE clause of the partial index in question.
Enhanced the playhouse.kv extension to use efficient upsert for all database engines. Previously upsert was only supported for sqlite and mysql.
Re-added the orwhere() query filtering method, which will append the given expressions using OR instead of AND.
Added some new examples to the examples/ directory
Added select_from() API for wrapping a query and selecting one or more columns from the wrapped subquery. Docs.
Added documentation on using row values.
Removed the (defunct) "speedups" C extension, which as of 3.8.2 only contained a barely-faster function for quoting entities.
Bugfixes
Fix bug in SQL generation when there was a subquery that used a common table expressions.
Enhanced prefetch() and fixed bug that could occur when mixing self-referential foreign-keys and model aliases.
MariaDB 10.3.3 introduces backwards-incompatible changes to the SQL used for upsert. Peewee now introspects the MySQL server version at connection time to ensure proper handling of version-specific features.
Fixed bug where TimestampField would treat zero values as None when reading from the database.
Diffstat (limited to 'databases/py-peewee')
| -rw-r--r-- | databases/py-peewee/Makefile | 4 | ||||
| -rw-r--r-- | databases/py-peewee/PLIST | 3 | ||||
| -rw-r--r-- | databases/py-peewee/distinfo | 10 |
3 files changed, 8 insertions, 9 deletions
diff --git a/databases/py-peewee/Makefile b/databases/py-peewee/Makefile index b9ad9111785..ab0cad92ce0 100644 --- a/databases/py-peewee/Makefile +++ b/databases/py-peewee/Makefile @@ -1,6 +1,6 @@ -# $NetBSD: Makefile,v 1.51 2019/01/18 08:04:45 adam Exp $ +# $NetBSD: Makefile,v 1.52 2019/03/06 08:37:57 adam Exp $ -DISTNAME= peewee-3.8.2 +DISTNAME= peewee-3.9.0 PKGNAME= ${PYPKGPREFIX}-${DISTNAME} CATEGORIES= databases python MASTER_SITES= ${MASTER_SITE_PYPI:=p/peewee/} diff --git a/databases/py-peewee/PLIST b/databases/py-peewee/PLIST index 31af18b6e10..3c7cb36d250 100644 --- a/databases/py-peewee/PLIST +++ b/databases/py-peewee/PLIST @@ -1,4 +1,4 @@ -@comment $NetBSD: PLIST,v 1.18 2018/12/18 11:48:33 adam Exp $ +@comment $NetBSD: PLIST,v 1.19 2019/03/06 08:37:57 adam Exp $ bin/pwiz-${PYVERSSUFFIX} ${PYSITELIB}/${EGG_INFODIR}/PKG-INFO ${PYSITELIB}/${EGG_INFODIR}/SOURCES.txt @@ -11,7 +11,6 @@ ${PYSITELIB}/peewee.pyo ${PYSITELIB}/playhouse/__init__.py ${PYSITELIB}/playhouse/__init__.pyc ${PYSITELIB}/playhouse/__init__.pyo -${PYSITELIB}/playhouse/_speedups.so ${PYSITELIB}/playhouse/_sqlite_ext.so ${PYSITELIB}/playhouse/_sqlite_udf.so ${PYSITELIB}/playhouse/apsw_ext.py diff --git a/databases/py-peewee/distinfo b/databases/py-peewee/distinfo index acd6dc059d2..5ef7a6bfcc8 100644 --- a/databases/py-peewee/distinfo +++ b/databases/py-peewee/distinfo @@ -1,7 +1,7 @@ -$NetBSD: distinfo,v 1.45 2019/01/18 08:04:45 adam Exp $ +$NetBSD: distinfo,v 1.46 2019/03/06 08:37:57 adam Exp $ -SHA1 (peewee-3.8.2.tar.gz) = 8711fed0fc964efc47862318a88911035481f41e -RMD160 (peewee-3.8.2.tar.gz) = 70cc439456ed827078e12c1c06ce9fdb0f854dcd -SHA512 (peewee-3.8.2.tar.gz) = 3c9db9bc99b4743383513e99bb9be56bfa33b13b21ab876ecca3c9b46b19d98acdabbad2204ff36d6814477f785e56bfef9f3860603befb48cc1ba17ea928751 -Size (peewee-3.8.2.tar.gz) = 816562 bytes +SHA1 (peewee-3.9.0.tar.gz) = 959896743a5e21449ece9ec6427ebe460652ef07 +RMD160 (peewee-3.9.0.tar.gz) = f0798124f7b5a4622b962b8158a14461363bb2cf +SHA512 (peewee-3.9.0.tar.gz) = b830b1ebdabefa46599f96e6f49e4f0c3cc69e5e4477a48fed968d9b8d3223910a1da2fd647fa00c8c603fea9047b249c2e77ac210c54fb937474464aa6e2b2f +Size (peewee-3.9.0.tar.gz) = 2228206 bytes SHA1 (patch-setup.py) = 2d4d9fde18df606b584dffe04aa9da22de3e4dcc |
