Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package python-moban for openSUSE:Factory 
checked in at 2026-09-28 10:38:52
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-moban (Old)
 and      /work/SRC/openSUSE:Factory/.python-moban.new.383539 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-moban"

Mon Sep 28 10:38:52 2026 rev:11 rq:1380279 version:0.8.2

Changes:
--------
--- /work/SRC/openSUSE:Factory/python-moban/python-moban.changes        
2025-06-10 09:10:15.871785121 +0200
+++ /work/SRC/openSUSE:Factory/.python-moban.new.383539/python-moban.changes    
2026-09-28 10:40:07.033025873 +0200
@@ -1,0 +2,6 @@
+Thu Sep 24 05:22:43 UTC 2026 - Steve Kowalik <[email protected]>
+
+- Add patch no-more-pkg-resources.patch:
+  * Stop using pkg_resources in setup.py.
+
+-------------------------------------------------------------------

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

----------(New B)----------
  New:
- Add patch no-more-pkg-resources.patch:
  * Stop using pkg_resources in setup.py.
----------(New E)----------

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

Other differences:
------------------
++++++ python-moban.spec ++++++
--- /var/tmp/diff_new_pack.ZD2fdo/_old  2026-09-28 10:40:07.778057115 +0200
+++ /var/tmp/diff_new_pack.ZD2fdo/_new  2026-09-28 10:40:07.780057198 +0200
@@ -1,7 +1,7 @@
 #
 # spec file for package python-moban
 #
-# Copyright (c) 2025 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
@@ -38,6 +38,7 @@
 Patch0:         remove_nose.patch
 Patch1:         stop-using-jinja-extensions.patch
 Patch2:         remove-mock.patch
+Patch3:         no-more-pkg-resources.patch
 BuildRequires:  %{python_module pip}
 BuildRequires:  %{python_module setuptools}
 BuildRequires:  %{python_module wheel}

++++++ no-more-pkg-resources.patch ++++++
Index: moban-0.8.2/setup.py
===================================================================
--- moban-0.8.2.orig/setup.py
+++ moban-0.8.2/setup.py
@@ -12,15 +12,6 @@ import platform
 from shutil import rmtree
 
 from setuptools import Command, setup, find_packages
-from setuptools import __version__ as setuptools_version
-from pkg_resources import parse_version
-
-import pkg_resources
-
-try:
-    import _markerlib.markers
-except ImportError:
-    _markerlib = None
 
 PY2 = sys.version_info[0] == 2
 PY26 = PY2 and sys.version_info[1] < 7
@@ -205,48 +196,6 @@ def filter_out_test_code(file_handle):
                 yield line
 
 
-# _markerlib.default_environment() obtains its data from _VARS
-# and wraps it in another dict, but _markerlib_evaluate writes
-# to the dict while it is iterating the keys, causing an error
-# on Python 3 only.
-# Replace _markerlib.default_environment to return a custom dict
-# that has all the necessary markers, and ignores any writes.
-
-class Python3MarkerDict(dict):
-
-    def __setitem__(self, key, value):
-        pass
-
-    def pop(self, i=-1):
-        return self[i]
-
-
-if _markerlib and sys.version_info[0] == 3:
-    env = _markerlib.markers._VARS
-    for key in list(env.keys()):
-        new_key = key.replace(".", "_")
-        if new_key != key:
-            env[new_key] = env[key]
-
-    _markerlib.markers._VARS = Python3MarkerDict(env)
-
-    def default_environment():
-        return _markerlib.markers._VARS
-
-    _markerlib.default_environment = default_environment
-
-# Avoid the very buggy pkg_resources.parser, which does not consistently
-# recognise the markers needed by this setup.py
-# See https://github.com/pypa/packaging/issues/72 for details
-# Change this to setuptools 20.10.0 to support all markers.
-if pkg_resources:
-    if parse_version(setuptools_version) < parse_version("18.5"):
-        MarkerEvaluation = pkg_resources.MarkerEvaluation
-
-        del pkg_resources.parser
-        pkg_resources.evaluate_marker = MarkerEvaluation._markerlib_evaluate
-        MarkerEvaluation.evaluate_marker = MarkerEvaluation._markerlib_evaluate
-
 if __name__ == "__main__":
     setup(
         test_suite="tests",

Reply via email to