Script 'mail_helper' called by obssrc
Hello community,

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

Package is "python-makefun"

Wed Oct  7 19:32:52 2026 rev:11 rq:1382940 version:1.16.0

Changes:
--------
--- /work/SRC/openSUSE:Factory/python-makefun/python-makefun.changes    
2025-08-11 13:54:00.700867090 +0200
+++ 
/work/SRC/openSUSE:Factory/.python-makefun.new.3698736/python-makefun.changes   
    2026-10-07 19:33:22.814582517 +0200
@@ -1,0 +2,6 @@
+Wed Sep 30 05:16:06 UTC 2026 - Steve Kowalik <[email protected]>
+
+- Add patch no-more-pkg-resources.patch:
+  * Do not use pkg_resources in setup.py.
+
+-------------------------------------------------------------------

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

----------(New B)----------
  New:
- Add patch no-more-pkg-resources.patch:
  * Do not use pkg_resources in setup.py.
----------(New E)----------

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

Other differences:
------------------
++++++ python-makefun.spec ++++++
--- /var/tmp/diff_new_pack.jb1SK1/_old  2026-10-07 19:33:23.828624866 +0200
+++ /var/tmp/diff_new_pack.jb1SK1/_new  2026-10-07 19:33:23.830624949 +0200
@@ -1,7 +1,7 @@
 #
 # spec file for package python-makefun
 #
-# Copyright (c) 2025 SUSE LLC and contributors
+# 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
@@ -26,6 +26,8 @@
 Source:         
https://files.pythonhosted.org/packages/source/m/makefun/makefun-%{version}.tar.gz
 # PATCH-FIX-UPSTREAM Based on gh#smarie/python-makefun#119
 Patch0:         set-pytest-asyncio-mode.patch
+# PATCH-FIX-UPSTREAM gh#smarie/python-makefun#123
+Patch1:         no-more-pkg-resources.patch
 BuildRequires:  %{python_module pip}
 BuildRequires:  %{python_module pytest}
 BuildRequires:  %{python_module setuptools_scm}

++++++ no-more-pkg-resources.patch ++++++
>From 3b6d5177bdc94a993e4a94f8f3c9995bb59c7472 Mon Sep 17 00:00:00 2001
From: Miro <[email protected]>
Date: Fri, 22 May 2026 23:39:44 +0200
Subject: [PATCH] Remove pkg_resources from setup

---
 setup.py | 16 ++++------------
 1 file changed, 4 insertions(+), 12 deletions(-)

diff --git a/setup.py b/setup.py
index a6c1577..3f47e19 100644
--- a/setup.py
+++ b/setup.py
@@ -12,18 +12,10 @@
   https://packaging.python.org/en/latest/distributing.html
   https://github.com/pypa/sampleproject
 """
-from setuptools import setup
-
-
-# (1) check required versions (from 
https://medium.com/@daveshawley/safely-using-setup-cfg-for-metadata-1babbe54c108)
-import pkg_resources
+from importlib.metadata import version
 
-pkg_resources.require("setuptools>=39.2")
-pkg_resources.require("setuptools_scm")
-
-
-# (2) Generate download url using git version
-from setuptools_scm import get_version  # noqa: E402
+from setuptools import setup
+from setuptools_scm import get_version
 
 URL = "https://github.com/smarie/python-makefun";
 DOWNLOAD_URL = URL + "/tarball/" + get_version()
@@ -34,7 +26,7 @@
     "write_to": "src/makefun/_version.py",
 }
 # Use the 'version_file_template' directive if possible to avoid type hints 
and annotations (python <3.8)
-setuptools_scm_version = 
pkg_resources.get_distribution("setuptools_scm").version
+setuptools_scm_version = version("setuptools-scm")
 # for some reason importing packaging.version.Version here fails on python 3.5
 # from packaging.version import Version
 # if Version(setuptools_scm_version) >= Version('6'):

Reply via email to