Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package python-Paste for openSUSE:Factory checked in at 2026-01-05 14:51:07 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/python-Paste (Old) and /work/SRC/openSUSE:Factory/.python-Paste.new.1928 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-Paste" Mon Jan 5 14:51:07 2026 rev:44 rq:1325121 version:3.10.1 Changes: -------- --- /work/SRC/openSUSE:Factory/python-Paste/python-Paste.changes 2025-04-11 16:45:24.979786371 +0200 +++ /work/SRC/openSUSE:Factory/.python-Paste.new.1928/python-Paste.changes 2026-01-05 14:51:14.245474422 +0100 @@ -1,0 +2,8 @@ +Fri Jan 2 12:02:51 UTC 2026 - Ben Greiner <[email protected]> + +- Add paste-pr105-partial-pkg_resources-remove.patch + * gh#pasteorg/paste#105 + * Also remove from tests/__init__.py + * Ignore any warning from paste/__init__.py + +------------------------------------------------------------------- New: ---- paste-pr105-partial-pkg_resources-remove.patch ----------(New B)---------- New: - Add paste-pr105-partial-pkg_resources-remove.patch * gh#pasteorg/paste#105 ----------(New E)---------- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python-Paste.spec ++++++ --- /var/tmp/diff_new_pack.BUOnYO/_old 2026-01-05 14:51:20.213722992 +0100 +++ /var/tmp/diff_new_pack.BUOnYO/_new 2026-01-05 14:51:20.249724491 +0100 @@ -1,7 +1,7 @@ # # spec file for package python-Paste # -# 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 @@ -25,6 +25,8 @@ URL: https://github.com/cdent/paste Source: https://files.pythonhosted.org/packages/source/p/paste/paste-%{version}.tar.gz Patch0: test_modified-fixup.patch +# PATCH-FIX-UPSTREAM paste-pr105-partial-pkg_resources-remove.patch gh#pasteorg/paste#105 gh#pasteorg/paste#107 +Patch1: paste-pr105-partial-pkg_resources-remove.patch BuildRequires: %{python_module pip} BuildRequires: %{python_module pytest} BuildRequires: %{python_module setuptools} ++++++ paste-pr105-partial-pkg_resources-remove.patch ++++++ >From 54a63ecf15c3deb934dc36f00bed829b9d071c80 Mon Sep 17 00:00:00 2001 From: Gil Forcada Codinachs <[email protected]> Date: Mon, 3 Mar 2025 18:07:11 +0100 Subject: [PATCH] chore: drop pkg_resources usage --- paste/util/template.py | 7 ++++--- tests/cgiapp_data/form.cgi | 9 --------- 2 files changed, 4 insertions(+), 12 deletions(-) Index: paste-3.10.1/paste/util/template.py =================================================================== --- paste-3.10.1.orig/paste/util/template.py +++ paste-3.10.1/paste/util/template.py @@ -682,12 +682,13 @@ strings. """ def fill_command(args=None): - import sys, optparse, pkg_resources, os + import sys, optparse, os + from importlib.metadata import distribution if args is None: args = sys.argv[1:] - dist = pkg_resources.get_distribution('Paste') + dist = distribution('Paste') parser = optparse.OptionParser( - version=str(dist), + version=dist.version, usage=_fill_command_usage) parser.add_option( '-o', '--output', Index: paste-3.10.1/tests/cgiapp_data/form.cgi =================================================================== --- paste-3.10.1.orig/tests/cgiapp_data/form.cgi +++ paste-3.10.1/tests/cgiapp_data/form.cgi @@ -4,20 +4,11 @@ print('Content-type: text/plain') print('') import sys -import warnings from os.path import dirname base_dir = dirname(dirname(dirname(__file__))) sys.path.insert(0, base_dir) -with warnings.catch_warnings(): - warnings.simplefilter("ignore", category=DeprecationWarning) - try: - import pkg_resources - except ImportError: - # Ignore - pass - from paste.util.field_storage import FieldStorage class FormFieldStorage(FieldStorage): Index: paste-3.10.1/tests/__init__.py =================================================================== --- paste-3.10.1.orig/tests/__init__.py +++ paste-3.10.1/tests/__init__.py @@ -3,5 +3,3 @@ import sys import os sys.path.insert(0, os.path.dirname(os.path.dirname(__file__))) - -import pkg_resources Index: paste-3.10.1/paste/__init__.py =================================================================== --- paste-3.10.1.orig/paste/__init__.py +++ paste-3.10.1/paste/__init__.py @@ -5,7 +5,7 @@ import warnings try: with warnings.catch_warnings(): - warnings.simplefilter("ignore", category=DeprecationWarning) + warnings.simplefilter("ignore") import pkg_resources pkg_resources.declare_namespace(__name__) except (AttributeError, ImportError):
