py-peewee: updated to 3.7.0

3.7.0:

Backwards-incompatible changes
* Pool database close_all() method renamed to close_idle() to better
  reflect the actual behavior.
* Databases will now raise InterfaceError when connect() or close() are
  called on an uninitialized, deferred database object.

New features
* Add methods to the migrations extension to support adding and dropping table
  constraints.
* Add Model.bulk_create() method for bulk-inserting unsaved model instances.
* Add close_stale() method to the connection pool to support closing stale
  connections.
* The FlaskDB class in playhouse.flask_utils now accepts a model_class
  parameter, which can be used to specify a custom base-class for models.

Bugfixes
* Parentheses were not added to subqueries used in function calls with more
  than one argument.
* Fixed bug when attempting to serialize many-to-many fields which were created
  initially with a DeferredThroughModel.
* Fixed bug when using the Postgres ArrayField with an array of BlobField.
* Allow Proxy databases to be used as a context-manager.
* Fixed bug where the APSW driver was referring to the SQLite version from the
  standard library sqlite3 driver, rather than from apsw.
* Reflection library attempts to wrap server-side column defaults in quotation
  marks if the column data-type is text/varchar.
* Missing import in migrations library, which would cause errors when
  attempting to add indexes whose name exceeded 64 chars.
* When using the Postgres connection pool, ensure any open/pending transactions
  are rolled-back when the connection is recycled.
* Even *more* changes to the setup.py script. In this case I've added a
  helper function which will reliably determine if the SQLite3 extensions can
  be built. This follows the approach taken by the Python YAML package.
This commit is contained in:
adam 2018-09-07 09:01:09 +00:00
parent b7c6229320
commit e1f6392519
2 changed files with 9 additions and 10 deletions

View file

@ -1,6 +1,6 @@
# $NetBSD: Makefile,v 1.43 2018/07/20 09:38:49 adam Exp $
# $NetBSD: Makefile,v 1.44 2018/09/07 09:01:09 adam Exp $
DISTNAME= peewee-3.6.4
DISTNAME= peewee-3.7.0
PKGNAME= ${PYPKGPREFIX}-${DISTNAME}
CATEGORIES= databases python
MASTER_SITES= ${MASTER_SITE_PYPI:=p/peewee/}
@ -30,10 +30,9 @@ post-install:
${INSTALL_MAN} ${WRKSRC}/docs/_build/man/peewee.1 \
${DESTDIR}${PREFIX}/${PKGMANDIR}/man1/peewee${PYVERSSUFFIX}.1
# tests are not included in 3.6.4
# tests are not included in 3.7.0
do-test:
# cd ${WRKSRC} && ${SETENV} ${TEST_ENV} ${PYTHONBIN} runtests.py
${DO_NADA}
cd ${WRKSRC} && ${SETENV} ${TEST_ENV} ${PYTHONBIN} runtests.py
.include "../../databases/sqlite3/buildlink3.mk"
.include "../../devel/py-cython/buildlink3.mk"

View file

@ -1,6 +1,6 @@
$NetBSD: distinfo,v 1.39 2018/07/20 09:38:49 adam Exp $
$NetBSD: distinfo,v 1.40 2018/09/07 09:01:09 adam Exp $
SHA1 (peewee-3.6.4.tar.gz) = 74ee91e99de078fdd1707de0cd93ea977ea00efc
RMD160 (peewee-3.6.4.tar.gz) = 3fb31b0e3cd2b4daa295e30200b17d83f3740d8a
SHA512 (peewee-3.6.4.tar.gz) = ece645742f1b3eaea646fa596c802cb5a867829fb29399185f5e1689f82ca46a3ad2bb3aa10f9bcf010214bce8a2c898a582e8ea7496b175b86d8dffc0f50ee8
Size (peewee-3.6.4.tar.gz) = 2083203 bytes
SHA1 (peewee-3.7.0.tar.gz) = b46c48ee8a69d02678ea1ec99143b7192c3f2b7c
RMD160 (peewee-3.7.0.tar.gz) = ed4d9c0b99214f85a79b36eabccd588d04fa07a8
SHA512 (peewee-3.7.0.tar.gz) = 770a86cf4ee6bb7c8bdfaa63d2dea243fe46baeca181fa8349f95b071e3629e6abb63b9e95e4c215d8b3e793d6ee0e038c648d2a1b1dda581a8dc1c3af4b8843
Size (peewee-3.7.0.tar.gz) = 2166066 bytes