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:           Wed Mar  8 12:16:07 UTC 2023

Modified Files:
        pkgsrc/databases/py-peewee: Makefile distinfo

Log Message:
py-peewee: updated to 3.16.0

3.16.0

This release contains backwards-incompatible changes in the way Peewee
initializes connections to the underlying database driver. Previously, peewee
implemented autocommit semantics on-top of the existing DB-API transactional
workflow. Going forward, Peewee instead places the DB-API driver into
autocommit mode directly.

Why this change?

Previously, Peewee emulated autocommit behavior for top-level queries issued
outside of a transaction. This necessitated a number of checks which had to be
performed each time a query was executed, so as to ensure that we didn't end up
with uncommitted writes or, conversely, idle read transactions. By running the
underlying driver in autocommit mode, we can eliminate all these checks, since
we are already managing transactions ourselves.

Behaviorally, there should be no change -- Peewee will still treat top-level
queries outside of transactions as being autocommitted, while queries inside of
atomic() / with db: blocks are implicitly committed at the end of the
block, or rolled-back if an exception occurs.

How might this affect me?

If you are using the underlying database connection or cursors, e.g. via Database.connection() or Database.cursor(), your queries will now be executed in autocommit mode.
The commit= argument is deprecated for the cursor(), execute() and execute_sql() methods.
If you have a custom Database implementation (whether for a database that is not officially supported, or for the purpose of overriding default behaviors), you will want to ensure that your 
connections are opened in autocommit mode.

Other changes:

Some fixes to help with packaging in Python 3.11.
MySQL get_columns() implementation now returns columns in their declared order.


To generate a diff of this commit:
cvs rdiff -u -r1.90 -r1.91 pkgsrc/databases/py-peewee/Makefile
cvs rdiff -u -r1.73 -r1.74 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.90 pkgsrc/databases/py-peewee/Makefile:1.91
--- pkgsrc/databases/py-peewee/Makefile:1.90    Wed Nov 23 16:19:43 2022
+++ pkgsrc/databases/py-peewee/Makefile Wed Mar  8 12:16:07 2023
@@ -1,8 +1,7 @@
-# $NetBSD: Makefile,v 1.90 2022/11/23 16:19:43 adam Exp $
+# $NetBSD: Makefile,v 1.91 2023/03/08 12:16:07 adam Exp $
 
-DISTNAME=      peewee-3.15.4
+DISTNAME=      peewee-3.16.0
 PKGNAME=       ${PYPKGPREFIX}-${DISTNAME}
-PKGREVISION=   1
 CATEGORIES=    databases python
 MASTER_SITES=  ${MASTER_SITE_PYPI:=p/peewee/}
 

Index: pkgsrc/databases/py-peewee/distinfo
diff -u pkgsrc/databases/py-peewee/distinfo:1.73 pkgsrc/databases/py-peewee/distinfo:1.74
--- pkgsrc/databases/py-peewee/distinfo:1.73    Sat Nov 12 11:00:34 2022
+++ pkgsrc/databases/py-peewee/distinfo Wed Mar  8 12:16:07 2023
@@ -1,6 +1,6 @@
-$NetBSD: distinfo,v 1.73 2022/11/12 11:00:34 adam Exp $
+$NetBSD: distinfo,v 1.74 2023/03/08 12:16:07 adam Exp $
 
-BLAKE2s (peewee-3.15.4.tar.gz) = fffda1d269fd685aeb383b631e42a912c09365ba66e2b5a9e14bdf34454cdb02
-SHA512 (peewee-3.15.4.tar.gz) = 9ab54724acd41565eaa1a4bb79ceb8c4a249ea6a590332618f2e2e1053efeccca438761921f72c1ba435a6acf38ddbc702b3c81209222df2e36e6290b576b555
-Size (peewee-3.15.4.tar.gz) = 860903 bytes
+BLAKE2s (peewee-3.16.0.tar.gz) = 00a4ea21c1b451580ea91d676ab58fda7c47b87743a96c7581928e7c5fd0b074
+SHA512 (peewee-3.16.0.tar.gz) = 9720088ef17b4ce6d3413a8e0d4d19bf81ebadab31c4f7315a5dd8448aa95fe6a9e8d733b17fada6943f33aaaae20d2004a14c80d1ed0daba63a161ccea4de5d
+Size (peewee-3.16.0.tar.gz) = 866216 bytes
 SHA1 (patch-setup.py) = 59788f77a576274de46a2c090a9a0a6ede0e1166



Home | Main Index | Thread Index | Old Index