Hello community, here is the log from the commit of package python-SQLAlchemy for openSUSE:Factory checked in at 2019-03-08 11:01:31 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/python-SQLAlchemy (Old) and /work/SRC/openSUSE:Factory/.python-SQLAlchemy.new.28833 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-SQLAlchemy" Fri Mar 8 11:01:31 2019 rev:60 rq:682172 version:1.3.0 Changes: -------- --- /work/SRC/openSUSE:Factory/python-SQLAlchemy/python-SQLAlchemy.changes 2019-02-24 17:03:27.156678830 +0100 +++ /work/SRC/openSUSE:Factory/.python-SQLAlchemy.new.28833/python-SQLAlchemy.changes 2019-03-08 11:01:32.912539397 +0100 @@ -1,0 +2,13 @@ +Wed Mar 6 13:27:40 UTC 2019 - Tomáš Chvátal <tchva...@suse.com> + +- Add patch to fix test failure from upstream test.patch + +------------------------------------------------------------------- +Wed Mar 6 10:29:05 UTC 2019 - Tomáš Chvátal <tchva...@suse.com> + +- Update to versrion 1.3.0: + * See https://docs.sqlalchemy.org/en/latest/changelog/migration_13.html + for deprecation list with this version + * For the changes see https://docs.sqlalchemy.org/en/latest/changelog/changelog_13.html + +------------------------------------------------------------------- Old: ---- SQLAlchemy-1.2.18.tar.gz New: ---- SQLAlchemy-1.3.0.tar.gz test.patch ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python-SQLAlchemy.spec ++++++ --- /var/tmp/diff_new_pack.f2IUSx/_old 2019-03-08 11:01:33.692539273 +0100 +++ /var/tmp/diff_new_pack.f2IUSx/_new 2019-03-08 11:01:33.696539272 +0100 @@ -18,34 +18,31 @@ %{?!python_module:%define python_module() python-%{**} python3-%{**}} %define oldpython python -%bcond_without tests Name: python-SQLAlchemy -Version: 1.2.18 +Version: 1.3.0 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} +BuildRequires: fdupes +BuildRequires: python-rpm-macros +Provides: python-sqlalchemy = %{version} +Obsoletes: python-sqlalchemy < %{version} # SECTION test requirements BuildRequires: %{python_module mock} BuildRequires: %{python_module pytest-xdist} BuildRequires: %{python_module pytest} # /SECTION -BuildRequires: fdupes -BuildRequires: python-rpm-macros -#BuildRequires: python-pysqlite %ifpython2 Obsoletes: %{oldpython}-sqlalchemy < %{version} Provides: %{oldpython}-sqlalchemy = %{version} %endif -%ifpython3 -Provides: python3-sqlalchemy = %{version} -Obsoletes: python3-sqlalchemy < %{version} -%endif %python_subpackages %description @@ -60,9 +57,7 @@ %package -n %{name}-doc Summary: Documentation for python-SQLAlchemy Group: Documentation/Other -Provides: python-SQLAlchemy-doc = %{version} -Provides: python2-SQLAlchemy-doc = %{version} -Provides: python3-SQLAlchemy-doc = %{version} +Provides: %{python_module SQLAlchemy-doc = %{version}} BuildArch: noarch %description -n %{name}-doc @@ -73,6 +68,7 @@ %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" @@ -82,10 +78,8 @@ %python_install %python_expand %fdupes %{buildroot}%{$python_sitearch} -%if %{with tests} %check -%python_expand py.test-%{$python_bin_suffix} -%endif +%python_expand py.test-%{$python_bin_suffix} -v %files %{python_files} %license LICENSE ++++++ SQLAlchemy-1.2.18.tar.gz -> SQLAlchemy-1.3.0.tar.gz ++++++ ++++ 68722 lines of diff (skipped) ++++++ test.patch ++++++ >From 3a2263fe7c244325748820840fb3084630f75705 Mon Sep 17 00:00:00 2001 From: Mike Bayer <mike...@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])