From 8c88b3c8d2b7dfbf42eefd15801eb12606e57cc1e1a7a165d224bcb6cd0299d7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Chv=C3=A1tal?= Date: Sun, 8 Apr 2018 17:58:08 +0000 Subject: [PATCH] Accepting request 594666 from home:apersaud:branches:devel:languages:python MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - specfile: * run spec-cleaner - update to version 1.2.6: * orm + [orm] [bug] Fixed bug where using Mutable.associate_with() or Mutable.as_mutable() in conjunction with a class that has non- primary mappers set up with alternatively-named attributes would produce an attribute error. Since non-primary mappers are not used for persistence, the mutable extension now excludes non-primary mappers from its instrumentation steps. References: #4215 * engine + [engine] [bug] Fixed bug in connection pool where a connection could be present in the pool without all of its “connect” event handlers called, if a previous “connect” handler threw an exception; note that the dialects themselves have connect handlers that emit SQL, such as those which set transaction isolation, which can fail if the database is in a non-available state, but still allows a connection. The connection is now invalidated first if any of the connect handlers fail. References: #4225 * sql + [sql] [bug] Fixed a regression that occurred from the previous fix to #4204 in version 1.2.5, where a CTE that refers to itself after the CTE.alias() method has been called would not refer to iself correctly. References: #4204 * postgresql + [postgresql] [feature] Added support for “PARTITION BY” in Postgresql table definitions, using “postgresql_partition_by”. Pull request courtesy Vsevolod Solovyov. * mssql + [mssql] [bug] Adjusted the SQL Server version detection for pyodbc to only allow for numeric tokens, filtering out non-integers, since the dialect does tuple- numeric comparisons with this value. This is normally true for all known SQL Server / pyodbc drivers in any case. References: #4227 * oracle + [oracle] [bug] The minimum cx_Oracle version supported is 5.2 (June 2015). Previously, the dialect asserted against version 5.0 but as of 1.2.2 we are using some symbols that did not appear until 5.2. References: #4211 * misc + [bug] [declarative] Removed a warning that would be emitted when calling upon __table_args__, __mapper_args__ as named with a @declared_attr method, when called from a non-mapped declarative mixin. Calling these directly is documented as the approach to use when one is overidding one of these methods on a mapped class. The warning still emits for regular attribute names. References: #4221 OBS-URL: https://build.opensuse.org/request/show/594666 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-SQLAlchemy?expand=0&rev=108 --- SQLAlchemy-1.2.5.tar.gz | 3 --- SQLAlchemy-1.2.6.tar.gz | 3 +++ python-SQLAlchemy.changes | 55 +++++++++++++++++++++++++++++++++++++++ python-SQLAlchemy.spec | 19 ++++++-------- 4 files changed, 66 insertions(+), 14 deletions(-) delete mode 100644 SQLAlchemy-1.2.5.tar.gz create mode 100644 SQLAlchemy-1.2.6.tar.gz diff --git a/SQLAlchemy-1.2.5.tar.gz b/SQLAlchemy-1.2.5.tar.gz deleted file mode 100644 index 5c7105c..0000000 --- a/SQLAlchemy-1.2.5.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:249000654107a420a40200f1e0b555a79dfd4eff235b2ff60bc77714bd045f2d -size 5559969 diff --git a/SQLAlchemy-1.2.6.tar.gz b/SQLAlchemy-1.2.6.tar.gz new file mode 100644 index 0000000..3f96c58 --- /dev/null +++ b/SQLAlchemy-1.2.6.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:7cb00cc9b9f92ef8b4391c8a2051f81eeafefe32d63c6b395fd51401e9a39edb +size 5565074 diff --git a/python-SQLAlchemy.changes b/python-SQLAlchemy.changes index b99c298..609f320 100644 --- a/python-SQLAlchemy.changes +++ b/python-SQLAlchemy.changes @@ -1,3 +1,58 @@ +------------------------------------------------------------------- +Sun Apr 1 22:17:46 UTC 2018 - arun@gmx.de + +- specfile: + * run spec-cleaner + +- update to version 1.2.6: + * orm + + [orm] [bug] Fixed bug where using Mutable.associate_with() or + Mutable.as_mutable() in conjunction with a class that has non- + primary mappers set up with alternatively-named attributes would + produce an attribute error. Since non-primary mappers are not + used for persistence, the mutable extension now excludes + non-primary mappers from its instrumentation steps. References: + #4215 + * engine + + [engine] [bug] Fixed bug in connection pool where a connection + could be present in the pool without all of its “connect” event + handlers called, if a previous “connect” handler threw an + exception; note that the dialects themselves have connect + handlers that emit SQL, such as those which set transaction + isolation, which can fail if the database is in a non-available + state, but still allows a connection. The connection is now + invalidated first if any of the connect handlers fail. + References: #4225 + * sql + + [sql] [bug] Fixed a regression that occurred from the previous + fix to #4204 in version 1.2.5, where a CTE that refers to itself + after the CTE.alias() method has been called would not refer to + iself correctly. References: #4204 + * postgresql + + [postgresql] [feature] Added support for “PARTITION BY” in + Postgresql table definitions, using + “postgresql_partition_by”. Pull request courtesy Vsevolod + Solovyov. + * mssql + + [mssql] [bug] Adjusted the SQL Server version detection for + pyodbc to only allow for numeric tokens, filtering out + non-integers, since the dialect does tuple- numeric comparisons + with this value. This is normally true for all known SQL Server + / pyodbc drivers in any case. References: #4227 + * oracle + + [oracle] [bug] The minimum cx_Oracle version supported is 5.2 + (June 2015). Previously, the dialect asserted against version + 5.0 but as of 1.2.2 we are using some symbols that did not + appear until 5.2. References: #4211 + * misc + + [bug] [declarative] Removed a warning that would be emitted when + calling upon __table_args__, __mapper_args__ as named with a + @declared_attr method, when called from a non-mapped declarative + mixin. Calling these directly is documented as the approach to + use when one is overidding one of these methods on a mapped + class. The warning still emits for regular attribute names. + References: #4221 + ------------------------------------------------------------------- Thu Mar 8 04:50:46 UTC 2018 - arun@gmx.de diff --git a/python-SQLAlchemy.spec b/python-SQLAlchemy.spec index 89332ec..b6b7b7d 100644 --- a/python-SQLAlchemy.spec +++ b/python-SQLAlchemy.spec @@ -16,27 +16,25 @@ # -%bcond_without tests - %{?!python_module:%define python_module() python-%{**} python3-%{**}} %define oldpython python +%bcond_without tests Name: python-SQLAlchemy -Version: 1.2.5 +Version: 1.2.6 Release: 0 -Url: http://www.sqlalchemy.org 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 -BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildRequires: %{python_module devel} -BuildRequires: %{python_module setuptools} -BuildRequires: fdupes -BuildRequires: python-rpm-macros # Test requirements: BuildRequires: %{python_module mock} BuildRequires: %{python_module pytest-xdist} BuildRequires: %{python_module pytest} +BuildRequires: %{python_module setuptools} +BuildRequires: fdupes +BuildRequires: python-rpm-macros #BuildRequires: python-pysqlite %ifpython2 Obsoletes: %{oldpython}-sqlalchemy < %{version} @@ -88,13 +86,12 @@ export CFLAGS="%{optflags} -fno-strict-aliasing" %endif %files %{python_files} -%defattr(-,root,root,-) -%doc CHANGES LICENSE README.rst README.dialects.rst README.unittests.rst +%license LICENSE +%doc CHANGES README.rst README.dialects.rst README.unittests.rst %{python_sitearch}/sqlalchemy/ %{python_sitearch}/SQLAlchemy-%{version}-py%{py_ver}.egg-info %files -n %{name}-doc -%defattr(-,root,root) %doc doc/ %doc examples/