17
0

Accepting request 683645 from devel:languages:python

OBS-URL: https://build.opensuse.org/request/show/683645
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-SQLAlchemy?expand=0&rev=61
This commit is contained in:
2019-03-12 08:46:10 +00:00
committed by Git OBS Bridge
5 changed files with 25 additions and 42 deletions

View File

@@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:11ead7047ff3f394ed0d4b62aded6c5d970a9b718e1dc6add9f5e79442cc5b14
size 5862243

3
SQLAlchemy-1.3.1.tar.gz Normal file
View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:781fb7b9d194ed3fc596b8f0dd4623ff160e3e825dd8c15472376a438c19598b
size 5864223

View File

@@ -1,3 +1,24 @@
-------------------------------------------------------------------
Sun Mar 10 16:34:50 UTC 2019 - Arun Persaud <arun@gmx.de>
- specfile:
* removed test.patch (included upstream)
- update to version 1.3.1:
* orm
+ [orm] [bug] [ext] Fixed regression where an association proxy
linked to a synonym would no longer work, both at instance level
and at class level. References: #4522
* mssql
+ [mssql] [bug] A commit() is emitted after an isolation level
change to SNAPSHOT, as both pyodbc and pymssql open an implicit
transaction which blocks subsequent SQL from being emitted in
the current transaction. References: #4536
+ [mssql] [bug] Fixed regression in SQL Server reflection due to
#4393 where the removal of open-ended **kw from the Float
datatype caused reflection of this type to fail due to a “scale”
argument being passed. References: #4525
-------------------------------------------------------------------
Wed Mar 6 13:27:40 UTC 2019 - Tomáš Chvátal <tchvatal@suse.com>

View File

@@ -19,14 +19,13 @@
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
%define oldpython python
Name: python-SQLAlchemy
Version: 1.3.0
Version: 1.3.1
Release: 0
Summary: Database Abstraction Library
License: MIT
Group: Development/Languages/Python
URL: http://www.sqlalchemy.org
Source: https://files.pythonhosted.org/packages/source/S/SQLAlchemy/SQLAlchemy-%{version}.tar.gz
Patch0: test.patch
# devel is needed for optional C extensions cprocessors.so, cresultproxy.so and cutils.so
BuildRequires: %{python_module devel}
BuildRequires: %{python_module setuptools}
@@ -68,7 +67,6 @@ reference for python-SQLAlchemy.
%setup -q -n SQLAlchemy-%{version}
rm -rf doc/build # Remove unnecessary scripts for building documentation
sed -i 's/\r$//' examples/dynamic_dict/dynamic_dict.py
%patch0 -p1
%build
export CFLAGS="%{optflags} -fno-strict-aliasing"

View File

@@ -1,36 +0,0 @@
From 3a2263fe7c244325748820840fb3084630f75705 Mon Sep 17 00:00:00 2001
From: Mike Bayer <mike_mp@zzzcomputing.com>
Date: Wed, 06 Mar 2019 08:18:26 -0500
Subject: [PATCH] Loosen SingletonThreadPoolTest
This test is non-critical as the SingletonThreadPool is
not production-level robust under multithreaded scenarios in
any case.
Fixes: #4527
Change-Id: Ie19ebd69438c97b2d8adb571f8f1b2c56894f7fb
---
diff --git a/test/engine/test_pool.py b/test/engine/test_pool.py
index 1aadd47..5979388 100644
--- a/test/engine/test_pool.py
+++ b/test/engine/test_pool.py
@@ -15,6 +15,7 @@
from sqlalchemy.testing import fixtures
from sqlalchemy.testing import is_
from sqlalchemy.testing import is_not_
+from sqlalchemy.testing import is_true
from sqlalchemy.testing.engines import testing_engine
from sqlalchemy.testing.mock import ANY
from sqlalchemy.testing.mock import call
@@ -1809,7 +1810,9 @@
threads.append(th)
for th in threads:
th.join(join_timeout)
- eq_(len(p._all_conns), 3)
+
+ lp = len(p._all_conns)
+ is_true(3 <= lp <=4)
if strong_refs:
still_opened = len([c for c in sr if not c.close.call_count])