Subject: CVS commit: pkgsrc/databases/py-tortoise-orm
From: Adam Ciarcinski
Date: 2023-11-23 08:58:34
Message id: 20231123075834.9D59FFA3F@cvs.NetBSD.org

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

0.20.0
------
Added
^^^^^
- Allow ForeignKeyField(on_delete=NO_ACTION)
- Support `pydantic` 2.0.

Fixed
^^^^^
- Fix foreign key constraint not generated on MSSQL Server.
- Fix testcase error with python3.11

Breaking Changes
^^^^^^^^^^^^^^^^
- Drop support for `pydantic` 1.x.
- Drop support for `python` 3.7.
- Param `config_class` of `pydantic_model_creator` is renamed to `model_config`.
- Attr `config_class` of `PydanticMeta` is renamed to `model_config`.

0.19
====

0.19.3
------
Added
^^^^^
- Added config_class option to pydantic model genator that allows the developer \ 
to customize the generated pydantic model's `Config` class.
Fixed
^^^^^
- Fastapi example test not working.
- Fix create index sql error.
- Fix dependencies resolve error.
- Fix ignoring zero value of limit.
- Fix ForeignKeyField is none when fk is integer 0.
- Fix limit ignore zero.
- Fix min/max value validators for decimal fields.

0.19.2
------
Added
^^^^^
- Added `schema` attribute to Model's Meta to specify exact schema to use with \ 
the model.
Fixed
^^^^^
- Mixin does not work.
- `using_db` wrong position in model shortcut methods.
- Fixed connection to `Oracle` database by adding database info to DBQ in \ 
connection string.
- Fixed ORA-01435 error while using `Oracle` database
- Fixed processing of `ssl` option in MySQL connection string.
- Fixed type hinting for `QuerySetSingle`.

0.19.1
------
Added
^^^^^
- Added `Postgres`/`SQLite` partial indexes support.
- Added `Microsoft SQL Server`/`Oracle` support, powered by `asyncodbc \ 
<https://github.com/tortoise/asyncodbc>`_, note that which is **not fully \ 
tested**.
- Added `optional` parameter to `pydantic_model_creator`.
- Added `using_db` parameter to `Model` shortcut methods.
Fixed
^^^^^
- `TimeField` for `MySQL` will return `datetime.timedelta` object instead of \ 
`datetime.time` object.
- Fix on conflict do nothing.
- Fix `_custom_generated_pk` attribute not set in `Model._init_from_db` method.

0.19.0
------
Added
^^^^^
- Added psycopg backend support.
- Added a new unified and robust connection management interface to access DB \ 
connections which includes support for
  lazy connection creation and much more. For more details, check out this `PR \ 
<https://github.com/tortoise/tortoise-orm/pull/1001>`_
- Added `TimeField`.
- Added `ArrayField`.
Fixed
^^^^^
- Fix `bulk_create` doesn't work correctly with more than 1 update_fields.
- Fix `bulk_update` errors when setting null for a smallint column on postgres.
Deprecated
^^^^^^^^^^
- Existing connection management interface and related public APIs which are \ 
deprecated:
 - `Tortoise.get_connection`
 - `Tortoise.close_connections`
Changed
^^^^^^^
- Refactored `tortoise.transactions.get_connection` method to \ 
`tortoise.transactions._get_connection`.
 Note that this method has now been marked **private to this module and is not \ 
part of the public API**

Files:
RevisionActionfile
1.17modifypkgsrc/databases/py-tortoise-orm/Makefile
1.6modifypkgsrc/databases/py-tortoise-orm/PLIST
1.13modifypkgsrc/databases/py-tortoise-orm/distinfo