From 0cf291d7dafef13701250d1b105441f423840823089aba0589dfb811b9ad44b0 Mon Sep 17 00:00:00 2001 From: Matej Cepl Date: Sun, 1 Jul 2018 21:24:33 +0000 Subject: [PATCH] Accepting request 620059 from home:apersaud:branches:devel:languages:python update to latest version OBS-URL: https://build.opensuse.org/request/show/620059 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-SQLAlchemy?expand=0&rev=115 --- SQLAlchemy-1.2.8.tar.gz | 3 - SQLAlchemy-1.2.9.tar.gz | 3 + fix_test_reflection.patch | 47 ------------- python-SQLAlchemy.changes | 142 ++++++++++++++++++++++++++++++++++++++ python-SQLAlchemy.spec | 4 +- 5 files changed, 146 insertions(+), 53 deletions(-) delete mode 100644 SQLAlchemy-1.2.8.tar.gz create mode 100644 SQLAlchemy-1.2.9.tar.gz delete mode 100644 fix_test_reflection.patch diff --git a/SQLAlchemy-1.2.8.tar.gz b/SQLAlchemy-1.2.8.tar.gz deleted file mode 100644 index 58a9749..0000000 --- a/SQLAlchemy-1.2.8.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:2d5f08f714a886a1382c18be501e614bce50d362384dc089474019ce0768151c -size 5586724 diff --git a/SQLAlchemy-1.2.9.tar.gz b/SQLAlchemy-1.2.9.tar.gz new file mode 100644 index 0000000..1a3e7c9 --- /dev/null +++ b/SQLAlchemy-1.2.9.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:e21e5561a85dcdf16b8520ae4daec7401c5c24558e0ce004f9b60be75c4b6957 +size 5606090 diff --git a/fix_test_reflection.patch b/fix_test_reflection.patch deleted file mode 100644 index a6194d0..0000000 --- a/fix_test_reflection.patch +++ /dev/null @@ -1,47 +0,0 @@ -From 871c64221a56e546237e7cf1b2910842027c3531 Mon Sep 17 00:00:00 2001 -From: Nils Philippsen -Date: Sun, 24 Jun 2018 11:47:05 -0400 -Subject: [PATCH] fix TypeReflectionTest for sqlite 3.24 - -Fixed issue in test suite where SQLite 3.24 added a new reserved word that -conflicted with a usage in TypeReflectionTest. Pull request courtesy Nils -Philippsen. - -Change-Id: I396562cecb5ca774f29e9234845bcc6a399fc5cb -Pull-request: https://github.com/zzzeek/sqlalchemy/pull/452 -(cherry picked from commit 40a5d0a4b006780167976b296984eb9790f3df7f) ---- - doc/build/changelog/unreleased_12/pr452.rst | 7 +++++++ - test/dialect/test_sqlite.py | 2 +- - 2 files changed, 8 insertions(+), 1 deletion(-) - create mode 100644 doc/build/changelog/unreleased_12/pr452.rst - -diff --git a/doc/build/changelog/unreleased_12/pr452.rst b/doc/build/changelog/unreleased_12/pr452.rst -new file mode 100644 -index 0000000..471b203 ---- /dev/null -+++ b/doc/build/changelog/unreleased_12/pr452.rst -@@ -0,0 +1,7 @@ -+.. change:: -+ :tags: bug, sqlite -+ :versions: 1.3.0b1 -+ -+ Fixed issue in test suite where SQLite 3.24 added a new reserved word that -+ conflicted with a usage in TypeReflectionTest. Pull request courtesy Nils -+ Philippsen. -diff --git a/test/dialect/test_sqlite.py b/test/dialect/test_sqlite.py -index 4c462ae..d2d5632 100644 ---- a/test/dialect/test_sqlite.py -+++ b/test/dialect/test_sqlite.py -@@ -1637,7 +1637,7 @@ class TypeReflectionTest(fixtures.TestBase): - ("BLOBBER", sqltypes.NullType()), - ("DOUBLE PRECISION", sqltypes.REAL()), - ("FLOATY", sqltypes.REAL()), -- ("NOTHING WE KNOW", sqltypes.NUMERIC()), -+ ("SOMETHING UNKNOWN", sqltypes.NUMERIC()), - ] - - def _fixture_as_string(self, fixture): --- -2.10.5 - diff --git a/python-SQLAlchemy.changes b/python-SQLAlchemy.changes index 7f7c130..f3dd0a2 100644 --- a/python-SQLAlchemy.changes +++ b/python-SQLAlchemy.changes @@ -1,3 +1,145 @@ +------------------------------------------------------------------- +Sun Jul 1 02:17:55 UTC 2018 - arun@gmx.de + +- removed patch fix_test_reflection.patch (included upstream) + +- update to version 1.2.9: + * orm + + [orm] [bug] Fixed issue where chaining multiple join elements + inside of Query.join() might not correctly adapt to the previous + left-hand side, when chaining joined inheritance classes that + share the same base class. + References: #3505 + + [orm] [bug] Fixed bug in cache key generation for baked queries + which could cause a too-short cache key to be generated for the + case of eager loads across subclasses. This could in turn cause + the eagerload query to be cached in place of a non-eagerload + query, or vice versa, for a polymorhic “selectin” load, or + possibly for lazy loads or selectin loads as well. + References: #4287 + + [orm] [bug] Fixed bug in new polymorphic selectin loading where + the BakedQuery used internally would be mutated by the given + loader options, which would both inappropriately mutate the + subclass query as well as carry over the effect to subsequent + queries. + References: #4286 + + [orm] [bug] Fixed regression caused by #4256 (itself a + regression fix for #4228) which breaks an undocumented behavior + which converted for a non-sequence of entities passed directly + to the Query constructor into a single-element sequence. While + this behavior was never supported or documented, it’s already in + use so has been added as a behavioral contract to Query. + References: #4269 + + [orm] [bug] Fixed an issue that was both a performance + regression in 1.2 as well as an incorrect result regarding the + “baked” lazy loader, involving the generation of cache keys from + the original Query object’s loader options. If the loader + options were built up in a “branched” style using common base + elements for multiple options, the same options would be + rendered into the cache key repeatedly, causing both a + performance issue as well as generating the wrong cache + key. This is fixed, along with a performance improvement when + such “branched” options are applied via Query.options() to + prevent the same option objects from being applied repeatedly. + References: #4270 + * sql + + [sql] [bug] Fixed regression in 1.2 due to #4147 where a Table + that has had some of its indexed columns redefined with new + ones, as would occur when overriding columns during reflection + or when using Table.extend_existing, such that the + Table.tometadata() method would fail when attempting to copy + those indexes as they still referred to the replaced column. The + copy logic now accommodates for this condition. + References: #4279 + * mysql + + [mysql] [bug] Fixed percent-sign doubling in + mysql-connector-python dialect, which does not require + de-doubling of percent signs. Additionally, the mysql- + connector-python driver is inconsistent in how it passes the + column names in cursor.description, so a workaround decoder has + been added to conditionally decode these + randomly-sometimes-bytes values to unicode only if needed. Also + improved test support for mysql-connector-python, however it + should be noted that this driver still has issues with unicode + that continue to be unresolved as of yet. + + [mysql] [bug] Fixed bug in index reflection where on MySQL 8.0 + an index that includes ASC or DESC in an indexed column + specfication would not be correctly reflected, as MySQL 8.0 + introduces support for returning this information in a table + definition string. + References: #4293 + + [mysql] [bug] Fixed bug in MySQLdb dialect and variants such as + PyMySQL where an additional “unicode returns” check upon + connection makes explicit use of the “utf8” character set, which + in MySQL 8.0 emits a warning that utf8mb4 should be used. This + is now replaced with a utf8mb4 equivalent. Documentation is also + updated for the MySQL dialect to specify utf8mb4 in all + examples. Additional changes have been made to the test suite to + use utf8mb3 charsets and databases (there seem to be collation + issues in some edge cases with utf8mb4), and to support + configuration default changes made in MySQL 8.0 such as + explicit_defaults_for_timestamp as well as new errors raised for + invalid MyISAM indexes. + References: #4283 + + [mysql] [bug] The Update construct now accommodates a Join + object as supported by MySQL for UPDATE..FROM. As the construct + already accepted an alias object for a similar purpose, the + feature of UPDATE against a non-table was already implied so + this has been added. + References: #3645 + * sqlite + + [sqlite] [bug] Fixed issue in test suite where SQLite 3.24 added + a new reserved word that conflicted with a usage in + TypeReflectionTest. Pull request courtesy Nils Philippsen. + * mssql + + [mssql] [bug] Fixed bug in MSSQL reflection where when two + same-named tables in different schemas had same-named primary + key constraints, foreign key constraints referring to one of the + tables would have their columns doubled, causing errors. Pull + request courtesy Sean Dunn. + References: #4228 + + [mssql] [bug] [py3k] Fixed issue within the SQL Server dialect + under Python 3 where when running against a non-standard SQL + server database that does not contain either the + “sys.dm_exec_sessions” or “sys.dm_pdw_nodes_exec_sessions” + views, leading to a failure to fetch the isolation level, the + error raise would fail due to an UnboundLocalError. + References: #4273 + * oracle + + [oracle] [feature] Added a new event currently used only by the + cx_Oracle dialect, DialectEvents.setiputsizes(). The event + passes a dictionary of BindParameter objects to DBAPI-specific + type objects that will be passed, after conversion to parameter + names, to the cx_Oracle cursor.setinputsizes() method. This + allows both visibility into the setinputsizes process as well as + the ability to alter the behavior of what datatypes are passed + to this method. + See als Fine grained control over cx_Oracle data binding and performance with setinputsizes + References: #4290 + + [oracle] [bug] [mysql] Fixed INSERT FROM SELECT with CTEs for + the Oracle and MySQL dialects, where the CTE was being placed + above the entire statement as is typical with other databases, + however Oracle and MariaDB 10.2 wants the CTE underneath the + “INSERT” segment. Note that the Oracle and MySQL dialects don’t + yet work when a CTE is applied to a subquery inside of an UPDATE + or DELETE statement, as the CTE is still applied to the top + rather than inside the subquery. + References: #4275 + * misc + + [feature] [ext] Added new attribute Query.lazy_loaded_from which + is populated with an InstanceState that is using this Query in + order to lazy load a relationship. The rationale for this is + that it serves as a hint for the horizontal sharding feature to + use, such that the identity token of the state can be used as + the default identity token to use for the query within + id_chooser(). + References: #4243 + + [bug] [py3k] Replaced the usage of inspect.formatargspec() with + a vendored version copied from the Python standard library, as + inspect.formatargspec() is deprecated and as of Python 3.7.0 is + emitting a warning. + References: #4291 + ------------------------------------------------------------------- Tue Jun 26 06:55:57 UTC 2018 - mimi.vx@gmail.com diff --git a/python-SQLAlchemy.spec b/python-SQLAlchemy.spec index 6bb716a..5a8cd18 100644 --- a/python-SQLAlchemy.spec +++ b/python-SQLAlchemy.spec @@ -20,14 +20,13 @@ %define oldpython python %bcond_without tests Name: python-SQLAlchemy -Version: 1.2.8 +Version: 1.2.9 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: fix_test_reflection.patch BuildRequires: %{python_module devel} # Test requirements: BuildRequires: %{python_module mock} @@ -70,7 +69,6 @@ reference for python-SQLAlchemy. %prep %setup -q -n SQLAlchemy-%{version} -%patch0 -p1 rm -rf doc/build # Remove unnecessary scripts for building documentation sed -i 's/\r$//' examples/dynamic_dict/dynamic_dict.py