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:           Thu Jan  8 08:44:01 UTC 2026

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

Log Message:
py-peewee: updated to 3.19.0

3.19.0

* Move to new build system using pyproject and github actions.
* No longer build and ship the Sqlite C extensions by default. Users who prefer
  to use those can install via the sdist `pip install peewee --no-binary :all:`.

Rationale about the Sqlite C extensions -- I've started shipping pysqlite3 as a
statically-linked, self-contained binary wheel. This means that when using
Peewee with the statically-linked pysqlite3, you can end up in a funny
situation where the peewee Sqlite extensions are linked against the system
libsqlite3, and the pysqlite driver has it's own Sqlite embedded, which does
not work.

If you are using the system/standard-lib sqlite3 module then the extension
works properly, because everything is talking to the same `libsqlite3`.

Similarly if you built pysqlite3 to link against the system `libsqlite3`
everything also works correctly, though this is not "wheel-friendly".

So in order to use the C extensions, you can install Peewee from the sdist and
do either of the following:

```
# Use system sqlite and standard-lib `sqlite3` module.
$ pip install peewee --no-binary :all:

# OR,
# Use pysqlite3 linked against the system sqlite.
$ pip install pysqlite3 peewee --no-binary :all:
```

I don't believe, besides myself, there were many people using these extensions
so hopefully this change is not disruptive! Please let me hear about it if I'm
mistaken.

Other small changes:

* When exporting / "freezing" binary data with the `playhouse.dataset` JSON
  serializer, encode binary data as base64.


To generate a diff of this commit:
cvs rdiff -u -r1.126 -r1.127 pkgsrc/databases/py-peewee/Makefile
cvs rdiff -u -r1.24 -r1.25 pkgsrc/databases/py-peewee/PLIST
cvs rdiff -u -r1.91 -r1.92 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.126 pkgsrc/databases/py-peewee/Makefile:1.127
--- pkgsrc/databases/py-peewee/Makefile:1.126   Wed Jan  7 08:46:20 2026
+++ pkgsrc/databases/py-peewee/Makefile Thu Jan  8 08:44:01 2026
@@ -1,8 +1,7 @@
-# $NetBSD: Makefile,v 1.126 2026/01/07 08:46:20 wiz Exp $
+# $NetBSD: Makefile,v 1.127 2026/01/08 08:44:01 adam Exp $
 
-DISTNAME=      peewee-3.18.3
+DISTNAME=      peewee-3.19.0
 PKGNAME=       ${PYPKGPREFIX}-${DISTNAME}
-PKGREVISION=   1
 CATEGORIES=    databases python
 MASTER_SITES=  ${MASTER_SITE_PYPI:=p/peewee/}
 
@@ -39,7 +38,7 @@ post-build:
        cd ${WRKSRC}/docs && ${BUILD_MAKE_CMD} man
 
 post-install:
-       cd ${DESTDIR}${PREFIX}/bin && ${MV} pwiz.py pwiz-${PYVERSSUFFIX} || ${TRUE}
+       cd ${DESTDIR}${PREFIX}/bin && ${MV} pwiz pwiz-${PYVERSSUFFIX} || ${TRUE}
        ${INSTALL_MAN} ${WRKSRC}/docs/_build/man/peewee.1 \
                ${DESTDIR}${PREFIX}/${PKGMANDIR}/man1/peewee-${PYVERSSUFFIX}.1
 

Index: pkgsrc/databases/py-peewee/PLIST
diff -u pkgsrc/databases/py-peewee/PLIST:1.24 pkgsrc/databases/py-peewee/PLIST:1.25
--- pkgsrc/databases/py-peewee/PLIST:1.24       Mon Apr 14 11:31:11 2025
+++ pkgsrc/databases/py-peewee/PLIST    Thu Jan  8 08:44:01 2026
@@ -1,17 +1,27 @@
-@comment $NetBSD: PLIST,v 1.24 2025/04/14 11:31:11 adam Exp $
+@comment $NetBSD: PLIST,v 1.25 2026/01/08 08:44:01 adam Exp $
 bin/pwiz-${PYVERSSUFFIX}
 ${PYSITELIB}/${WHEEL_INFODIR}/METADATA
 ${PYSITELIB}/${WHEEL_INFODIR}/RECORD
 ${PYSITELIB}/${WHEEL_INFODIR}/WHEEL
+${PYSITELIB}/${WHEEL_INFODIR}/entry_points.txt
 ${PYSITELIB}/${WHEEL_INFODIR}/licenses/LICENSE
 ${PYSITELIB}/${WHEEL_INFODIR}/top_level.txt
 ${PYSITELIB}/peewee.py
 ${PYSITELIB}/peewee.pyc
 ${PYSITELIB}/peewee.pyo
+${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
 ${PYSITELIB}/playhouse/apsw_ext.pyc

Index: pkgsrc/databases/py-peewee/distinfo
diff -u pkgsrc/databases/py-peewee/distinfo:1.91 pkgsrc/databases/py-peewee/distinfo:1.92
--- pkgsrc/databases/py-peewee/distinfo:1.91    Tue Nov  4 11:50:02 2025
+++ pkgsrc/databases/py-peewee/distinfo Thu Jan  8 08:44:01 2026
@@ -1,6 +1,6 @@
-$NetBSD: distinfo,v 1.91 2025/11/04 11:50:02 adam Exp $
+$NetBSD: distinfo,v 1.92 2026/01/08 08:44:01 adam Exp $
 
-BLAKE2s (peewee-3.18.3.tar.gz) = 8213be245976a4117fdd9a5e4e920521da369b30c812dbb72433e21265f9d04b
-SHA512 (peewee-3.18.3.tar.gz) = 39a19fd6e320853ff2425c8437628bd6ae8749e589f9d36a67e30336517002a6d627fa3c4a90beaa8553fcbaa8cf10292b692d7b0b4898d7374f9dfc39617cc9
-Size (peewee-3.18.3.tar.gz) = 3026296 bytes
+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



Home | Main Index | Thread Index | Old Index