forked from pool/python-SQLAlchemy
Accepting request 890304 from home:alarrosa:branches:devel:languages:python
- update to 1.4.13:
orm
* Fixed regression in selectinload loader strategy that would
cause it to cache its internal state incorrectly when handling
relationships that join across more than one column, such as
when using a composite foreign key. The invalid caching would
then cause other unrelated loader operations to fail.
References: #6410
* Fixed regression where Query.filter_by() would not work if the
lead entity were a SQL function or other expression derived
from the primary entity in question, rather than a simple
entity or column of that entity. Additionally, improved the
behavior of Select.filter_by() overall to work with column
expressions even in a non-ORM context. References: #6414
* Fixed regression where using selectinload() and subqueryload()
to load a two-level-deep path would lead to an attribute error.
References: #6419
* Fixed regression where using the noload() loader strategy in
conjunction with a “dynamic” relationship would lead to an
attribute error as the noload strategy would attempt to apply
itself to the dynamic loader. References: #6420
engine
* Restored a legacy transactional behavior that was inadvertently
removed from the Connection as it was never tested as a known
use case in previous versions, where calling upon the
Connection.begin_nested() method, when no transaction is
present, does not create a SAVEPOINT at all and instead starts
an outer transaction, returning a RootTransaction object
instead of a NestedTransaction object. This RootTransaction
then will emit a real COMMIT on the database connection when
OBS-URL: https://build.opensuse.org/request/show/890304
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-SQLAlchemy?expand=0&rev=188
This commit is contained in:
@@ -17,9 +17,10 @@
|
||||
|
||||
|
||||
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
||||
%define skip_python2 1
|
||||
%define oldpython python
|
||||
Name: python-SQLAlchemy
|
||||
Version: 1.3.23
|
||||
Version: 1.4.13
|
||||
Release: 0
|
||||
Summary: Database Abstraction Library
|
||||
License: MIT
|
||||
@@ -37,12 +38,23 @@ BuildRequires: %{pythons}
|
||||
BuildRequires: fdupes
|
||||
BuildRequires: python-rpm-macros
|
||||
Requires: python
|
||||
%if %{python_version_nodots} < 38
|
||||
Requires: python-importlib-metadata
|
||||
%endif
|
||||
%ifpython3
|
||||
Requires: python-greenlet
|
||||
%endif
|
||||
Provides: python-sqlalchemy = %{version}
|
||||
Obsoletes: python-sqlalchemy < %{version}
|
||||
# SECTION test requirements
|
||||
BuildRequires: %{python_module mock}
|
||||
BuildRequires: %{python_module pytest >= 4.4.0}
|
||||
BuildRequires: %{python_module pytest-xdist}
|
||||
%if %{python_version_nodots} < 38
|
||||
BuildRequires: %{python_module importlib-metadata}
|
||||
%endif
|
||||
%ifpython3
|
||||
BuildRequires: %{python_module greenlet}
|
||||
%endif
|
||||
# /SECTION
|
||||
%ifpython2
|
||||
Obsoletes: %{oldpython}-sqlalchemy < %{version}
|
||||
@@ -85,7 +97,7 @@ export CFLAGS="%{optflags} -fno-strict-aliasing"
|
||||
%check
|
||||
# One test fails on Python 3.6
|
||||
# packaging.version.InvalidVersion: Invalid version: 'SQLAlchemy'
|
||||
%pytest_arch -n auto -k 'not (test_parseconnect and CreateEngineTest and test_bad_args)'
|
||||
%pytest_arch -k 'not (test_parseconnect and CreateEngineTest and test_bad_args)'
|
||||
|
||||
%files %{python_files}
|
||||
%license LICENSE
|
||||
|
||||
Reference in New Issue
Block a user