Subject: CVS commit: pkgsrc/databases/py-tortoise-orm
From: Adam Ciarcinski
Date: 2024-05-24 09:58:52
Message id: 20240524075852.7BFB6FA2C@cvs.NetBSD.org

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.

Files:
RevisionActionfile
1.20modifypkgsrc/databases/py-tortoise-orm/Makefile
1.15modifypkgsrc/databases/py-tortoise-orm/distinfo