From 16e4a5ea78b0f53355fa5ec1124a4a7d6b7ec47b7ad735a779a199e4487aaee7 Mon Sep 17 00:00:00 2001 From: Dirk Mueller Date: Sat, 16 Oct 2021 23:39:38 +0000 Subject: [PATCH] - update to version 1.4.25: * Fixed regression due to :ticket:`7024` where the reorganization of the "platform machine" names used by the ``greenlet`` dependency mis-spelled "aarch64" and additionally omitted uppercase "AMD64" as is needed for Windows machines. * Fixed a bug in :meth:`_asyncio.AsyncSession.execute` and :meth:`_asyncio.AsyncSession.stream` that required ``execution_options`` to be an instance of ``immutabledict`` when defined. It now correctly accepts any mapping. * Improve the interface used by adapted drivers, like the asyncio ones, to access the actual connection object returned by the driver. * Implemented missing methods in :class:`_functions.FunctionElement` which, while unused, would lead pylint to report them as unimplemented abstract methods. * Fixed an issue where :meth:`_reflection.has_table` returned ``True`` for local temporary tables that actually belonged to a different SQL Server session (connection). An extra check is now performed to ensure that the temp table detected is in fact owned by the current session. * Fixed issue where the ability of the :meth:`_events.ConnectionEvents.before_execute` method to alter the SQL statement object passed, returning the new object to be invoked, was inadvertently removed. This behavior has been restored. * Ensure that ``str()`` is called on the an :paramref:`_url.URL.create.password` argument, allowing usage of objects that implement the ``__str__()`` method as password attributes. Also clarified that one such object is not appropriate to dynamically change the password for each database connection; the approaches at :ref:`engines_dynamic_tokens` should be used instead. * Fixed ORM issue where column expressions passed to ``query()`` or OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-SQLAlchemy?expand=0&rev=196 --- SQLAlchemy-1.4.22.tar.gz | 3 -- SQLAlchemy-1.4.25.tar.gz | 3 ++ python-SQLAlchemy.changes | 62 +++++++++++++++++++++++++++++++++++++++ python-SQLAlchemy.spec | 2 +- 4 files changed, 66 insertions(+), 4 deletions(-) delete mode 100644 SQLAlchemy-1.4.22.tar.gz create mode 100644 SQLAlchemy-1.4.25.tar.gz diff --git a/SQLAlchemy-1.4.22.tar.gz b/SQLAlchemy-1.4.22.tar.gz deleted file mode 100644 index 2e9aba0..0000000 --- a/SQLAlchemy-1.4.22.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:ec1be26cdccd60d180359a527d5980d959a26269a2c7b1b327a1eea0cab37ed8 -size 7709437 diff --git a/SQLAlchemy-1.4.25.tar.gz b/SQLAlchemy-1.4.25.tar.gz new file mode 100644 index 0000000..b6ef09a --- /dev/null +++ b/SQLAlchemy-1.4.25.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:1adf3d25e2e33afbcd48cfad8076f9378793be43e7fec3e4334306cac6bec138 +size 7776002 diff --git a/python-SQLAlchemy.changes b/python-SQLAlchemy.changes index 7c2caa3..7653b19 100644 --- a/python-SQLAlchemy.changes +++ b/python-SQLAlchemy.changes @@ -1,3 +1,65 @@ +------------------------------------------------------------------- +Sat Oct 16 23:34:51 UTC 2021 - Dirk Müller + +- update to version 1.4.25: + * Fixed regression due to :ticket:`7024` where the reorganization of the + "platform machine" names used by the ``greenlet`` dependency mis-spelled + "aarch64" and additionally omitted uppercase "AMD64" as is needed for + Windows machines. + * Fixed a bug in :meth:`_asyncio.AsyncSession.execute` and + :meth:`_asyncio.AsyncSession.stream` that required ``execution_options`` + to be an instance of ``immutabledict`` when defined. It now + correctly accepts any mapping. + * Improve the interface used by adapted drivers, like the asyncio ones, + to access the actual connection object returned by the driver. + * Implemented missing methods in :class:`_functions.FunctionElement` which, + while unused, would lead pylint to report them as unimplemented abstract + methods. + * Fixed an issue where :meth:`_reflection.has_table` returned + ``True`` for local temporary tables that actually belonged to a + different SQL Server session (connection). An extra check is now + performed to ensure that the temp table detected is in fact owned + by the current session. + * Fixed issue where the ability of the + :meth:`_events.ConnectionEvents.before_execute` method to alter the SQL + statement object passed, returning the new object to be invoked, was + inadvertently removed. This behavior has been restored. + * Ensure that ``str()`` is called on the an + :paramref:`_url.URL.create.password` argument, allowing usage of objects + that implement the ``__str__()`` method as password attributes. Also + clarified that one such object is not appropriate to dynamically change the + password for each database connection; the approaches at + :ref:`engines_dynamic_tokens` should be used instead. + * Fixed ORM issue where column expressions passed to ``query()`` or + ORM-enabled ``select()`` would be deduplicated on the identity of the + object, such as a phrase like ``select(A.id, null(), null())`` would + produce only one "NULL" expression, which previously was not the case in + 1.3. However, the change also allows for ORM expressions to render as given + as well, such as ``select(A.data, A.data)`` will produce a result row with + two columns. + * Fixed issue where mypy plugin would crash when interpreting a + ``query_expression()`` construct. + * Added new methods :meth:`_orm.Session.scalars`, + * Added loader options to :meth:`_orm.Session.merge` and + :meth:`_asyncio.AsyncSession.merge` via a new + :paramref:`_orm.Session.merge.options` parameter, which will apply the + given loader options to the ``get()`` used internally by merge, allowing + eager loading of relationships etc. to be applied when the merge process + loads a new object. Pull request courtesy Daniel Stone. + * Added initial support for the ``asyncmy`` asyncio database driver for MySQL + and MariaDB. This driver is very new, however appears to be the only + current alternative to the ``aiomysql`` driver which currently appears to + be unmaintained and is not working with current Python versions. Much + thanks to long2ice for the pull request for this dialect. + * Fixed a two issues where combinations of ``select()`` and ``join()`` when + adapted to form a copy of the element would not completely copy the state + of all column objects associated with subqueries. A key problem this caused + is that usage of the :meth:`_sql.ClauseElement.params` method (which should + probably be moved into a legacy category as it is inefficient and error + prone) would leave copies of the old :class:`_sql.BindParameter` objects + around, leading to issues in correctly setting the parameters at execution + time. + ------------------------------------------------------------------- Thu Jul 22 01:35:15 UTC 2021 - Arun Persaud diff --git a/python-SQLAlchemy.spec b/python-SQLAlchemy.spec index f646396..edbc1c6 100644 --- a/python-SQLAlchemy.spec +++ b/python-SQLAlchemy.spec @@ -20,7 +20,7 @@ %define skip_python2 1 %define oldpython python Name: python-SQLAlchemy -Version: 1.4.22 +Version: 1.4.25 Release: 0 Summary: Database Abstraction Library License: MIT