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:           Tue Feb 24 19:13:03 UTC 2026

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

Log Message:
py-peewee: updated to 4.0.0

4.0.0 (pending)

* Adds preliminary support for `asyncio` via a new playhouse extension. See
  [the documentation](http://docs.peewee-orm.com/en/latest/peewee/asyncio.html)
  for details.
* `PostgresqlDatabase` can use `psycopg` (psycopg3) if it is installed. If both
  psycopg2 and psycopg3 are installed, Peewee will prefer psycopg2, but this
  can be controlled by specifying `prefer_psycopg3=True` in the constructor.
  Same applies to `PostgresqlExtDatabase`.
* `Psycopg3Database` class has been moved to `playhouse.postgres_ext` and is
  now just a thin wrapper around `PostgresqlExtDatabase`.
* Postgres JSON operations no longer dump and try to do minimal casts, instead
  relying on the driver-provided `Json()` wrapper(s).
* Adds new `ISODateTimeField` for Sqlite that encodes datetimes in ISO format
  (more friendly when db is shared with other tools), and also properly reads
  back UTC offset info.
* Remove `playhouse.sqlite_ext.ClosureTable` implementation.
* Add a `Model.dirty_field_names` attribute that is safe for membership
  testing, since testing `x in dirty_fields` returns True if one or more field
  exists due to operator overloads returning a truthy Expression object.
* Removal of Cython `_sqlite_ext` extension. The C implementations of the FTS
  rank functions are moved to `sqlite_udf`. Most of the remaining functionality
  is moved to `playhouse.cysqlite_ext` which supports it natively.


To generate a diff of this commit:
cvs rdiff -u -r1.127 -r1.128 pkgsrc/databases/py-peewee/Makefile
cvs rdiff -u -r1.25 -r1.26 pkgsrc/databases/py-peewee/PLIST
cvs rdiff -u -r1.92 -r1.93 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.127 pkgsrc/databases/py-peewee/Makefile:1.128
--- pkgsrc/databases/py-peewee/Makefile:1.127   Thu Jan  8 08:44:01 2026
+++ pkgsrc/databases/py-peewee/Makefile Tue Feb 24 19:13:02 2026
@@ -1,6 +1,6 @@
-# $NetBSD: Makefile,v 1.127 2026/01/08 08:44:01 adam Exp $
+# $NetBSD: Makefile,v 1.128 2026/02/24 19:13:02 adam Exp $
 
-DISTNAME=      peewee-3.19.0
+DISTNAME=      peewee-4.0.0
 PKGNAME=       ${PYPKGPREFIX}-${DISTNAME}
 CATEGORIES=    databases python
 MASTER_SITES=  ${MASTER_SITE_PYPI:=p/peewee/}
@@ -23,17 +23,8 @@ MESSAGE_SUBST+=      PYPKGPREFIX=${PYPKGPREFI
 
 REPLACE_PYTHON+=       pwiz.py
 
-SUBST_CLASSES+=                lpath
-SUBST_STAGE.lpath=     pre-configure
-SUBST_FILES.lpath=     setup.py
-SUBST_VARS.lpath=      BUILDLINK_PREFIX.sqlite3
-
 INSTALLATION_DIRS+=    ${PKGMANDIR}/man1
 
-# Let Cython re-generate these files. Fixes build with Python 3.9.
-pre-configure:
-       ${RM} ${WRKSRC}/playhouse/_sqlite_ext.c ${WRKSRC}/playhouse/_sqlite_udf.c
-
 post-build:
        cd ${WRKSRC}/docs && ${BUILD_MAKE_CMD} man
 

Index: pkgsrc/databases/py-peewee/PLIST
diff -u pkgsrc/databases/py-peewee/PLIST:1.25 pkgsrc/databases/py-peewee/PLIST:1.26
--- pkgsrc/databases/py-peewee/PLIST:1.25       Thu Jan  8 08:44:01 2026
+++ pkgsrc/databases/py-peewee/PLIST    Tue Feb 24 19:13:02 2026
@@ -1,4 +1,4 @@
-@comment $NetBSD: PLIST,v 1.25 2026/01/08 08:44:01 adam Exp $
+@comment $NetBSD: PLIST,v 1.26 2026/02/24 19:13:02 adam Exp $
 bin/pwiz-${PYVERSSUFFIX}
 ${PYSITELIB}/${WHEEL_INFODIR}/METADATA
 ${PYSITELIB}/${WHEEL_INFODIR}/RECORD
@@ -13,14 +13,6 @@ ${PYSITELIB}/playhouse/README.md
 ${PYSITELIB}/playhouse/__init__.py
 ${PYSITELIB}/playhouse/__init__.pyc
 ${PYSITELIB}/playhouse/__init__.pyo
-${PYSITELIB}/playhouse/_pysqlite/__init__.py
-${PYSITELIB}/playhouse/_pysqlite/__init__.pyc
-${PYSITELIB}/playhouse/_pysqlite/__init__.pyo
-${PYSITELIB}/playhouse/_pysqlite/cache.h
-${PYSITELIB}/playhouse/_pysqlite/connection.h
-${PYSITELIB}/playhouse/_pysqlite/module.h
-${PYSITELIB}/playhouse/_sqlite_ext.c
-${PYSITELIB}/playhouse/_sqlite_ext.so
 ${PYSITELIB}/playhouse/_sqlite_udf.c
 ${PYSITELIB}/playhouse/_sqlite_udf.so
 ${PYSITELIB}/playhouse/apsw_ext.py
@@ -29,6 +21,9 @@ ${PYSITELIB}/playhouse/apsw_ext.pyo
 ${PYSITELIB}/playhouse/cockroachdb.py
 ${PYSITELIB}/playhouse/cockroachdb.pyc
 ${PYSITELIB}/playhouse/cockroachdb.pyo
+${PYSITELIB}/playhouse/cysqlite_ext.py
+${PYSITELIB}/playhouse/cysqlite_ext.pyc
+${PYSITELIB}/playhouse/cysqlite_ext.pyo
 ${PYSITELIB}/playhouse/dataset.py
 ${PYSITELIB}/playhouse/dataset.pyc
 ${PYSITELIB}/playhouse/dataset.pyo
@@ -59,9 +54,9 @@ ${PYSITELIB}/playhouse/pool.pyo
 ${PYSITELIB}/playhouse/postgres_ext.py
 ${PYSITELIB}/playhouse/postgres_ext.pyc
 ${PYSITELIB}/playhouse/postgres_ext.pyo
-${PYSITELIB}/playhouse/psycopg3_ext.py
-${PYSITELIB}/playhouse/psycopg3_ext.pyc
-${PYSITELIB}/playhouse/psycopg3_ext.pyo
+${PYSITELIB}/playhouse/pwasyncio.py
+${PYSITELIB}/playhouse/pwasyncio.pyc
+${PYSITELIB}/playhouse/pwasyncio.pyo
 ${PYSITELIB}/playhouse/reflection.py
 ${PYSITELIB}/playhouse/reflection.pyc
 ${PYSITELIB}/playhouse/reflection.pyo

Index: pkgsrc/databases/py-peewee/distinfo
diff -u pkgsrc/databases/py-peewee/distinfo:1.92 pkgsrc/databases/py-peewee/distinfo:1.93
--- pkgsrc/databases/py-peewee/distinfo:1.92    Thu Jan  8 08:44:01 2026
+++ pkgsrc/databases/py-peewee/distinfo Tue Feb 24 19:13:02 2026
@@ -1,6 +1,5 @@
-$NetBSD: distinfo,v 1.92 2026/01/08 08:44:01 adam Exp $
+$NetBSD: distinfo,v 1.93 2026/02/24 19:13:02 adam Exp $
 
-BLAKE2s (peewee-3.19.0.tar.gz) = 86c5d7794e0e53452c796779ecea0b2529271f3d8fafd896d41171f9b6c4b118
-SHA512 (peewee-3.19.0.tar.gz) = cd3867ba5d89203dc55201d6b9e56e381b6efedad4fc3ae18c1225b41b992bfe3e430e9d082568cfcb4ae06d81daaa9f5b2f89fef7f190f2895801bccdf98f75
-Size (peewee-3.19.0.tar.gz) = 974035 bytes
-SHA1 (patch-setup.py) = 59788f77a576274de46a2c090a9a0a6ede0e1166
+BLAKE2s (peewee-4.0.0.tar.gz) = 037e89aa398a273fe5771a6cd93424f50dca019176f64cfb7ae64deafb745642
+SHA512 (peewee-4.0.0.tar.gz) = 5522590adb38cfece03e57ccaac26c627b9bb792c8b15371c3f81fccc845746210f203615c8b9f88b2c0596307e1ae1fd73a6cc9d13dea3a7ccdffd02114e5a0
+Size (peewee-4.0.0.tar.gz) = 686951 bytes



Home | Main Index | Thread Index | Old Index