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:           Fri May 24 07:58:52 UTC 2024

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

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

0.21.0

Added

- Enhancement for FastAPI lifespan support
- Add __eq__ method to Q to more easily test dynamically-built queries
- Added PlainToTsQuery function for postgres
- Allow field's default keyword to be async function
- Add support for queryset slicing.

Fixed

- Fix `DatetimeField` use '__year' report `'int' object has no attribute 'utcoffset'`.
- Fix `bulk_update` when using custom fields.
- Fix `optional` parameter in `pydantic_model_creator` does not work for pydantic v2.
- Fix `get_annotations` now evaluates annotations in the default scope instead of the app namespace.
- Fix `get_or_create` method.
- Use `index_name` instead of `BaseSchemaGenerator._generate_index_name` to generate index name.
- Use subquery for count() and exists() in `QuerySet` to match count result to `QuerySet` result.

Changed

- Change `utils.chunk` from function to return iterables lazily.
- Removed lower bound of id keys in generated pydantic models.
- Rename Field initial arguments `pk`/`index` to `primary_key`/`db_index`.
- Renamed `Model.check` method to `Model._check` to avoid naming collision issues

Breaking Changes

- `bulk_create` now does not return anything.


To generate a diff of this commit:
cvs rdiff -u -r1.19 -r1.20 pkgsrc/databases/py-tortoise-orm/Makefile
cvs rdiff -u -r1.14 -r1.15 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.19 pkgsrc/databases/py-tortoise-orm/Makefile:1.20
--- pkgsrc/databases/py-tortoise-orm/Makefile:1.19      Fri Apr 26 20:13:03 2024
+++ pkgsrc/databases/py-tortoise-orm/Makefile   Fri May 24 07:58:52 2024
@@ -1,6 +1,6 @@
-# $NetBSD: Makefile,v 1.19 2024/04/26 20:13:03 adam Exp $
+# $NetBSD: Makefile,v 1.20 2024/05/24 07:58:52 adam Exp $
 
-DISTNAME=      tortoise_orm-0.20.1
+DISTNAME=      tortoise_orm-0.21.0
 PKGNAME=       ${PYPKGPREFIX}-${DISTNAME:S/_/-/}
 CATEGORIES=    databases python
 MASTER_SITES=  ${MASTER_SITE_PYPI:=t/tortoise-orm/}
@@ -17,6 +17,7 @@ DEPENDS+=     ${PYPKGPREFIX}-pypika-tortoise
 DEPENDS+=      ${PYPKGPREFIX}-pytz>=2020.4:../../time/py-pytz
 # accel
 DEPENDS+=      ${PYPKGPREFIX}-ciso8601>=2.1.2:../../time/py-ciso8601
+DEPENDS+=      ${PYPKGPREFIX}-orjson>=0:../../textproc/py-orjson
 DEPENDS+=      ${PYPKGPREFIX}-uvloop>=0.14.0:../../devel/py-uvloop
 
 USE_LANGUAGES= # none

Index: pkgsrc/databases/py-tortoise-orm/distinfo
diff -u pkgsrc/databases/py-tortoise-orm/distinfo:1.14 pkgsrc/databases/py-tortoise-orm/distinfo:1.15
--- pkgsrc/databases/py-tortoise-orm/distinfo:1.14      Fri Apr 26 20:13:03 2024
+++ pkgsrc/databases/py-tortoise-orm/distinfo   Fri May 24 07:58:52 2024
@@ -1,5 +1,5 @@
-$NetBSD: distinfo,v 1.14 2024/04/26 20:13:03 adam Exp $
+$NetBSD: distinfo,v 1.15 2024/05/24 07:58:52 adam Exp $
 
-BLAKE2s (tortoise_orm-0.20.1.tar.gz) = 570824951bd8ee426189c4b1d782a348d725a87262be8d7eace69046a35be178
-SHA512 (tortoise_orm-0.20.1.tar.gz) = 181f330b0afc0bf51e9fe2c057cfb0ab5d5258a5a2d9e2385c481b074a6a81dd943db00895f7dfa21cedacc6371e6a2b8c2bb98b125b1da56bea9c6cafde6b50
-Size (tortoise_orm-0.20.1.tar.gz) = 133141 bytes
+BLAKE2s (tortoise_orm-0.21.0.tar.gz) = 742e35489f2059cae92f2dc08d6dec9dcf91de8c95da8ed561a692a230c75880
+SHA512 (tortoise_orm-0.21.0.tar.gz) = da7dd0c3997d851ce7560c456078b17da8bbd9e4fd7643bdbde3f6954162ba54919b9a4418659a4b325f3e3c0a035c1f21348d2be4fd960dc7b13a3e404187b9
+Size (tortoise_orm-0.21.0.tar.gz) = 135126 bytes



Home | Main Index | Thread Index | Old Index