pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/databases/py-peewee py-peewee: updated to 3.5.2



details:   https://anonhg.NetBSD.org/pkgsrc/rev/dc7a35a248bc
branches:  trunk
changeset: 382424:dc7a35a248bc
user:      adam <adam%pkgsrc.org@localhost>
date:      Wed Jul 04 03:56:46 2018 +0000

description:
py-peewee: updated to 3.5.2

3.5.2:

New guide to using window functions in Peewee.
New and improved table name auto-generation. This feature is not backwards compatible, so it is disabled by default. To enable, set legacy_table_names=False in your model's Meta options. For more 
details, see table names documentation.
Allow passing single fields/columns to window function order_by and partition_by arguments.
Support for FILTER (WHERE...) clauses with window functions and aggregates.
Added IdentityField class suitable for use with Postgres 10's new identity column type. It can be used anywhere AutoField or BigAutoField was being used previously.
Fixed bug creating indexes on tables that are in attached databases (SQLite).
Fixed obscure bug when using prefetch() and ModelAlias to populate a back-reference related model.


3.5.1:

New features
------------
New documentation for working with relationships in Peewee.
Improved tests and documentation for MySQL upsert functionality.
Allow database parameter to be specified with ModelSelect.get() method.
Add QualifiedNames helper to peewee module exports.
Add temporary= meta option to support temporary tables.
Allow a Database object to be passed to constructor of DataSet helper.

Bug fixes
---------
Fixed edge-case where attempting to alias a field to it's underlying column-name (when different), Peewee would not respect the alias and use the field name instead.
Raise a ValueError when joining and aliasing the join to a foreign-key's object_id_name descriptor. Should prevent accidentally introducing O(n) queries or silently ignoring data from a 
joined-instance.
Fixed bug for MySQL when creating a foreign-key to a model which used the BigAutoField for it's primary-key.
Fixed bugs in the implementation of user-defined aggregates and extensions with the APSW SQLite driver.
Fixed regression introduced in 3.5.0 which ignored custom Model __repr__().
Fixed regression from 2.x in which inserting from a query using a SQL() was no longer working.

diffstat:

 databases/py-peewee/Makefile |  13 ++++---------
 databases/py-peewee/PLIST    |   3 ++-
 databases/py-peewee/distinfo |  10 +++++-----
 3 files changed, 11 insertions(+), 15 deletions(-)

diffs (72 lines):

diff -r 0100c8ca388c -r dc7a35a248bc databases/py-peewee/Makefile
--- a/databases/py-peewee/Makefile      Wed Jul 04 03:43:12 2018 +0000
+++ b/databases/py-peewee/Makefile      Wed Jul 04 03:56:46 2018 +0000
@@ -1,6 +1,6 @@
-# $NetBSD: Makefile,v 1.40 2018/06/04 10:20:01 fhajny Exp $
+# $NetBSD: Makefile,v 1.41 2018/07/04 03:56:46 adam Exp $
 
-DISTNAME=      peewee-3.5.0
+DISTNAME=      peewee-3.5.2
 PKGNAME=       ${PYPKGPREFIX}-${DISTNAME}
 CATEGORIES=    databases python
 MASTER_SITES=  ${MASTER_SITE_PYPI:=p/peewee/}
@@ -10,8 +10,6 @@
 COMMENT=       Small, expressive ORM for PostgreSQL, MySQL and SQLite
 LICENSE=       mit
 
-GITHUB_PROJECT=        peewee
-
 BUILD_DEPENDS+=        ${PYPKGPREFIX}-sphinx-[0-9]*:../../textproc/py-sphinx
 TEST_DEPENDS+= ${PYPKGPREFIX}-sqlite3-[0-9]*:../../databases/py-sqlite3
 
@@ -22,16 +20,13 @@
 
 REPLACE_PYTHON+=       pwiz.py
 
-PYDISTUTILSPKG=                yes
-
 INSTALLATION_DIRS+=    ${PKGMANDIR}/man1
 
 post-build:
        cd ${WRKSRC}/docs && ${BUILD_MAKE_CMD} man
 
 post-install:
-       ${MV} ${DESTDIR}${PREFIX}/bin/pwiz.py \
-               ${DESTDIR}${PREFIX}/bin/pwiz${PYVERSSUFFIX}
+       cd ${DESTDIR}${PREFIX}/bin && ${MV} pwiz.py pwiz${PYVERSSUFFIX} || ${TRUE}
        ${INSTALL_MAN} ${WRKSRC}/docs/_build/man/peewee.1 \
                ${DESTDIR}${PREFIX}/${PKGMANDIR}/man1/peewee${PYVERSSUFFIX}.1
 
@@ -41,5 +36,5 @@
 .include "../../databases/sqlite3/buildlink3.mk"
 .include "../../devel/py-cython/buildlink3.mk"
 .include "../../lang/python/application.mk"
-.include "../../lang/python/extension.mk"
+.include "../../lang/python/distutils.mk"
 .include "../../mk/bsd.pkg.mk"
diff -r 0100c8ca388c -r dc7a35a248bc databases/py-peewee/PLIST
--- a/databases/py-peewee/PLIST Wed Jul 04 03:43:12 2018 +0000
+++ b/databases/py-peewee/PLIST Wed Jul 04 03:56:46 2018 +0000
@@ -1,5 +1,6 @@
-@comment $NetBSD: PLIST,v 1.15 2018/04/04 12:31:19 fhajny Exp $
+@comment $NetBSD: PLIST,v 1.16 2018/07/04 03:56:46 adam Exp $
 bin/pwiz${PYVERSSUFFIX}
+${PYSITELIB}/${EGG_FILE}
 ${PYSITELIB}/peewee.py
 ${PYSITELIB}/peewee.pyc
 ${PYSITELIB}/peewee.pyo
diff -r 0100c8ca388c -r dc7a35a248bc databases/py-peewee/distinfo
--- a/databases/py-peewee/distinfo      Wed Jul 04 03:43:12 2018 +0000
+++ b/databases/py-peewee/distinfo      Wed Jul 04 03:56:46 2018 +0000
@@ -1,6 +1,6 @@
-$NetBSD: distinfo,v 1.37 2018/06/04 10:20:01 fhajny Exp $
+$NetBSD: distinfo,v 1.38 2018/07/04 03:56:46 adam Exp $
 
-SHA1 (peewee-3.5.0.tar.gz) = 38bebab96ef822274cb5088840a53a283be29e1d
-RMD160 (peewee-3.5.0.tar.gz) = c56b42de6c154988b91dca8172f875b5d589d487
-SHA512 (peewee-3.5.0.tar.gz) = 6629e0f5e6ea7abdebda2c494387f3a29e278b2e6cb775e2e54c4ac206067f5b5f5f5ca32e21df3d8107f591f05abf671d5e0169fa7f5c98c3a0b8b7df61384b
-Size (peewee-3.5.0.tar.gz) = 595661 bytes
+SHA1 (peewee-3.5.2.tar.gz) = 6b0f5fbad8a923edf4d2a25f99e3dbd066a13127
+RMD160 (peewee-3.5.2.tar.gz) = 1b0f9ef34c7462884a0cbb2bb646fe53014d4fcb
+SHA512 (peewee-3.5.2.tar.gz) = 85a7f55ce0b81175a6a00ecaef928263a1290dfb3a3845a55f5f4b0808cf6ada583fd8cd744ea3e80009c023b6876523a4738b185bd3f8f2a3274b8762184da2
+Size (peewee-3.5.2.tar.gz) = 1884452 bytes



Home | Main Index | Thread Index | Old Index