diff --git a/SQLAlchemy-1.3.23.tar.gz b/SQLAlchemy-1.4.41.tar.gz similarity index 42% rename from SQLAlchemy-1.3.23.tar.gz rename to SQLAlchemy-1.4.41.tar.gz index 36507514058ce72d78ebf35df9c5bf0e0efad4fd..e3494bf905542d4e3b6c70dc2e2ba0c46809988c 100644 Binary files a/SQLAlchemy-1.3.23.tar.gz and b/SQLAlchemy-1.4.41.tar.gz differ diff --git a/sqlalchemy.spec b/sqlalchemy.spec index 51333d8fd5503813923e3867791debf12ebbb0dc..131b100234d625d2b37c8a19924e055e7972dbee 100644 --- a/sqlalchemy.spec +++ b/sqlalchemy.spec @@ -1,16 +1,15 @@ -%global __provides_exclude_from ^(%{python2_sitearch}|%{python3_sitearch})/.*\\.so$ +%global __provides_exclude_from ^(%{python3_sitearch})/.*\\.so$ Name: python-sqlalchemy -Version: 1.3.23 +Version: 1.4.41 Release: 1 Summary: SQL toolkit and object relational mapper for Python License: MIT URL: http://www.sqlalchemy.org/ -Source0: https://files.pythonhosted.org/packages/ac/cd/f871773f1c1eb043f639b6751d6342539a45da0836bfede6a6889cea5255/SQLAlchemy-1.3.23.tar.gz +Source0: https://files.pythonhosted.org/packages/67/a0/97da2cb07e013fd6c37fd896a86b374aa726e4161cafd57185e8418d59aa/SQLAlchemy-1.4.41.tar.gz -Patch0: tests_overcome_bpo42967.patch - -BuildRequires: python3-devel python3-setuptools python3-pytest gcc +BuildRequires: python3-devel python3-setuptools python3-pytest gcc python3-greenlet +Requires: python3-greenlet %description SQLAlchemy is an Object Relational Mapper (ORM) that provides a flexible, @@ -64,6 +63,9 @@ PYTHONPATH=. %{__python3} -m pytest test %doc doc examples %changelog +* Wed Nov 20 2024 tzing_t - 1.4.41-1 +- Upgrade package to version 1.4.41 + * Tue Aug 10 2021 OpenStack_SIG - 1.3.23-1 - update to 1.3.23 diff --git a/tests_overcome_bpo42967.patch b/tests_overcome_bpo42967.patch deleted file mode 100644 index c441b658cfda2dff3571f56465aa0facf0d30504..0000000000000000000000000000000000000000 --- a/tests_overcome_bpo42967.patch +++ /dev/null @@ -1,66 +0,0 @@ ---- - lib/sqlalchemy/engine/url.py | 14 ++++++++++---- - test/dialect/mssql/test_engine.py | 3 ++- - 2 files changed, 12 insertions(+), 5 deletions(-) - ---- a/lib/sqlalchemy/engine/url.py -+++ b/lib/sqlalchemy/engine/url.py -@@ -14,6 +14,7 @@ argument; alternatively, the URL is a pu - be used directly and is also accepted directly by ``create_engine()``. - """ - -+import inspect - import re - - from .interfaces import Dialect -@@ -218,7 +219,7 @@ class URL(object): - return translated - - --def make_url(name_or_url): -+def make_url(name_or_url, separator='&'): - """Given a string or unicode instance, produce a new URL instance. - - The given string is parsed according to the RFC 1738 spec. If an -@@ -226,12 +227,12 @@ def make_url(name_or_url): - """ - - if isinstance(name_or_url, util.string_types): -- return _parse_rfc1738_args(name_or_url) -+ return _parse_rfc1738_args(name_or_url, separator) - else: - return name_or_url - - --def _parse_rfc1738_args(name): -+def _parse_rfc1738_args(name, qs_sep): - pattern = re.compile( - r""" - (?P[\w\+]+):// -@@ -261,7 +262,12 @@ def _parse_rfc1738_args(name): - if len(tokens) > 1: - query = {} - -- for key, value in util.parse_qsl(tokens[1]): -+ if 'separator' in inspect.signature(util.parse_qsl).parameters: -+ qs_dict = util.parse_qsl(tokens[1], separator=qs_sep) -+ else: -+ qs_dict = util.parse_qsl(tokens[1]) -+ -+ for key, value in qs_dict: - if util.py2k: - key = key.encode("ascii") - if key in query: ---- a/test/dialect/mssql/test_engine.py -+++ b/test/dialect/mssql/test_engine.py -@@ -164,7 +164,8 @@ class ParseConnectTest(fixtures.TestBase - u = url.make_url( - "mssql+pyodbc://@server_name/db_name?" - "driver=ODBC+Driver+17+for+SQL+Server;" -- "authentication=ActiveDirectoryIntegrated" -+ "authentication=ActiveDirectoryIntegrated", -+ separator=';' - ) - connection = dialect.create_connect_args(u) - eq_(connection[1], {}) -