Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package python-Kivy for openSUSE:Factory 
checked in at 2026-09-23 14:34:45
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-Kivy (Old)
 and      /work/SRC/openSUSE:Factory/.python-Kivy.new.383539 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-Kivy"

Wed Sep 23 14:34:45 2026 rev:20 rq:1379781 version:2.3.1

Changes:
--------
--- /work/SRC/openSUSE:Factory/python-Kivy/python-Kivy.changes  2026-02-26 
18:59:23.680407289 +0100
+++ /work/SRC/openSUSE:Factory/.python-Kivy.new.383539/python-Kivy.changes      
2026-09-23 14:36:31.996272735 +0200
@@ -1,0 +2,7 @@
+Wed Sep 23 02:20:17 UTC 2026 - Steve Kowalik <[email protected]>
+
+- Add patch support-Cython-3.1.patch:
+  * Support changes required by Cython 3.
+- Remove upper pin on Cython.
+
+-------------------------------------------------------------------

New:
----
  support-Cython-3.1.patch

----------(New B)----------
  New:
- Add patch support-Cython-3.1.patch:
  * Support changes required by Cython 3.
----------(New E)----------

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ python-Kivy.spec ++++++
--- /var/tmp/diff_new_pack.t2ytkh/_old  2026-09-23 14:36:32.904310282 +0200
+++ /var/tmp/diff_new_pack.t2ytkh/_new  2026-09-23 14:36:32.906310364 +0200
@@ -37,8 +37,10 @@
 Patch0:         pytest_compatibility.patch
 # PATCH-FIX-UPSTREAM https://github.com/kivy/kivy/pull/9157 lang/parser.py: 
Remove Python 3.6 abstract syntax tree workaround
 Patch1:         py314.patch
+# PATCH-FIX-UPSTREAM https://github.com/kivy/kivy/pull/9056
+Patch2:         support-Cython-3.1.patch
 BuildRequires:  %{mypython}-Sphinx
-BuildRequires:  %{python_module Cython with %python-Cython < 3}
+BuildRequires:  %{python_module Cython}
 BuildRequires:  %{python_module Pillow}
 BuildRequires:  %{python_module dbus-python}
 BuildRequires:  %{python_module devel >= 3.7}

++++++ support-Cython-3.1.patch ++++++
>From 81e867736edd5f4586ec121305a145646ed4212b Mon Sep 17 00:00:00 2001
From: Mirko Galimberti <[email protected]>
Date: Tue, 13 May 2025 21:35:00 +0200
Subject: [PATCH] Remove old Python 2 long from Cython files, fixes build with
 Cython 3.1.x

---
 kivy/graphics/context_instructions.pyx | 2 +-
 kivy/graphics/opengl.pyx               | 4 ++--
 kivy/weakproxy.pyx                     | 3 ---
 3 files changed, 3 insertions(+), 6 deletions(-)

diff --git a/kivy/graphics/context_instructions.pyx 
b/kivy/graphics/context_instructions.pyx
index a1c0d332ef..b96db0d848 100644
--- a/kivy/graphics/context_instructions.pyx
+++ b/kivy/graphics/context_instructions.pyx
@@ -85,7 +85,7 @@ cdef tuple rgb_to_hsv(float r, float g, float b):
 
 cdef tuple hsv_to_rgb(float h, float s, float v):
     if s == 0.0: return v, v, v
-    cdef long i = long(h * 6.0)
+    cdef long i = <long>(h * 6.0)
     cdef float f = (h * <float>6.0) - i
     cdef float p = v * (<float>1.0 - s)
     cdef float q = v * (<float>1.0 - s * f)
diff --git a/kivy/graphics/opengl.pyx b/kivy/graphics/opengl.pyx
index bcca708429..f535c62a62 100644
--- a/kivy/graphics/opengl.pyx
+++ b/kivy/graphics/opengl.pyx
@@ -689,7 +689,7 @@ def glDrawElements(GLenum mode, GLsizei count, GLenum type, 
indices):
     cdef void *ptr = NULL
     if isinstance(indices, bytes):
         ptr = <void *>(<char *>(<bytes>indices))
-    elif isinstance(indices, (long, int)):
+    elif isinstance(indices, int):
         ptr = <void *>(<unsigned int>indices)
     else:
         raise TypeError("Argument 'indices' has incorrect type (expected bytes 
or int).")
@@ -1539,7 +1539,7 @@ def glVertexAttribPointer(GLuint index, GLint size, 
GLenum type, GLboolean norma
     cdef void *ptr = NULL
     if isinstance(data, bytes):
         ptr = <void *>(<char *>(<bytes>data))
-    elif isinstance(data, (long, int)):
+    elif isinstance(data, int):
         ptr = <void *>(<unsigned int>data)
     else:
         raise TypeError("Argument 'data' has incorrect type (expected bytes or 
int).")
diff --git a/kivy/weakproxy.pyx b/kivy/weakproxy.pyx
index 1ef345c122..aa3a5068cc 100644
--- a/kivy/weakproxy.pyx
+++ b/kivy/weakproxy.pyx
@@ -249,9 +249,6 @@ cdef class WeakProxy(object):
     def __int__(self):
         return int(self.__ref__())
 
-    def __long__(self):
-        return long(self.__ref__())
-
     def __float__(self):
         return float(self.__ref__())
 

Reply via email to