Script 'mail_helper' called by obssrc
Hello community,
here is the log from the commit of package python-python-lzo for
openSUSE:Factory checked in at 2026-10-01 16:46:29
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-python-lzo (Old)
and /work/SRC/openSUSE:Factory/.python-python-lzo.new.1253 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-python-lzo"
Thu Oct 1 16:46:29 2026 rev:5 rq:1381753 version:1.15
Changes:
--------
--- /work/SRC/openSUSE:Factory/python-python-lzo/python-python-lzo.changes
2024-01-03 12:31:36.565991579 +0100
+++
/work/SRC/openSUSE:Factory/.python-python-lzo.new.1253/python-python-lzo.changes
2026-10-01 16:47:19.567747555 +0200
@@ -1,0 +2,7 @@
+Thu Oct 1 01:50:15 UTC 2026 - Steve Kowalik <[email protected]>
+
+- Add patch support-python-312.patch:
+ * Don't use setuptools modules with Python 3.10+.
+- dos2unix on NEWS.
+
+-------------------------------------------------------------------
New:
----
support-python-312.patch
----------(New B)----------
New:
- Add patch support-python-312.patch:
* Don't use setuptools modules with Python 3.10+.
----------(New E)----------
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ python-python-lzo.spec ++++++
--- /var/tmp/diff_new_pack.ZMHFIu/_old 2026-10-01 16:47:20.588790350 +0200
+++ /var/tmp/diff_new_pack.ZMHFIu/_new 2026-10-01 16:47:20.589790392 +0200
@@ -1,7 +1,7 @@
#
# spec file for package python-python-lzo
#
-# 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
@@ -22,13 +22,16 @@
Release: 0
Summary: Python bindings for the LZO data compression library
License: GPL-2.0-only
-Group: Development/Languages/Python
URL: https://github.com/jd-boyd/python-lzo
Source:
https://files.pythonhosted.org/packages/source/p/python-lzo/python-lzo-%{version}.tar.gz
+# PATCH-FIX-UPSTREAM Based on gh#jd-boyd/python-lzo#78
+Patch0: support-python-312.patch
BuildRequires: %{python_module devel}
BuildRequires: %{python_module pip}
BuildRequires: %{python_module pytest}
+BuildRequires: %{python_module setuptools}
BuildRequires: %{python_module wheel}
+BuildRequires: dos2unix
BuildRequires: fdupes
BuildRequires: lzo-devel
BuildRequires: python-rpm-macros
@@ -42,7 +45,8 @@
ratios at the expense of time.
%prep
-%setup -q -n python-lzo-%{version}
+%autosetup -p1 -n python-lzo-%{version}
+dos2unix NEWS
%build
export CFLAGS="%{optflags}"
++++++ support-python-312.patch ++++++
>From ea7b074f96d2621b66c4919c9945ad2a21f4818f Mon Sep 17 00:00:00 2001
From: AT0myks <[email protected]>
Date: Thu, 21 Dec 2023 23:40:16 +0100
Subject: [PATCH] 3.12 wheels
---
.github/workflows/wheels.yml | 2 +-
tests/test_lzo.py | 8 ++++++--
tests/util.py | 2 +-
3 files changed, 8 insertions(+), 4 deletions(-)
Index: python-lzo-1.15/tests/test_lzo.py
===================================================================
--- python-lzo-1.15.orig/tests/test_lzo.py
+++ python-lzo-1.15/tests/test_lzo.py
@@ -106,8 +106,12 @@ def gen_raw(src, level=1):
print("compressed %6d -> %6d" % (len(src), len(c)))
def test_version():
- import pkg_resources
- pkg_version = pkg_resources.require("python-lzo")[0].version
+ if sys.version_info >= (3, 10):
+ from importlib.metadata import version
+ pkg_version = version("python-lzo")
+ else:
+ import pkg_resources
+ pkg_version = pkg_resources.require("python-lzo")[0].version
mod_version = lzo.__version__.decode('utf-8')
assert pkg_version == mod_version, \
"%r != %r" %(pkg_version, mod_version)
Index: python-lzo-1.15/tests/util.py
===================================================================
--- python-lzo-1.15.orig/tests/util.py
+++ python-lzo-1.15/tests/util.py
@@ -31,7 +31,7 @@
import os, sys
-from distutils.util import get_platform
+from sysconfig import get_platform
#
# prepare sys.path in case we are still in the build directory