Sync from SUSE:SLFO:Main python-xcffib revision 8f565f8e4f600b33cf09745dc0f8acaa

This commit is contained in:
Adrian Schröter 2024-12-13 12:38:57 +01:00
parent 0a3548d5e9
commit 6597a7093a
5 changed files with 14 additions and 29 deletions

View File

@ -1,23 +0,0 @@
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)

View File

@ -1,3 +1,13 @@
-------------------------------------------------------------------
Wed Oct 18 15:09:53 UTC 2023 - Soc Virnyl Estela <contact@uncomfyhalomacro.pl>
- update to 1.5.0:
* build against xcb-proto 1.16.0 (Tycho Andersen)
* add an automatic-github-releaser script
* use cffi's in-line mode
* build against xcb-proto 1.16.0
- remove python-xcffib-ffi-import.patch
-------------------------------------------------------------------
Wed May 10 06:54:58 UTC 2023 - Dirk Müller <dmueller@suse.com>

View File

@ -27,15 +27,13 @@
%{?sle15_python_module_pythons}
Name: python-xcffib%{?psuffix}
Version: 1.3.0
Version: 1.5.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
# fix ffi import [bsc#1209570c4]
Patch1: python-xcffib-ffi-import.patch
BuildRequires: %{python_module cffi >= 1.1.0}
BuildRequires: %{python_module setuptools}
%if %{with test}

BIN
xcffib-1.3.0.tar.gz (Stored with Git LFS)

Binary file not shown.

BIN
xcffib-1.5.0.tar.gz (Stored with Git LFS) Normal file

Binary file not shown.