diff --git a/python-SQLAlchemy1.changes b/python-SQLAlchemy1.changes index 7ead67c..27a0f78 100644 --- a/python-SQLAlchemy1.changes +++ b/python-SQLAlchemy1.changes @@ -1,3 +1,10 @@ +------------------------------------------------------------------- +Fri Oct 17 03:45:18 UTC 2025 - Steve Kowalik + +- 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á diff --git a/python-SQLAlchemy1.spec b/python-SQLAlchemy1.spec index bbc8792..c847852 100644 --- a/python-SQLAlchemy1.spec +++ b/python-SQLAlchemy1.spec @@ -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 diff --git a/support-python-3.14.patch b/support-python-3.14.patch new file mode 100644 index 0000000..8971b5c --- /dev/null +++ b/support-python-3.14.patch @@ -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()