pkgsrc-Changes archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
CVS commit: pkgsrc/databases/py-peewee
Module Name: pkgsrc
Committed By: adam
Date: Fri Jun 12 04:47:06 UTC 2026
Modified Files:
pkgsrc/databases/py-peewee: Makefile distinfo
Log Message:
py-peewee: updated to 4.0.7
4.0.7
* Fixes for `playhouse.pwasyncio`: report correct UPDATE / DELETE rowcounts on
asyncpg, roll back open transactions when connections are returned to the
pool, raise instead of deadlocking when querying during `iterate()`, and
detect the MySQL / MariaDB server version.
* Additional `playhouse.pwasyncio` fixes: a second `iterate()` on a busy
connection raises instead of deadlocking, asyncpg exceptions are translated
to peewee exception types, registered aggregates / collations / window
functions / extensions and `timeout` are applied to async SQLite
connections, `:memory:` databases use a single connection, `atomic()`
accepts transaction arguments (e.g. `lock_type`), postgres connection URLs
and `isolation_level` are supported, `%%` in raw SQL is unescaped, and
attempting a query outside the greenlet bridge no longer emits "never
awaited" warnings.
* Fixes for `playhouse.pydantic_utils`: JSON fields validate as `Any` (now
including the sqlite_ext `JSONField`), foreign keys may be included /
excluded by field name or column name, server-side defaults like
`SQL('CURRENT_TIMESTAMP')` are no longer emitted as schema defaults, and
`relationships` keys are validated.
* Add a new cross-backend `JSONField` to core that provides basic operations
and also more consistent behavior when reading data. By default the new core
JSONField treats extracted values as JSON, which is generally the correct
thing, but "text-mode" is available as a chained `.as_text()` method. See
[docs](https://docs.peewee-orm.com/en/latest/peewee/models.html#json-field).
May eventually replace the backend-specific implementations with subclasses
that inherit semantics of this new field.
Note: `playhouse.mysql_ext.JSONField` is now the core field. The old
`json_dumps` / `json_loads` arguments are renamed `dumps` / `loads`, the
`extract()` method is removed (use item-access or `path()`), and MySQL
tables are now created with `JSON` columns rather than `TEXT`.
* Eliminate use of deprecated params when connecting to MySQL databases, thanks
to @abulgher.
* Using `fromisoformat()` ended up causing previously-unconverted strings (Ymd)
to be converted in some cases, e.g. formatting a datetime as a str.
The change I made to address this is to make explicit casts on function calls
not attempt any heuristic python-value conversion. This makes it more natural
to call `fn.whatever().cast('text')` and you predictably get text out.
To generate a diff of this commit:
cvs rdiff -u -r1.133 -r1.134 pkgsrc/databases/py-peewee/Makefile
cvs rdiff -u -r1.98 -r1.99 pkgsrc/databases/py-peewee/distinfo
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: pkgsrc/databases/py-peewee/Makefile
diff -u pkgsrc/databases/py-peewee/Makefile:1.133 pkgsrc/databases/py-peewee/Makefile:1.134
--- pkgsrc/databases/py-peewee/Makefile:1.133 Fri May 22 12:35:16 2026
+++ pkgsrc/databases/py-peewee/Makefile Fri Jun 12 04:47:06 2026
@@ -1,6 +1,6 @@
-# $NetBSD: Makefile,v 1.133 2026/05/22 12:35:16 adam Exp $
+# $NetBSD: Makefile,v 1.134 2026/06/12 04:47:06 adam Exp $
-DISTNAME= peewee-4.0.6
+DISTNAME= peewee-4.0.7
PKGNAME= ${PYPKGPREFIX}-${DISTNAME}
CATEGORIES= databases python
MASTER_SITES= ${MASTER_SITE_PYPI:=p/peewee/}
Index: pkgsrc/databases/py-peewee/distinfo
diff -u pkgsrc/databases/py-peewee/distinfo:1.98 pkgsrc/databases/py-peewee/distinfo:1.99
--- pkgsrc/databases/py-peewee/distinfo:1.98 Fri May 22 12:35:16 2026
+++ pkgsrc/databases/py-peewee/distinfo Fri Jun 12 04:47:06 2026
@@ -1,5 +1,5 @@
-$NetBSD: distinfo,v 1.98 2026/05/22 12:35:16 adam Exp $
+$NetBSD: distinfo,v 1.99 2026/06/12 04:47:06 adam Exp $
-BLAKE2s (peewee-4.0.6.tar.gz) = 3d61e53cfd17ac3055a4fddbd58796032ad0ecce17829ae2ce17c6b8a3518d61
-SHA512 (peewee-4.0.6.tar.gz) = cc62e48a3889409e6a4dccae40fdcc76f32aaafeae21f81163727e388696d11a3d456eb35d568b35db34baaa189e7b7e4c806e0cae13368587a7b5c8d22bd914
-Size (peewee-4.0.6.tar.gz) = 724591 bytes
+BLAKE2s (peewee-4.0.7.tar.gz) = f64524abae656f692c977672d05487e62e936036d587b29f37d000dd5f3b5c8a
+SHA512 (peewee-4.0.7.tar.gz) = d35fa5c5768361eaecc49c080ed47317bac383cc68be515a51e15c31dbff0cf4b64d73c3b06e8e0c40020489f601f23d28fb7d7d0dbc81b32077b956cc4d4691
+Size (peewee-4.0.7.tar.gz) = 744667 bytes
Home |
Main Index |
Thread Index |
Old Index