pkgsrc-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

CVS commit: pkgsrc/databases/py-tortoise-orm



Module Name:    pkgsrc
Committed By:   adam
Date:           Sun Feb 15 12:56:08 UTC 2026

Modified Files:
        pkgsrc/databases/py-tortoise-orm: Makefile PLIST distinfo

Log Message:
py-tortoise-orm: updated to 1.1.2

1.1.2

Fixed

Fixed optimisation issue, if you didn't have pydantic installed, Tortoise would try to import it on every JSONField deserialization, lowering performance.

1.1.1

Added

SqlDefault and Now expressions for db_default — use db_default=SqlDefault("...") to emit raw SQL expressions (e.g. CURRENT_TIMESTAMP) as database defaults. Now() is a convenience shorthand for 
SqlDefault("CURRENT_TIMESTAMP").

Changed

Field(default=...) and auto_now / auto_now_add no longer emits a DEFAULT clause in generate_schemas(). The default parameter is Python-only; use db_default for database-level defaults. This aligns 
generate_schemas() with migrations, which don't emitted DEFAULT for default=.

1.1.0

Added

db_default parameter for fields — set database-level DEFAULT clauses that propagate to schema generation and migrations. Unlike default (Python-only), db_default is persisted in the DB schema and 
applied even for rows inserted outside the ORM.
Model.construct() classmethod for building model instances without field validation — useful in test factories and fixtures.
truncate_all_models() now respects foreign key constraints using topological ordering (SQLite/MySQL) or TRUNCATE ... CASCADE (PostgreSQL).
Auto-recreate database connection when event loop changes. Enables easier testing without session level fixtures

Fixed

Type checking of None assignment to nullable fields.
Fix set global fallback default in Sanic register_tortoise.
Escape [ ] for db url parsing.
Fix UnicodeEncodeError by using UTF-8 encoding for migration files.


To generate a diff of this commit:
cvs rdiff -u -r1.42 -r1.43 pkgsrc/databases/py-tortoise-orm/Makefile
cvs rdiff -u -r1.14 -r1.15 pkgsrc/databases/py-tortoise-orm/PLIST
cvs rdiff -u -r1.33 -r1.34 pkgsrc/databases/py-tortoise-orm/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-tortoise-orm/Makefile
diff -u pkgsrc/databases/py-tortoise-orm/Makefile:1.42 pkgsrc/databases/py-tortoise-orm/Makefile:1.43
--- pkgsrc/databases/py-tortoise-orm/Makefile:1.42      Wed Feb 11 09:11:54 2026
+++ pkgsrc/databases/py-tortoise-orm/Makefile   Sun Feb 15 12:56:08 2026
@@ -1,6 +1,6 @@
-# $NetBSD: Makefile,v 1.42 2026/02/11 09:11:54 adam Exp $
+# $NetBSD: Makefile,v 1.43 2026/02/15 12:56:08 adam Exp $
 
-DISTNAME=      tortoise_orm-1.0.0
+DISTNAME=      tortoise_orm-1.1.2
 PKGNAME=       ${PYPKGPREFIX}-${DISTNAME:S/_/-/}
 CATEGORIES=    databases python
 MASTER_SITES=  ${MASTER_SITE_PYPI:=t/tortoise-orm/}

Index: pkgsrc/databases/py-tortoise-orm/PLIST
diff -u pkgsrc/databases/py-tortoise-orm/PLIST:1.14 pkgsrc/databases/py-tortoise-orm/PLIST:1.15
--- pkgsrc/databases/py-tortoise-orm/PLIST:1.14 Wed Feb 11 09:11:54 2026
+++ pkgsrc/databases/py-tortoise-orm/PLIST      Sun Feb 15 12:56:08 2026
@@ -1,4 +1,4 @@
-@comment $NetBSD: PLIST,v 1.14 2026/02/11 09:11:54 adam Exp $
+@comment $NetBSD: PLIST,v 1.15 2026/02/15 12:56:08 adam Exp $
 bin/tortoise
 ${PYSITELIB}/${WHEEL_INFODIR}/METADATA
 ${PYSITELIB}/${WHEEL_INFODIR}/RECORD
@@ -257,6 +257,9 @@ ${PYSITELIB}/tortoise/fields/base.pyo
 ${PYSITELIB}/tortoise/fields/data.py
 ${PYSITELIB}/tortoise/fields/data.pyc
 ${PYSITELIB}/tortoise/fields/data.pyo
+${PYSITELIB}/tortoise/fields/db_defaults.py
+${PYSITELIB}/tortoise/fields/db_defaults.pyc
+${PYSITELIB}/tortoise/fields/db_defaults.pyo
 ${PYSITELIB}/tortoise/fields/relational.py
 ${PYSITELIB}/tortoise/fields/relational.pyc
 ${PYSITELIB}/tortoise/fields/relational.pyo
@@ -402,3 +405,6 @@ ${PYSITELIB}/tortoise/utils.pyo
 ${PYSITELIB}/tortoise/validators.py
 ${PYSITELIB}/tortoise/validators.pyc
 ${PYSITELIB}/tortoise/validators.pyo
+${PYSITELIB}/tortoise/warnings.py
+${PYSITELIB}/tortoise/warnings.pyc
+${PYSITELIB}/tortoise/warnings.pyo

Index: pkgsrc/databases/py-tortoise-orm/distinfo
diff -u pkgsrc/databases/py-tortoise-orm/distinfo:1.33 pkgsrc/databases/py-tortoise-orm/distinfo:1.34
--- pkgsrc/databases/py-tortoise-orm/distinfo:1.33      Wed Feb 11 09:11:54 2026
+++ pkgsrc/databases/py-tortoise-orm/distinfo   Sun Feb 15 12:56:08 2026
@@ -1,5 +1,5 @@
-$NetBSD: distinfo,v 1.33 2026/02/11 09:11:54 adam Exp $
+$NetBSD: distinfo,v 1.34 2026/02/15 12:56:08 adam Exp $
 
-BLAKE2s (tortoise_orm-1.0.0.tar.gz) = ffde618b014ebf3e9f33eeb25ea5a1a7c798b31091b0ee4a3861cd604cff07b1
-SHA512 (tortoise_orm-1.0.0.tar.gz) = d42a2bbe16219679cb136043dda9affb4afbb12f933fa9f355ed1cde5c73fcfbd9b681a9ffd9d22ef4592b2f3083289425e5ed89a5ce298637c530c1e600140f
-Size (tortoise_orm-1.0.0.tar.gz) = 342975 bytes
+BLAKE2s (tortoise_orm-1.1.2.tar.gz) = a81514f3e5b1f265e21dcd42e29142f9b85d4d20eb46152b63fa6729a26c47c3
+SHA512 (tortoise_orm-1.1.2.tar.gz) = 24eab26c15a5102c72f9b56117aafaf3510465d4c47354849588a43ce9e33f57dac2b2723caf8155d6bfe17cd6f8506b8dc9c26e0be4fbff5895632c1d3b60de
+Size (tortoise_orm-1.1.2.tar.gz) = 357074 bytes



Home | Main Index | Thread Index | Old Index