Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package python-pyuv for openSUSE:Factory checked in at 2023-06-20 16:49:37 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/python-pyuv (Old) and /work/SRC/openSUSE:Factory/.python-pyuv.new.15902 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-pyuv" Tue Jun 20 16:49:37 2023 rev:6 rq:1093956 version:1.4.0 Changes: -------- --- /work/SRC/openSUSE:Factory/python-pyuv/python-pyuv.changes 2023-02-21 15:36:41.440510659 +0100 +++ /work/SRC/openSUSE:Factory/.python-pyuv.new.15902/python-pyuv.changes 2023-06-20 16:49:38.431823756 +0200 @@ -1,0 +2,12 @@ +Mon Jun 19 17:01:07 UTC 2023 - Scott Bradnick <[email protected]> + +- Adding fix_building_for_Python311.patch vs. using non-default + master tarball. + +------------------------------------------------------------------- +Sat Jun 17 02:23:40 UTC 2023 - Scott Bradnick <[email protected]> + +- Undoing 'Skip build for python 3.11 ...' + * Including patch from 2a3d42d on master for python3.11 + +------------------------------------------------------------------- New: ---- fix_building_for_Python311.patch ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python-pyuv.spec ++++++ --- /var/tmp/diff_new_pack.wBWCzv/_old 2023-06-20 16:49:39.211828443 +0200 +++ /var/tmp/diff_new_pack.wBWCzv/_new 2023-06-20 16:49:39.215828468 +0200 @@ -16,7 +16,6 @@ # -%define skip_python311 1 Name: python-pyuv Version: 1.4.0 Release: 0 @@ -28,6 +27,7 @@ # Both patches in https://github.com/saghul/pyuv/pull/262 Patch0: tests_async_keyword.patch Patch1: tests_py3.patch +Patch2: fix_building_for_Python311.patch BuildRequires: %{python_module devel} BuildRequires: %{python_module pytest} BuildRequires: %{python_module setuptools} @@ -44,6 +44,7 @@ %setup -q -n pyuv-%{version} %patch0 -p1 %patch1 -p1 +%patch2 -p1 # Force system libuv rm -r deps/libuv rmdir deps ++++++ fix_building_for_Python311.patch ++++++ >From 2a3d42d44c6315ebd73899a35118380d2d5979b5 Mon Sep 17 00:00:00 2001 From: Tommaso Caiazzi <[email protected]> Date: Mon, 15 May 2023 18:48:01 +0200 Subject: [PATCH] build: fix building for Python3.11 Co-authored-by: Mariano Scazzariello <[email protected]> --- src/common.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/common.c b/src/common.c index ecac76ea..e6bf2935 100644 --- a/src/common.c +++ b/src/common.c @@ -39,7 +39,11 @@ pyuv_PyUnicode_EncodeFSDefault(PyObject *unicode) return PyUnicode_AsEncodedString(unicode, Py_FileSystemDefaultEncoding, "surrogateescape"); else #endif + #if PY_MAJOR_VERSION >= 3 && PY_MINOR_VERSION >= 11 + return PyUnicode_AsUTF8String(unicode); + #else return PyUnicode_EncodeUTF8(PyUnicode_AS_UNICODE(unicode), PyUnicode_GET_SIZE(unicode), "surrogateescape"); + #endif }
