Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package python-python-xlib for 
openSUSE:Factory checked in at 2026-10-06 19:17:19
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-python-xlib (Old)
 and      /work/SRC/openSUSE:Factory/.python-python-xlib.new.3698736 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-python-xlib"

Tue Oct  6 19:17:19 2026 rev:15 rq:1382652 version:0.33

Changes:
--------
--- /work/SRC/openSUSE:Factory/python-python-xlib/python-python-xlib.changes    
2024-03-05 18:47:03.993210421 +0100
+++ 
/work/SRC/openSUSE:Factory/.python-python-xlib.new.3698736/python-python-xlib.changes
       2026-10-06 19:17:22.955936587 +0200
@@ -1,0 +2,6 @@
+Tue Oct  6 04:29:54 UTC 2026 - Steve Kowalik <[email protected]>
+
+- Add patch no-more-pkg-resources.patch:
+  * Use importlib.metadata in setup.py
+
+-------------------------------------------------------------------

New:
----
  no-more-pkg-resources.patch

----------(New B)----------
  New:
- Add patch no-more-pkg-resources.patch:
  * Use importlib.metadata in setup.py
----------(New E)----------

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

Other differences:
------------------
++++++ python-python-xlib.spec ++++++
--- /var/tmp/diff_new_pack.I70uZB/_old  2026-10-06 19:17:23.874975045 +0200
+++ /var/tmp/diff_new_pack.I70uZB/_new  2026-10-06 19:17:23.875975087 +0200
@@ -1,7 +1,7 @@
 #
 # spec file for package python-python-xlib
 #
-# Copyright (c) 2024 SUSE LLC
+# Copyright (c) 2026 SUSE LLC and contributors
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -35,6 +35,8 @@
 Source:         
https://files.pythonhosted.org/packages/source/p/python-xlib/python-xlib-%{version}.tar.gz
 # PATCH-FEATURE-UPSTREAM remove-mock.patch -- gh#python-xlib/python-xlib#186
 Patch0:         remove-mock.patch
+# PATCH-FIX-UPSTREAM Based on gh#python-xlib/python-xlib#290
+Patch1:         no-more-pkg-resources.patch
 BuildRequires:  %{python_module pip}
 BuildRequires:  %{python_module setuptools_scm}
 BuildRequires:  %{python_module setuptools}
@@ -68,7 +70,7 @@
 %setup -q -n python-xlib-%{version}
 dos2unix CHANGELOG.md README.rst TODO dev-requirements.txt test/*
 # patch only applies to unix endings
-%patch -P 0 -p1
+%autopatch -p1
 
 %build
 %pyproject_wheel

++++++ no-more-pkg-resources.patch ++++++
>From d56cda19811c34395315cbf1a36d0497d008574f Mon Sep 17 00:00:00 2001
From: Evan Maddock <[email protected]>
Date: Mon, 8 Jun 2026 19:01:47 -0400
Subject: [PATCH] build: Migrate from pkg_resources to importlib

Setuptools 82 removed the `pkg_resources` module.
The replacement is `importlib`. This fixes the use
of the removed module.

Signed-off-by: Evan Maddock <[email protected]>
---
 setup.py | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)

Index: python-xlib-0.33/setup.py
===================================================================
--- python-xlib-0.33.orig/setup.py
+++ python-xlib-0.33/setup.py
@@ -1,12 +1,13 @@
 # Distutils script for python-xlib
 
-from pkg_resources import parse_requirements
+from importlib.metadata import version
 from setuptools import (__version__ as setuptools_version, setup)
 
 
 # Check setuptools is recent enough to support `setup.cfg`.
-setuptools_require = next(parse_requirements('setuptools>=30.3.0'))
-assert setuptools_version in setuptools_require, '{} is 
required'.format(setuptools_require)
+installed_version = version('setuptools')
+setuptools_require = '30.3.0'
+assert setuptools_version >= setuptools_require, 'setuptools >= {} is 
required'.format(setuptools_require)
 
 
 setup(

Reply via email to