Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package python-xcffib for openSUSE:Factory 
checked in at 2023-03-26 20:19:05
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-xcffib (Old)
 and      /work/SRC/openSUSE:Factory/.python-xcffib.new.31432 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-xcffib"

Sun Mar 26 20:19:05 2023 rev:12 rq:1074162 version:1.2.0

Changes:
--------
--- /work/SRC/openSUSE:Factory/python-xcffib/python-xcffib.changes      
2022-10-01 17:42:19.945580059 +0200
+++ /work/SRC/openSUSE:Factory/.python-xcffib.new.31432/python-xcffib.changes   
2023-03-26 20:19:06.990932778 +0200
@@ -1,0 +2,12 @@
+Thu Mar 23 09:19:27 UTC 2023 - [email protected]
+
+- version update to 1.2.0
+  * no upstream changelog found
+- do not require six
+- added patches
+  fix 
https://github.com/tych0/xcffib/commit/8a488867d30464913706376ca3a9f4c98ca6c5cf
+  + python-xcffib-six-leftover.patch
+  fix ffi import [bsc#1209570c4]
+  + python-xcffib-ffi-import.patch
+
+-------------------------------------------------------------------

Old:
----
  xcffib-0.12.1.tar.gz

New:
----
  _multibuild
  python-xcffib-ffi-import.patch
  python-xcffib-six-leftover.patch
  xcffib-1.2.0.tar.gz

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

Other differences:
------------------
++++++ python-xcffib.spec ++++++
--- /var/tmp/diff_new_pack.0cf0yR/_old  2023-03-26 20:19:08.146938817 +0200
+++ /var/tmp/diff_new_pack.0cf0yR/_new  2023-03-26 20:19:08.150938838 +0200
@@ -1,7 +1,7 @@
 #
-# spec file for package python-xcffib
+# spec file
 #
-# Copyright (c) 2022 SUSE LLC
+# Copyright (c) 2023 SUSE LLC
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -16,27 +16,39 @@
 #
 
 
-%{?!python_module:%define python_module() python-%{**} python3-%{**}}
-%define skip_python2 1
-Name:           python-xcffib
-Version:        0.12.1
+%global flavor @BUILD_FLAVOR@%{nil}
+%if "%{flavor}" == "test"
+%define psuffix -test
+%bcond_without test
+%else
+%define psuffix %{nil}
+%bcond_with test
+%endif
+
+Name:           python-xcffib%{?psuffix}
+Version:        1.2.0
 Release:        0
 Summary:        A drop in replacement for xpyb, an XCB python binding
 License:        Apache-2.0
 Group:          Development/Languages/Python
 URL:            https://github.com/tych0/xcffib
 Source:         
https://files.pythonhosted.org/packages/source/x/xcffib/xcffib-%{version}.tar.gz
+# 
https://github.com/tych0/xcffib/commit/8a488867d30464913706376ca3a9f4c98ca6c5cf
+Patch0:         python-xcffib-six-leftover.patch
+# fix ffi import [bsc#1209570c4]
+Patch1:         python-xcffib-ffi-import.patch
 BuildRequires:  %{python_module cffi >= 1.1.0}
-BuildRequires:  %{python_module pytest}
 BuildRequires:  %{python_module setuptools}
-BuildRequires:  %{python_module six}
+%if %{with test}
+BuildRequires:  %{python_module pytest}
+BuildRequires:  %{python_module xcffib}
+%endif
 BuildRequires:  fdupes
 BuildRequires:  libxcb-devel
 BuildRequires:  python-rpm-macros
 BuildRequires:  xeyes
 BuildRequires:  xvfb-run
 Requires:       python-cffi >= 1.1.0
-Requires:       python-six
 BuildArch:      noarch
 %python_subpackages
 
@@ -45,22 +57,30 @@
 replacement for xpyb.
 
 %prep
-%setup -q -n xcffib-%{version}
+%autosetup -p1 -n xcffib-%{version}
 
 %build
+%if !%{with test}
 %python_build
+%endif
 
 %install
+%if !%{with test}
 %python_install
 %python_expand %fdupes %{buildroot}%{$python_sitelib}
+%endif
 
 %check
-%python_expand PYTHONPATH=%{buildroot}%{$python_sitelib} xvfb-run 
pytest-%{$python_bin_suffix} -v
+%if %{with test}
+%pytest
+%endif
 
+%if !%{with test}
 %files %{python_files}
 %license LICENSE
 %doc README.md
 %{python_sitelib}/xcffib/
 %{python_sitelib}/xcffib-%{version}-py*.egg-info
+%endif
 
 %changelog

++++++ _multibuild ++++++
<multibuild>
  <package>test</package>
</multibuild>

++++++ python-xcffib-ffi-import.patch ++++++
Index: xcffib-1.2.0/test/test_python_code.py
===================================================================
--- xcffib-1.2.0.orig/test/test_python_code.py
+++ xcffib-1.2.0/test/test_python_code.py
@@ -19,7 +19,6 @@ import xcffib.xinput
 import os
 import struct
 import sys
-from xcffib._ffi import ffi
 from xcffib.xproto import EventMask
 
 from .conftest import XcffibTest
@@ -176,8 +175,8 @@ class TestPythonCode:
         )
 
         # Create cdata from the bytearray and cast it to a generic reply
-        cdata = ffi.new("char x[72]", B_HIT_EVENT)
-        generic_reply = ffi.cast("xcb_generic_reply_t *", cdata)
+        cdata = xcffib.ffi.new("char x[72]", B_HIT_EVENT)
+        generic_reply = xcffib.ffi.cast("xcb_generic_reply_t *", cdata)
 
         # Pass the reply to our hoist_event method
         event = xcffib_test.conn.hoist_event(generic_reply)

++++++ python-xcffib-six-leftover.patch ++++++
diff --git a/test/test_python_code.py b/test/test_python_code.py
index f8568b4..5aa67ff 100644
--- a/test/test_python_code.py
+++ b/test/test_python_code.py
@@ -17,7 +17,6 @@
 import xcffib.xproto
 import xcffib.xinput
 import os
-import six
 import struct
 import sys
 from xcffib._ffi import ffi


++++++ xcffib-0.12.1.tar.gz -> xcffib-1.2.0.tar.gz ++++++
++++ 12319 lines of diff (skipped)

Reply via email to