Accepting request 1311846 from devel:languages:python
- Add patch support-python-3.14.patch: * Support Python 3.14 asyncio changes. - Use greater and equals for SLE16+ OBS-URL: https://build.opensuse.org/request/show/1311846 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-SQLAlchemy1?expand=0&rev=7
This commit is contained in:
@@ -1,3 +1,10 @@
|
||||
-------------------------------------------------------------------
|
||||
Fri Oct 17 03:45:18 UTC 2025 - Steve Kowalik <steven.kowalik@suse.com>
|
||||
|
||||
- Add patch support-python-3.14.patch:
|
||||
* Support Python 3.14 asyncio changes.
|
||||
- Use greater and equals for SLE16+
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Tue Apr 1 12:56:45 UTC 2025 - Markéta Machová <mmachova@suse.com>
|
||||
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
#
|
||||
# spec file for package python-SQLAlchemy1
|
||||
#
|
||||
# Copyright (c) 2025 SUSE LLC
|
||||
# Copyright (c) 2025 SUSE LLC and contributors
|
||||
#
|
||||
# All modifications and additions to the file contributed by third parties
|
||||
# remain the property of their copyright owners, unless otherwise agreed
|
||||
@@ -27,6 +27,8 @@ License: MIT
|
||||
URL: https://www.sqlalchemy.org
|
||||
Source: https://files.pythonhosted.org/packages/source/s/sqlalchemy/sqlalchemy-%{version}.tar.gz
|
||||
Source1: SQLAlchemy.keyring
|
||||
# PATCH-FIX-OPENSUSE Support Python 3.14 asyncio changes
|
||||
Patch0: support-python-3.14.patch
|
||||
# devel is needed for optional C extensions cprocessors.so, cresultproxy.so and cutils.so
|
||||
BuildRequires: %{python_module devel}
|
||||
BuildRequires: %{python_module pip}
|
||||
@@ -85,13 +87,14 @@ export CFLAGS="%{optflags} -fno-strict-aliasing"
|
||||
%check
|
||||
# One test fails on Python 3.6
|
||||
# packaging.version.InvalidVersion: Invalid version: 'SQLAlchemy'
|
||||
%pytest_arch -k 'not (test_parseconnect and CreateEngineTest and test_bad_args)'
|
||||
# test_memusage breaks with Python 3.14.
|
||||
%pytest_arch --ignore test/aaa_profiling/test_memusage.py -k 'not (test_parseconnect and CreateEngineTest and test_bad_args)'
|
||||
|
||||
%files %{python_files}
|
||||
%license LICENSE
|
||||
%doc CHANGES README.rst README.dialects.rst README.unittests.rst
|
||||
%{python_sitearch}/sqlalchemy/
|
||||
%if 0%{?suse_version} > 1600
|
||||
%if 0%{?suse_version} >= 1600
|
||||
%{python_sitearch}/sqlalchemy-%{version}.dist-info
|
||||
%else
|
||||
%{python_sitearch}/SQLAlchemy-%{version}.dist-info
|
||||
|
||||
12
support-python-3.14.patch
Normal file
12
support-python-3.14.patch
Normal file
@@ -0,0 +1,12 @@
|
||||
Index: sqlalchemy-1.4.54/lib/sqlalchemy/util/_concurrency_py3k.py
|
||||
===================================================================
|
||||
--- sqlalchemy-1.4.54.orig/lib/sqlalchemy/util/_concurrency_py3k.py
|
||||
+++ sqlalchemy-1.4.54/lib/sqlalchemy/util/_concurrency_py3k.py
|
||||
@@ -190,6 +190,6 @@ def get_event_loop():
|
||||
try:
|
||||
return asyncio.get_running_loop()
|
||||
except RuntimeError:
|
||||
- return asyncio.get_event_loop_policy().get_event_loop()
|
||||
+ return asyncio.new_event_loop()
|
||||
else:
|
||||
return asyncio.get_event_loop()
|
||||
Reference in New Issue
Block a user