forked from pool/python-SQLAlchemy
Accepting request 842694 from system:homeautomation:home-assistant:unstable
- added gpg pub key for source validation
- Update to version 1.3.20
pytest_depr_from_parent.patch is obsolete again
orm
* An ArgumentError with more detail is now raised if the target
parameter for Query.join() is set to an unmapped object. Prior
to this change a less detailed AttributeError was raised. Pull
request courtesy Ramon Williams. References: #4428
* Fixed issue where using a loader option against a string attribute
name that is not actually a mapped attribute, such as a plain
Python descriptor, would raise an uninformative AttributeError;
a descriptive error is now raised. References: #4589
engine
* Fixed issue where a non-string object sent to SQLAlchemyError or a
subclass, as occurs with some third party dialects, would fail to
stringify correctly. Pull request courtesy Andrzej Bartosiński.
References: #5599
* Repaired a function-level import that was not using SQLAlchemy’s
standard late-import system within the sqlalchemy.exc module.
References: #5632
sql
* Fixed issue where the pickle.dumps() operation against Over construct
would produce a recursion overflow. References: #5644
* Fixed bug where an error was not raised in the case where a column()
were added to more than one table() at a time. This raised correctly
for the Column and Table objects. An ArgumentError is now raised when
this occurs. References: #5618
postgresql
* The psycopg2 dialect now support PostgreSQL multiple host connections,
by passing host/port combinations to the query string.
OBS-URL: https://build.opensuse.org/request/show/842694
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-SQLAlchemy?expand=0&rev=176
This commit is contained in:
committed by
Git OBS Bridge
parent
0d6fd6dc04
commit
ed31d819bb
@@ -1,3 +0,0 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:3bba2e9fbedb0511769780fe1d63007081008c5c2d7d715e91858c94dbaa260e
|
||||
size 6197860
|
||||
3
SQLAlchemy-1.3.20.tar.gz
Normal file
3
SQLAlchemy-1.3.20.tar.gz
Normal file
@@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:d2f25c7f410338d31666d7ddedfa67570900e248b940d186b48461bd4e5569a1
|
||||
size 6264898
|
||||
37
SQLAlchemy.keyring
Normal file
37
SQLAlchemy.keyring
Normal file
@@ -0,0 +1,37 @@
|
||||
-----BEGI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6LYONNIbiPmwIO4ati5P5pexK7RBwD6A7flucjO8RwObCC0aHUqrbyi
|
||||
KHuAEYqBQfnTxT7C1R/6GKZZ6uqGOvm3tMkZf3UKtaKlaLtzC7960P8A8IP7hFtv
|
||||
5qf+DkoAGJ5NzOVT
|
||||
=lWzK
|
||||
-----END PGP PUBLIC KEY BLOCK-----
|
||||
@@ -1,55 +0,0 @@
|
||||
From 40cdb9c0bf4db2af293f9d8669257294d8fc69f9 Mon Sep 17 00:00:00 2001
|
||||
From: Mike Bayer <mike_mp@zzzcomputing.com>
|
||||
Date: Sat, 26 Sep 2020 21:01:01 -0400
|
||||
Subject: [PATCH] Support pytest 6.x
|
||||
|
||||
pytest has removed support for pytest.Class().collect()
|
||||
and we need to use from_parent.
|
||||
|
||||
Change-Id: Ia5fed9b22e76c99f71489283acee207f996f52a4
|
||||
(cherry picked from commit ffafbd4b9657a4ee8bec57c0861414144f37bdc5)
|
||||
---
|
||||
lib/sqlalchemy/testing/plugin/pytestplugin.py | 21 +++++++------------
|
||||
1 file changed, 7 insertions(+), 14 deletions(-)
|
||||
|
||||
diff --git a/lib/sqlalchemy/testing/plugin/pytestplugin.py b/lib/sqlalchemy/testing/plugin/pytestplugin.py
|
||||
index 079066d829..ad4ebb6565 100644
|
||||
--- a/lib/sqlalchemy/testing/plugin/pytestplugin.py
|
||||
+++ b/lib/sqlalchemy/testing/plugin/pytestplugin.py
|
||||
@@ -162,13 +162,10 @@ def pytest_collection_modifyitems(session, config, items):
|
||||
if sub_cls is not test_class.cls:
|
||||
per_cls_dict = rebuilt_items[test_class.cls]
|
||||
|
||||
- # in pytest 5.4.0
|
||||
- # for inst in pytest.Class.from_parent(
|
||||
- # test_class.parent.parent, name=sub_cls.__name__
|
||||
- # ).collect():
|
||||
-
|
||||
- for inst in pytest.Class(
|
||||
- sub_cls.__name__, parent=test_class.parent.parent
|
||||
+ # support pytest 5.4.0 and above pytest.Class.from_parent
|
||||
+ ctor = getattr(pytest.Class, "from_parent", pytest.Class)
|
||||
+ for inst in ctor(
|
||||
+ name=sub_cls.__name__, parent=test_class.parent.parent
|
||||
).collect():
|
||||
for t in inst.collect():
|
||||
per_cls_dict[t.name].append(t)
|
||||
@@ -196,15 +193,11 @@ def pytest_pycollect_makeitem(collector, name, obj):
|
||||
|
||||
if inspect.isclass(obj) and plugin_base.want_class(name, obj):
|
||||
|
||||
- # in pytest 5.4.0
|
||||
- # return [
|
||||
- # pytest.Class.from_parent(collector,
|
||||
- # name=parametrize_cls.__name__)
|
||||
- # for parametrize_cls in _parametrize_cls(collector.module, obj)
|
||||
- # ]
|
||||
+ # support pytest 5.4.0 and above pytest.Class.from_parent
|
||||
+ ctor = getattr(pytest.Class, "from_parent", pytest.Class)
|
||||
|
||||
return [
|
||||
- pytest.Class(parametrize_cls.__name__, parent=collector)
|
||||
+ ctor(name=parametrize_cls.__name__, parent=collector)
|
||||
for parametrize_cls in _parametrize_cls(collector.module, obj)
|
||||
]
|
||||
elif (
|
||||
@@ -1,3 +1,81 @@
|
||||
-------------------------------------------------------------------
|
||||
Mon Oct 19 07:04:45 UTC 2020 - Adrian Schröter <adrian@suse.de>
|
||||
|
||||
- added gpg pub key for source validation
|
||||
- Update to version 1.3.20
|
||||
pytest_depr_from_parent.patch is obsolete again
|
||||
orm
|
||||
* An ArgumentError with more detail is now raised if the target
|
||||
parameter for Query.join() is set to an unmapped object. Prior
|
||||
to this change a less detailed AttributeError was raised. Pull
|
||||
request courtesy Ramon Williams. References: #4428
|
||||
|
||||
* Fixed issue where using a loader option against a string attribute
|
||||
name that is not actually a mapped attribute, such as a plain
|
||||
Python descriptor, would raise an uninformative AttributeError;
|
||||
a descriptive error is now raised. References: #4589
|
||||
|
||||
engine
|
||||
* Fixed issue where a non-string object sent to SQLAlchemyError or a
|
||||
subclass, as occurs with some third party dialects, would fail to
|
||||
stringify correctly. Pull request courtesy Andrzej Bartosiński.
|
||||
References: #5599
|
||||
|
||||
* Repaired a function-level import that was not using SQLAlchemy’s
|
||||
standard late-import system within the sqlalchemy.exc module.
|
||||
References: #5632
|
||||
|
||||
sql
|
||||
* Fixed issue where the pickle.dumps() operation against Over construct
|
||||
would produce a recursion overflow. References: #5644
|
||||
|
||||
* Fixed bug where an error was not raised in the case where a column()
|
||||
were added to more than one table() at a time. This raised correctly
|
||||
for the Column and Table objects. An ArgumentError is now raised when
|
||||
this occurs. References: #5618
|
||||
|
||||
postgresql
|
||||
* The psycopg2 dialect now support PostgreSQL multiple host connections,
|
||||
by passing host/port combinations to the query string.
|
||||
References: #4392
|
||||
|
||||
* Adjusted the Comparator.any() and Comparator.all() methods to implement
|
||||
a straight “NOT” operation for negation, rather than negating the
|
||||
comparison operator. References: #5518
|
||||
|
||||
* Fixed issue where the ENUM type would not consult the schema translate
|
||||
map when emitting a CREATE TYPE or DROP TYPE during the test to see if
|
||||
the type exists or not. Additionally, repaired an issue where if the
|
||||
same enum were encountered multiple times in a single DDL sequence,
|
||||
the “check” query would run repeatedly rather than relying upon a cached value.
|
||||
References: #5520
|
||||
|
||||
mysql
|
||||
* Adjusted the MySQL dialect to correctly parenthesize functional index
|
||||
expressions as accepted by MySQL 8. Pull request courtesy Ramon Williams.
|
||||
References: #5462
|
||||
|
||||
* The “skip_locked” keyword used with with_for_update() will emit a warning
|
||||
when used on MariaDB backends, and will then be ignored. This is a
|
||||
deprecated behavior that will raise in SQLAlchemy 1.4, as an application
|
||||
that requests “skip locked” is looking for a non-blocking operation which
|
||||
is not available on those backends.
|
||||
References: #5568
|
||||
|
||||
* Fixed bug where an UPDATE statement against a JOIN using MySQL multi-table
|
||||
format would fail to include the table prefix for the target table if the
|
||||
statement had no WHERE clause, as only the WHERE clause were scanned to
|
||||
detect a “multi table update” at that particular point. The target is now
|
||||
also scanned if it’s a JOIN to get the leftmost table as the primary table
|
||||
and the additional entries as additional FROM entries.
|
||||
References: #5617
|
||||
|
||||
* Add new MySQL reserved words: cube, lateral added in MySQL 8.0.1 and 8.0.14,
|
||||
respectively; this indicates that these terms will be quoted if used as table
|
||||
or column identifier names.
|
||||
References: #5539
|
||||
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Fri Oct 9 13:02:39 UTC 2020 - Matej Cepl <mcepl@suse.com>
|
||||
|
||||
|
||||
@@ -19,15 +19,13 @@
|
||||
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
||||
%define oldpython python
|
||||
Name: python-SQLAlchemy
|
||||
Version: 1.3.19
|
||||
Version: 1.3.20
|
||||
Release: 0
|
||||
Summary: Database Abstraction Library
|
||||
License: MIT
|
||||
URL: https://www.sqlalchemy.org
|
||||
Source: https://files.pythonhosted.org/packages/source/S/SQLAlchemy/SQLAlchemy-%{version}.tar.gz
|
||||
# PATCH-FIX-UPSTREAM pytest_depr_from_parent.patch gh#sqlalchemy/sqlalchemy#5635 mcepl@suse.com
|
||||
# pytest >= 3.4.0 requires Class.from_parent call
|
||||
Patch0: pytest_depr_from_parent.patch
|
||||
Source1: SQLAlchemy.keyring
|
||||
# devel is needed for optional C extensions cprocessors.so, cresultproxy.so and cutils.so
|
||||
BuildRequires: %{python_module devel}
|
||||
BuildRequires: %{python_module setuptools}
|
||||
@@ -68,7 +66,6 @@ reference for python-SQLAlchemy.
|
||||
|
||||
%prep
|
||||
%setup -q -n SQLAlchemy-%{version}
|
||||
%autopatch -p1
|
||||
|
||||
rm -rf doc/build # Remove unnecessary scripts for building documentation
|
||||
sed -i 's/\r$//' examples/dynamic_dict/dynamic_dict.py
|
||||
|
||||
Reference in New Issue
Block a user