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: Thu Nov 23 07:58:34 UTC 2023
Modified Files:
pkgsrc/databases/py-tortoise-orm: Makefile PLIST distinfo
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**
To generate a diff of this commit:
cvs rdiff -u -r1.16 -r1.17 pkgsrc/databases/py-tortoise-orm/Makefile
cvs rdiff -u -r1.5 -r1.6 pkgsrc/databases/py-tortoise-orm/PLIST
cvs rdiff -u -r1.12 -r1.13 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.16 pkgsrc/databases/py-tortoise-orm/Makefile:1.17
--- pkgsrc/databases/py-tortoise-orm/Makefile:1.16 Tue Jan 4 20:52:45 2022
+++ pkgsrc/databases/py-tortoise-orm/Makefile Thu Nov 23 07:58:34 2023
@@ -1,8 +1,7 @@
-# $NetBSD: Makefile,v 1.16 2022/01/04 20:52:45 wiz Exp $
+# $NetBSD: Makefile,v 1.17 2023/11/23 07:58:34 adam Exp $
-DISTNAME= tortoise-orm-0.16.21
-PKGNAME= ${PYPKGPREFIX}-${DISTNAME}
-PKGREVISION= 1
+DISTNAME= tortoise_orm-0.20.0
+PKGNAME= ${PYPKGPREFIX}-${DISTNAME:S/_/-/}
CATEGORIES= databases python
MASTER_SITES= ${MASTER_SITE_PYPI:=t/tortoise-orm/}
@@ -13,16 +12,15 @@ LICENSE= apache-2.0
DEPENDS+= ${PYPKGPREFIX}-aiosqlite>=0.16.0:../../databases/py-aiosqlite
DEPENDS+= ${PYPKGPREFIX}-iso8601>=0.1.13:../../time/py-iso8601
-DEPENDS+= ${PYPKGPREFIX}-pypika>=0.44.0:../../databases/py-pypika
+DEPENDS+= ${PYPKGPREFIX}-pypika-tortoise>=0.1.6:../../databases/py-pypika-tortoise
DEPENDS+= ${PYPKGPREFIX}-pytz>=2020.4:../../time/py-pytz
# accel
DEPENDS+= ${PYPKGPREFIX}-ciso8601>=2.1.2:../../time/py-ciso8601
-DEPENDS+= ${PYPKGPREFIX}-rapidjson-[0-9]*:../../textproc/py-rapidjson
DEPENDS+= ${PYPKGPREFIX}-uvloop>=0.14.0:../../devel/py-uvloop
USE_LANGUAGES= # none
PYTHON_VERSIONS_INCOMPATIBLE= 27
-.include "../../lang/python/egg.mk"
+.include "../../lang/python/wheel.mk"
.include "../../mk/bsd.pkg.mk"
Index: pkgsrc/databases/py-tortoise-orm/PLIST
diff -u pkgsrc/databases/py-tortoise-orm/PLIST:1.5 pkgsrc/databases/py-tortoise-orm/PLIST:1.6
--- pkgsrc/databases/py-tortoise-orm/PLIST:1.5 Sun Jan 24 20:10:34 2021
+++ pkgsrc/databases/py-tortoise-orm/PLIST Thu Nov 23 07:58:34 2023
@@ -1,9 +1,10 @@
-@comment $NetBSD: PLIST,v 1.5 2021/01/24 20:10:34 adam Exp $
-${PYSITELIB}/${EGG_INFODIR}/PKG-INFO
-${PYSITELIB}/${EGG_INFODIR}/SOURCES.txt
-${PYSITELIB}/${EGG_INFODIR}/dependency_links.txt
-${PYSITELIB}/${EGG_INFODIR}/requires.txt
-${PYSITELIB}/${EGG_INFODIR}/top_level.txt
+@comment $NetBSD: PLIST,v 1.6 2023/11/23 07:58:34 adam Exp $
+${PYSITELIB}/${WHEEL_INFODIR}/LICENSE.txt
+${PYSITELIB}/${WHEEL_INFODIR}/METADATA
+${PYSITELIB}/${WHEEL_INFODIR}/RECORD
+${PYSITELIB}/${WHEEL_INFODIR}/WHEEL
+${PYSITELIB}/CHANGELOG.rst
+${PYSITELIB}/README.rst
${PYSITELIB}/tortoise/__init__.py
${PYSITELIB}/tortoise/__init__.pyc
${PYSITELIB}/tortoise/__init__.pyo
@@ -37,6 +38,30 @@ ${PYSITELIB}/tortoise/backends/base/exec
${PYSITELIB}/tortoise/backends/base/schema_generator.py
${PYSITELIB}/tortoise/backends/base/schema_generator.pyc
${PYSITELIB}/tortoise/backends/base/schema_generator.pyo
+${PYSITELIB}/tortoise/backends/base_postgres/__init__.py
+${PYSITELIB}/tortoise/backends/base_postgres/__init__.pyc
+${PYSITELIB}/tortoise/backends/base_postgres/__init__.pyo
+${PYSITELIB}/tortoise/backends/base_postgres/client.py
+${PYSITELIB}/tortoise/backends/base_postgres/client.pyc
+${PYSITELIB}/tortoise/backends/base_postgres/client.pyo
+${PYSITELIB}/tortoise/backends/base_postgres/executor.py
+${PYSITELIB}/tortoise/backends/base_postgres/executor.pyc
+${PYSITELIB}/tortoise/backends/base_postgres/executor.pyo
+${PYSITELIB}/tortoise/backends/base_postgres/schema_generator.py
+${PYSITELIB}/tortoise/backends/base_postgres/schema_generator.pyc
+${PYSITELIB}/tortoise/backends/base_postgres/schema_generator.pyo
+${PYSITELIB}/tortoise/backends/mssql/__init__.py
+${PYSITELIB}/tortoise/backends/mssql/__init__.pyc
+${PYSITELIB}/tortoise/backends/mssql/__init__.pyo
+${PYSITELIB}/tortoise/backends/mssql/client.py
+${PYSITELIB}/tortoise/backends/mssql/client.pyc
+${PYSITELIB}/tortoise/backends/mssql/client.pyo
+${PYSITELIB}/tortoise/backends/mssql/executor.py
+${PYSITELIB}/tortoise/backends/mssql/executor.pyc
+${PYSITELIB}/tortoise/backends/mssql/executor.pyo
+${PYSITELIB}/tortoise/backends/mssql/schema_generator.py
+${PYSITELIB}/tortoise/backends/mssql/schema_generator.pyc
+${PYSITELIB}/tortoise/backends/mssql/schema_generator.pyo
${PYSITELIB}/tortoise/backends/mysql/__init__.py
${PYSITELIB}/tortoise/backends/mysql/__init__.pyc
${PYSITELIB}/tortoise/backends/mysql/__init__.pyo
@@ -49,6 +74,39 @@ ${PYSITELIB}/tortoise/backends/mysql/exe
${PYSITELIB}/tortoise/backends/mysql/schema_generator.py
${PYSITELIB}/tortoise/backends/mysql/schema_generator.pyc
${PYSITELIB}/tortoise/backends/mysql/schema_generator.pyo
+${PYSITELIB}/tortoise/backends/odbc/__init__.py
+${PYSITELIB}/tortoise/backends/odbc/__init__.pyc
+${PYSITELIB}/tortoise/backends/odbc/__init__.pyo
+${PYSITELIB}/tortoise/backends/odbc/client.py
+${PYSITELIB}/tortoise/backends/odbc/client.pyc
+${PYSITELIB}/tortoise/backends/odbc/client.pyo
+${PYSITELIB}/tortoise/backends/odbc/executor.py
+${PYSITELIB}/tortoise/backends/odbc/executor.pyc
+${PYSITELIB}/tortoise/backends/odbc/executor.pyo
+${PYSITELIB}/tortoise/backends/oracle/__init__.py
+${PYSITELIB}/tortoise/backends/oracle/__init__.pyc
+${PYSITELIB}/tortoise/backends/oracle/__init__.pyo
+${PYSITELIB}/tortoise/backends/oracle/client.py
+${PYSITELIB}/tortoise/backends/oracle/client.pyc
+${PYSITELIB}/tortoise/backends/oracle/client.pyo
+${PYSITELIB}/tortoise/backends/oracle/executor.py
+${PYSITELIB}/tortoise/backends/oracle/executor.pyc
+${PYSITELIB}/tortoise/backends/oracle/executor.pyo
+${PYSITELIB}/tortoise/backends/oracle/schema_generator.py
+${PYSITELIB}/tortoise/backends/oracle/schema_generator.pyc
+${PYSITELIB}/tortoise/backends/oracle/schema_generator.pyo
+${PYSITELIB}/tortoise/backends/psycopg/__init__.py
+${PYSITELIB}/tortoise/backends/psycopg/__init__.pyc
+${PYSITELIB}/tortoise/backends/psycopg/__init__.pyo
+${PYSITELIB}/tortoise/backends/psycopg/client.py
+${PYSITELIB}/tortoise/backends/psycopg/client.pyc
+${PYSITELIB}/tortoise/backends/psycopg/client.pyo
+${PYSITELIB}/tortoise/backends/psycopg/executor.py
+${PYSITELIB}/tortoise/backends/psycopg/executor.pyc
+${PYSITELIB}/tortoise/backends/psycopg/executor.pyo
+${PYSITELIB}/tortoise/backends/psycopg/schema_generator.py
+${PYSITELIB}/tortoise/backends/psycopg/schema_generator.pyc
+${PYSITELIB}/tortoise/backends/psycopg/schema_generator.pyo
${PYSITELIB}/tortoise/backends/sqlite/__init__.py
${PYSITELIB}/tortoise/backends/sqlite/__init__.pyc
${PYSITELIB}/tortoise/backends/sqlite/__init__.pyo
@@ -61,15 +119,57 @@ ${PYSITELIB}/tortoise/backends/sqlite/ex
${PYSITELIB}/tortoise/backends/sqlite/schema_generator.py
${PYSITELIB}/tortoise/backends/sqlite/schema_generator.pyc
${PYSITELIB}/tortoise/backends/sqlite/schema_generator.pyo
+${PYSITELIB}/tortoise/connection.py
+${PYSITELIB}/tortoise/connection.pyc
+${PYSITELIB}/tortoise/connection.pyo
${PYSITELIB}/tortoise/contrib/__init__.py
${PYSITELIB}/tortoise/contrib/__init__.pyc
${PYSITELIB}/tortoise/contrib/__init__.pyo
${PYSITELIB}/tortoise/contrib/aiohttp/__init__.py
${PYSITELIB}/tortoise/contrib/aiohttp/__init__.pyc
${PYSITELIB}/tortoise/contrib/aiohttp/__init__.pyo
+${PYSITELIB}/tortoise/contrib/blacksheep/__init__.py
+${PYSITELIB}/tortoise/contrib/blacksheep/__init__.pyc
+${PYSITELIB}/tortoise/contrib/blacksheep/__init__.pyo
${PYSITELIB}/tortoise/contrib/fastapi/__init__.py
${PYSITELIB}/tortoise/contrib/fastapi/__init__.pyc
${PYSITELIB}/tortoise/contrib/fastapi/__init__.pyo
+${PYSITELIB}/tortoise/contrib/mysql/__init__.py
+${PYSITELIB}/tortoise/contrib/mysql/__init__.pyc
+${PYSITELIB}/tortoise/contrib/mysql/__init__.pyo
+${PYSITELIB}/tortoise/contrib/mysql/fields.py
+${PYSITELIB}/tortoise/contrib/mysql/fields.pyc
+${PYSITELIB}/tortoise/contrib/mysql/fields.pyo
+${PYSITELIB}/tortoise/contrib/mysql/functions.py
+${PYSITELIB}/tortoise/contrib/mysql/functions.pyc
+${PYSITELIB}/tortoise/contrib/mysql/functions.pyo
+${PYSITELIB}/tortoise/contrib/mysql/indexes.py
+${PYSITELIB}/tortoise/contrib/mysql/indexes.pyc
+${PYSITELIB}/tortoise/contrib/mysql/indexes.pyo
+${PYSITELIB}/tortoise/contrib/mysql/json_functions.py
+${PYSITELIB}/tortoise/contrib/mysql/json_functions.pyc
+${PYSITELIB}/tortoise/contrib/mysql/json_functions.pyo
+${PYSITELIB}/tortoise/contrib/mysql/search.py
+${PYSITELIB}/tortoise/contrib/mysql/search.pyc
+${PYSITELIB}/tortoise/contrib/mysql/search.pyo
+${PYSITELIB}/tortoise/contrib/postgres/__init__.py
+${PYSITELIB}/tortoise/contrib/postgres/__init__.pyc
+${PYSITELIB}/tortoise/contrib/postgres/__init__.pyo
+${PYSITELIB}/tortoise/contrib/postgres/fields.py
+${PYSITELIB}/tortoise/contrib/postgres/fields.pyc
+${PYSITELIB}/tortoise/contrib/postgres/fields.pyo
+${PYSITELIB}/tortoise/contrib/postgres/functions.py
+${PYSITELIB}/tortoise/contrib/postgres/functions.pyc
+${PYSITELIB}/tortoise/contrib/postgres/functions.pyo
+${PYSITELIB}/tortoise/contrib/postgres/indexes.py
+${PYSITELIB}/tortoise/contrib/postgres/indexes.pyc
+${PYSITELIB}/tortoise/contrib/postgres/indexes.pyo
+${PYSITELIB}/tortoise/contrib/postgres/json_functions.py
+${PYSITELIB}/tortoise/contrib/postgres/json_functions.pyc
+${PYSITELIB}/tortoise/contrib/postgres/json_functions.pyo
+${PYSITELIB}/tortoise/contrib/postgres/search.py
+${PYSITELIB}/tortoise/contrib/postgres/search.pyc
+${PYSITELIB}/tortoise/contrib/postgres/search.pyo
${PYSITELIB}/tortoise/contrib/pydantic/__init__.py
${PYSITELIB}/tortoise/contrib/pydantic/__init__.pyc
${PYSITELIB}/tortoise/contrib/pydantic/__init__.pyo
@@ -91,15 +191,21 @@ ${PYSITELIB}/tortoise/contrib/quart/__in
${PYSITELIB}/tortoise/contrib/sanic/__init__.py
${PYSITELIB}/tortoise/contrib/sanic/__init__.pyc
${PYSITELIB}/tortoise/contrib/sanic/__init__.pyo
+${PYSITELIB}/tortoise/contrib/sqlite/__init__.py
+${PYSITELIB}/tortoise/contrib/sqlite/__init__.pyc
+${PYSITELIB}/tortoise/contrib/sqlite/__init__.pyo
+${PYSITELIB}/tortoise/contrib/sqlite/functions.py
+${PYSITELIB}/tortoise/contrib/sqlite/functions.pyc
+${PYSITELIB}/tortoise/contrib/sqlite/functions.pyo
${PYSITELIB}/tortoise/contrib/starlette/__init__.py
${PYSITELIB}/tortoise/contrib/starlette/__init__.pyc
${PYSITELIB}/tortoise/contrib/starlette/__init__.pyo
${PYSITELIB}/tortoise/contrib/test/__init__.py
${PYSITELIB}/tortoise/contrib/test/__init__.pyc
${PYSITELIB}/tortoise/contrib/test/__init__.pyo
-${PYSITELIB}/tortoise/contrib/test/nose2.py
-${PYSITELIB}/tortoise/contrib/test/nose2.pyc
-${PYSITELIB}/tortoise/contrib/test/nose2.pyo
+${PYSITELIB}/tortoise/contrib/test/condition.py
+${PYSITELIB}/tortoise/contrib/test/condition.pyc
+${PYSITELIB}/tortoise/contrib/test/condition.pyo
${PYSITELIB}/tortoise/converters.py
${PYSITELIB}/tortoise/converters.pyc
${PYSITELIB}/tortoise/converters.pyo
@@ -127,6 +233,15 @@ ${PYSITELIB}/tortoise/filters.pyo
${PYSITELIB}/tortoise/functions.py
${PYSITELIB}/tortoise/functions.pyc
${PYSITELIB}/tortoise/functions.pyo
+${PYSITELIB}/tortoise/indexes.py
+${PYSITELIB}/tortoise/indexes.pyc
+${PYSITELIB}/tortoise/indexes.pyo
+${PYSITELIB}/tortoise/log.py
+${PYSITELIB}/tortoise/log.pyc
+${PYSITELIB}/tortoise/log.pyo
+${PYSITELIB}/tortoise/manager.py
+${PYSITELIB}/tortoise/manager.pyc
+${PYSITELIB}/tortoise/manager.pyo
${PYSITELIB}/tortoise/models.py
${PYSITELIB}/tortoise/models.pyc
${PYSITELIB}/tortoise/models.pyo
@@ -137,6 +252,9 @@ ${PYSITELIB}/tortoise/query_utils.pyo
${PYSITELIB}/tortoise/queryset.py
${PYSITELIB}/tortoise/queryset.pyc
${PYSITELIB}/tortoise/queryset.pyo
+${PYSITELIB}/tortoise/router.py
+${PYSITELIB}/tortoise/router.pyc
+${PYSITELIB}/tortoise/router.pyo
${PYSITELIB}/tortoise/signals.py
${PYSITELIB}/tortoise/signals.pyc
${PYSITELIB}/tortoise/signals.pyo
Index: pkgsrc/databases/py-tortoise-orm/distinfo
diff -u pkgsrc/databases/py-tortoise-orm/distinfo:1.12 pkgsrc/databases/py-tortoise-orm/distinfo:1.13
--- pkgsrc/databases/py-tortoise-orm/distinfo:1.12 Tue Oct 26 10:09:54 2021
+++ pkgsrc/databases/py-tortoise-orm/distinfo Thu Nov 23 07:58:34 2023
@@ -1,5 +1,5 @@
-$NetBSD: distinfo,v 1.12 2021/10/26 10:09:54 nia Exp $
+$NetBSD: distinfo,v 1.13 2023/11/23 07:58:34 adam Exp $
-BLAKE2s (tortoise-orm-0.16.21.tar.gz) = 6eca10e923be850f4dfdff8c266e7f14a6d84922686b535efc1acb20ce881499
-SHA512 (tortoise-orm-0.16.21.tar.gz) = aeacba81160321407326826bea14ffa495e085cb8225e2ae187f9adbd262413d5a87a4796d75438ad3a0f061e0afa090c06781e29d5e2ebe503fdd7674192a36
-Size (tortoise-orm-0.16.21.tar.gz) = 108433 bytes
+BLAKE2s (tortoise_orm-0.20.0.tar.gz) = 1af043bb635912fd94b6f7be4a86d9294ba16d9fc8abe80436d3992857b1b1f5
+SHA512 (tortoise_orm-0.20.0.tar.gz) = 21dfd669391dc9f71aec38b4a10c8cff8e3edaeac99f11e121b3c5dcf73fd5aae843987b6146ca9c0f175529dfd6bb7e78d9fdbc8f5e8ba109848cfbb105969e
+Size (tortoise_orm-0.20.0.tar.gz) = 131922 bytes
Home |
Main Index |
Thread Index |
Old Index