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: Wed Nov 20 12:53:23 UTC 2024
Modified Files:
pkgsrc/databases/py-tortoise-orm: Makefile PLIST distinfo
Log Message:
py-tortoise-orm: updated to 0.22.0
0.22.0
Fixed
- Fix enums not quoted, allowing using of str enums for filters
- Primary key field should not be nullable in pydantic schema
- Fix ambiguous column name when grouping with joining
- Fix same model returned by pydantic_model_creator calls with different arguments
Added
- JSONField adds optional generic support, and supports OpenAPI document generation by specifying `field_type` as a pydantic BaseModel
- Add table_name_generator attribute to Tortoise.init for dynamic table name generation
- Support for annotation and joins F() expressions
- Allow use of annotate fields within Case-When expression
- Added new queryset methods: last(), latest(), earliest()
Changed
- Change old pydantic docs link to new one
- Refactored pydantic_model_creator, interface not changed
- Values are no longer validated to be right type upon loading from database
- Refactored private field names in queryset classes
To generate a diff of this commit:
cvs rdiff -u -r1.26 -r1.27 pkgsrc/databases/py-tortoise-orm/Makefile
cvs rdiff -u -r1.7 -r1.8 pkgsrc/databases/py-tortoise-orm/PLIST
cvs rdiff -u -r1.21 -r1.22 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.26 pkgsrc/databases/py-tortoise-orm/Makefile:1.27
--- pkgsrc/databases/py-tortoise-orm/Makefile:1.26 Mon Oct 14 14:06:45 2024
+++ pkgsrc/databases/py-tortoise-orm/Makefile Wed Nov 20 12:53:23 2024
@@ -1,6 +1,6 @@
-# $NetBSD: Makefile,v 1.26 2024/10/14 14:06:45 adam Exp $
+# $NetBSD: Makefile,v 1.27 2024/11/20 12:53:23 adam Exp $
-DISTNAME= tortoise_orm-0.21.7
+DISTNAME= tortoise_orm-0.22.0
PKGNAME= ${PYPKGPREFIX}-${DISTNAME:S/_/-/}
CATEGORIES= databases python
MASTER_SITES= ${MASTER_SITE_PYPI:=t/tortoise-orm/}
@@ -10,10 +10,10 @@ HOMEPAGE= https://github.com/tortoise/to
COMMENT= Easy async ORM for Python, built with relations in mind
LICENSE= apache-2.0
-TOOL_DEPENDS+= ${PYPKGPREFIX}-poetry-core>=0:../../devel/py-poetry-core
+TOOL_DEPENDS+= ${PYPKGPREFIX}-poetry-core>=1.0.0:../../devel/py-poetry-core
DEPENDS+= ${PYPKGPREFIX}-aiosqlite>=0.16.0:../../databases/py-aiosqlite
DEPENDS+= ${PYPKGPREFIX}-iso8601>=2.1.0:../../time/py-iso8601
-DEPENDS+= ${PYPKGPREFIX}-pypika-tortoise>=0.2.1:../../databases/py-pypika-tortoise
+DEPENDS+= ${PYPKGPREFIX}-pypika-tortoise>=0.2.2:../../databases/py-pypika-tortoise
DEPENDS+= ${PYPKGPREFIX}-pytz>=2020.4:../../time/py-pytz
# accel
DEPENDS+= ${PYPKGPREFIX}-ciso8601>=2.1.2:../../time/py-ciso8601
Index: pkgsrc/databases/py-tortoise-orm/PLIST
diff -u pkgsrc/databases/py-tortoise-orm/PLIST:1.7 pkgsrc/databases/py-tortoise-orm/PLIST:1.8
--- pkgsrc/databases/py-tortoise-orm/PLIST:1.7 Mon Oct 14 14:06:45 2024
+++ pkgsrc/databases/py-tortoise-orm/PLIST Wed Nov 20 12:53:23 2024
@@ -1,4 +1,4 @@
-@comment $NetBSD: PLIST,v 1.7 2024/10/14 14:06:45 adam Exp $
+@comment $NetBSD: PLIST,v 1.8 2024/11/20 12:53:23 adam Exp $
${PYSITELIB}/${WHEEL_INFODIR}/LICENSE.txt
${PYSITELIB}/${WHEEL_INFODIR}/METADATA
${PYSITELIB}/${WHEEL_INFODIR}/RECORD
@@ -182,6 +182,9 @@ ${PYSITELIB}/tortoise/contrib/pydantic/b
${PYSITELIB}/tortoise/contrib/pydantic/creator.py
${PYSITELIB}/tortoise/contrib/pydantic/creator.pyc
${PYSITELIB}/tortoise/contrib/pydantic/creator.pyo
+${PYSITELIB}/tortoise/contrib/pydantic/descriptions.py
+${PYSITELIB}/tortoise/contrib/pydantic/descriptions.pyc
+${PYSITELIB}/tortoise/contrib/pydantic/descriptions.pyo
${PYSITELIB}/tortoise/contrib/pydantic/utils.py
${PYSITELIB}/tortoise/contrib/pydantic/utils.pyc
${PYSITELIB}/tortoise/contrib/pydantic/utils.pyo
Index: pkgsrc/databases/py-tortoise-orm/distinfo
diff -u pkgsrc/databases/py-tortoise-orm/distinfo:1.21 pkgsrc/databases/py-tortoise-orm/distinfo:1.22
--- pkgsrc/databases/py-tortoise-orm/distinfo:1.21 Mon Oct 14 14:06:45 2024
+++ pkgsrc/databases/py-tortoise-orm/distinfo Wed Nov 20 12:53:23 2024
@@ -1,5 +1,5 @@
-$NetBSD: distinfo,v 1.21 2024/10/14 14:06:45 adam Exp $
+$NetBSD: distinfo,v 1.22 2024/11/20 12:53:23 adam Exp $
-BLAKE2s (tortoise_orm-0.21.7.tar.gz) = a8fc797a7e5f521daa22ee14a3047cbb98fc66a151d3269361b46210ed5e3885
-SHA512 (tortoise_orm-0.21.7.tar.gz) = 453f28d1b4fca872e63883472768e7d4dc1d4a286c8250902181e02d58d962779925ea7de2ed3f68e92b8c023dd75f1b932900e3357678b943eb8a5ed0cbbb7c
-Size (tortoise_orm-0.21.7.tar.gz) = 138689 bytes
+BLAKE2s (tortoise_orm-0.22.0.tar.gz) = 10ada3cf6e04462687c5723bc28478b0d992d3e2ccfc3b82b89c73d8222e39c2
+SHA512 (tortoise_orm-0.22.0.tar.gz) = b2415e7870ecde02a0f1b6a2c5fe6d54a9f560f8ce63df25d2333596a36e9626f634a604265788bda2a9ca7f0c632e830093033b3fd39d02056cef15052105b7
+Size (tortoise_orm-0.22.0.tar.gz) = 143244 bytes
Home |
Main Index |
Thread Index |
Old Index