summaryrefslogtreecommitdiff
path: root/databases/py-peewee
diff options
context:
space:
mode:
authoradam <adam@pkgsrc.org>2018-07-04 03:56:46 +0000
committeradam <adam@pkgsrc.org>2018-07-04 03:56:46 +0000
commit4be8a7bb123a6a27e55db58f1301eb5122563e9a (patch)
tree51bddab4b440d18869c2d00d78c8f4629d3360d1 /databases/py-peewee
parent3bfcdc024dab1931232bfd14f34720a45f587075 (diff)
downloadpkgsrc-4be8a7bb123a6a27e55db58f1301eb5122563e9a.tar.gz
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 (limited to 'databases/py-peewee')
-rw-r--r--databases/py-peewee/Makefile13
-rw-r--r--databases/py-peewee/PLIST3
-rw-r--r--databases/py-peewee/distinfo10
3 files changed, 11 insertions, 15 deletions
diff --git a/databases/py-peewee/Makefile b/databases/py-peewee/Makefile
index df747510437..b7c31832c0f 100644
--- a/databases/py-peewee/Makefile
+++ b/databases/py-peewee/Makefile
@@ -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 @@ HOMEPAGE= http://www.peewee-orm.com/
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 @@ MESSAGE_SUBST+= PYPKGPREFIX=${PYPKGPREFIX}
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 @@ do-test:
.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 --git a/databases/py-peewee/PLIST b/databases/py-peewee/PLIST
index 41b54307f5b..07993c3d148 100644
--- a/databases/py-peewee/PLIST
+++ b/databases/py-peewee/PLIST
@@ -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 --git a/databases/py-peewee/distinfo b/databases/py-peewee/distinfo
index 014ea7dabef..6881900600a 100644
--- a/databases/py-peewee/distinfo
+++ b/databases/py-peewee/distinfo
@@ -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