The package rpms/python-databases.git has added or updated architecture specific content
in its
spec file (ExclusiveArch/ExcludeArch or %ifarch/%ifnarch) in commit(s):
https://src.fedoraproject.org/cgit/rpms/python-databases.git/commit/?id=4....
Change:
-%ifnarch %{ix86} %{arm32}
Thanks.
Full change:
============
commit 4c9d53d8b56e3e8dda77b552dee4d0a674b08764
Author: Benjamin A. Beasley <code(a)musicinmybrain.net>
Date: Wed Nov 30 11:14:29 2022 -0500
Patch for sqlalchemy >=1.42
diff --git a/513.patch b/513.patch
new file mode 100644
index 0000000..d9b6cf8
--- /dev/null
+++ b/513.patch
@@ -0,0 +1,61 @@
+From fe18d9bfb23ff0bb64f3f9545357f708b418849d Mon Sep 17 00:00:00 2001
+From: joniumGit <52005121+joniumGit(a)users.noreply.github.com>
+Date: Tue, 18 Oct 2022 12:39:38 +0300
+Subject: [PATCH] Fixes breaking changes in SQLAlchemy cursor
+
+- fixes #512
+---
+ databases/backends/aiopg.py | 1 +
+ databases/backends/asyncmy.py | 1 +
+ databases/backends/mysql.py | 1 +
+ databases/backends/sqlite.py | 1 +
+ 4 files changed, 4 insertions(+)
+
+diff --git a/databases/backends/aiopg.py b/databases/backends/aiopg.py
+index 60c741a7..1d35749e 100644
+--- a/databases/backends/aiopg.py
++++ b/databases/backends/aiopg.py
+@@ -221,6 +221,7 @@ def _compile(
+ compiled._result_columns,
+ compiled._ordered_columns,
+ compiled._textual_ordered_columns,
++ compiled._ad_hoc_textual,
+ compiled._loose_column_name_matching,
+ )
+ else:
+diff --git a/databases/backends/asyncmy.py b/databases/backends/asyncmy.py
+index e15dfa45..233d2e0e 100644
+--- a/databases/backends/asyncmy.py
++++ b/databases/backends/asyncmy.py
+@@ -211,6 +211,7 @@ def _compile(
+ compiled._result_columns,
+ compiled._ordered_columns,
+ compiled._textual_ordered_columns,
++ compiled._ad_hoc_textual,
+ compiled._loose_column_name_matching,
+ )
+ else:
+diff --git a/databases/backends/mysql.py b/databases/backends/mysql.py
+index 2a0a8425..c7ac9f4e 100644
+--- a/databases/backends/mysql.py
++++ b/databases/backends/mysql.py
+@@ -211,6 +211,7 @@ def _compile(
+ compiled._result_columns,
+ compiled._ordered_columns,
+ compiled._textual_ordered_columns,
++ compiled._ad_hoc_textual,
+ compiled._loose_column_name_matching,
+ )
+ else:
+diff --git a/databases/backends/sqlite.py b/databases/backends/sqlite.py
+index 9626dcf8..69ef5b51 100644
+--- a/databases/backends/sqlite.py
++++ b/databases/backends/sqlite.py
+@@ -185,6 +185,7 @@ def _compile(
+ compiled._result_columns,
+ compiled._ordered_columns,
+ compiled._textual_ordered_columns,
++ compiled._ad_hoc_textual,
+ compiled._loose_column_name_matching,
+ )
+
diff --git a/python-databases.spec b/python-databases.spec
index 34b9b55..c8a776a 100644
--- a/python-databases.spec
+++ b/python-databases.spec
@@ -26,6 +26,10 @@ Source0:
%{forgeurl}/archive/%{version}/databases-%{version}.tar.gz
%global with_asyncmy 1
%endif
+# Fixes breaking changes in SQLAlchemy cursor
+#
https://github.com/encode/databases/pull/513
+Patch: %{forgeurl}/pull/513.patch
+
BuildRequires: python3-devel
# Additional BR’s for testing, from requirements.txt only (therefore not
@@ -228,6 +232,10 @@ Obsoletes: python-databases-doc < 0.5.2-4
%prep
%autosetup -n databases-%{version} -p1
+
+# The patch for sqlalchemy >=1.4.42 is not backwards-compatible.
+sed -r -i 's/(sqlalchemy>=1\.4),/\1\.42,/' setup.py
+
%if !0%{?with_asyncmy}
sed -r -i \
-e 's/^([[:blank:]]*)(.*import AsyncMyBackend.*)$/# \1\2\n\1pass/' \
commit 4957ca6ed3c65eb59d959268b55328a045fc3eef
Author: Benjamin A. Beasley <code(a)musicinmybrain.net>
Date: Wed Nov 30 11:03:28 2022 -0500
Fix MySQL server startup for tests
diff --git a/python-databases.spec b/python-databases.spec
index a43385b..34b9b55 100644
--- a/python-databases.spec
+++ b/python-databases.spec
@@ -293,7 +293,7 @@ MYSQL_PID_FILE="${PWD}/mysql.pid"
mkdir "${MYSQL_DATA_DIR}"
mysql_install_db --datadir="${MYSQL_DATA_DIR}"
--log-error="${MYSQL_LOG}"
-%{_libexecdir}/mysqld --port="${MYSQL_PORT}" --ssl \
+%{_libexecdir}/mysqld --port="${MYSQL_PORT}" --skip-ssl \
--datadir="${MYSQL_DATA_DIR}" --log-error="${MYSQL_LOG}" \
--socket="${MYSQL_SOCKET}" --pid-file="${MYSQL_PID_FILE}" &
:
commit 86ce2e9ca9ef30015f17537cef880b51b8451056
Author: Benjamin A. Beasley <code(a)musicinmybrain.net>
Date: Sat Oct 22 09:04:34 2022 -0400
Add BR on httpx, for starlette.testclient
diff --git a/python-databases.spec b/python-databases.spec
index 2feef29..a43385b 100644
--- a/python-databases.spec
+++ b/python-databases.spec
@@ -43,6 +43,8 @@ BuildRequires: python3dist(pytest)
BuildRequires: python3dist(starlette)
# Used only as a soft dependency of starlette
BuildRequires: python3dist(requests)
+# Used only as a soft dependency of starlette.testclient
+BuildRequires: python3dist(httpx)
%endif
%if %{with mysql_tests}
commit 404029e1f55ca40cab2f0cba85251103d24ab6e0
Author: Benjamin A. Beasley <code(a)musicinmybrain.net>
Date: Fri Oct 21 09:36:00 2022 -0400
Better conditional for 32-bit architectures
diff --git a/python-databases.spec b/python-databases.spec
index 2de0bfb..2feef29 100644
--- a/python-databases.spec
+++ b/python-databases.spec
@@ -22,7 +22,7 @@ Source0:
%{forgeurl}/archive/%{version}/databases-%{version}.tar.gz
# affected platforms. We can still make the binary RPMs noarch, except for the
# affected extra metapackage.
%global debug_package %{nil}
-%ifnarch %{ix86} %{arm32}
+%if 0%{?__isa_bits} != 32
%global with_asyncmy 1
%endif