Script 'mail_helper' called by obssrc
Hello community,
here is the log from the commit of package python-pyramid-chameleon for
openSUSE:Factory checked in at 2026-10-12 22:05:50
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-pyramid-chameleon (Old)
and /work/SRC/openSUSE:Factory/.python-pyramid-chameleon.new.3698736 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-pyramid-chameleon"
Mon Oct 12 22:05:50 2026 rev:7 rq:1384142 version:0.3
Changes:
--------
---
/work/SRC/openSUSE:Factory/python-pyramid-chameleon/python-pyramid-chameleon.changes
2025-06-11 16:24:05.182365259 +0200
+++
/work/SRC/openSUSE:Factory/.python-pyramid-chameleon.new.3698736/python-pyramid-chameleon.changes
2026-10-12 22:06:17.674998988 +0200
@@ -1,0 +2,6 @@
+Mon Oct 12 03:39:57 UTC 2026 - Steve Kowalik <[email protected]>
+
+- Add patch no-more-pkg-resources.patch:
+ * Use importlib.resources to find assets.
+
+-------------------------------------------------------------------
New:
----
no-more-pkg-resources.patch
----------(New B)----------
New:
- Add patch no-more-pkg-resources.patch:
* Use importlib.resources to find assets.
----------(New E)----------
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ python-pyramid-chameleon.spec ++++++
--- /var/tmp/diff_new_pack.zSAuQ9/_old 2026-10-12 22:06:18.503033585 +0200
+++ /var/tmp/diff_new_pack.zSAuQ9/_new 2026-10-12 22:06:18.505033669 +0200
@@ -1,7 +1,7 @@
#
# spec file for package python-pyramid-chameleon
#
-# Copyright (c) 2025 SUSE LLC
+# Copyright (c) 2026 SUSE LLC and contributors
# Copyright (c) 2017 LISA GmbH, Bingen, Germany.
#
# All modifications and additions to the file contributed by third parties
@@ -25,6 +25,8 @@
URL: https://github.com/Pylons/pyramid_chameleon
Source:
https://files.pythonhosted.org/packages/source/p/pyramid_chameleon/pyramid_chameleon-%{version}.tar.gz
Patch0: pyramid2.patch
+# PATCH-FIX-OPENSUSE Use importlib.resources
+Patch1: no-more-pkg-resources.patch
BuildRequires: %{python_module Chameleon}
BuildRequires: %{python_module hupper}
BuildRequires: %{python_module pip}
@@ -47,8 +49,7 @@
<http://pagetemplates.org/>`_ for the Pyramid_ web framework.
%prep
-%setup -q -n pyramid_chameleon-%{version}
-%autopatch -p1
+%autosetup -p1 -n pyramid_chameleon-%{version}
# Remove CC-SA-NC licensed stuff
rm -rf docs/
@@ -67,5 +68,5 @@
%doc CHANGES.txt README.rst
%license LICENSE.txt COPYRIGHT.txt CONTRIBUTORS.txt
%{python_sitelib}/pyramid[-_]chameleon
-%{python_sitelib}/pyramid[-_]chameleon-%{version}*-info
+%{python_sitelib}/pyramid[-_]chameleon-%{version}.dist-info
++++++ no-more-pkg-resources.patch ++++++
Index: pyramid_chameleon-0.3/pyramid_chameleon/renderer.py
===================================================================
--- pyramid_chameleon-0.3.orig/pyramid_chameleon/renderer.py
+++ pyramid_chameleon-0.3/pyramid_chameleon/renderer.py
@@ -1,8 +1,7 @@
import os
import re
import threading
-
-import pkg_resources
+from importlib.resources import files
from zope.interface import implementer
@@ -111,9 +110,9 @@ class ChameleonRendererLookup(object):
# should die
package_name = caller_package(4).__name__
filename = spec_without_macro
- abspath = pkg_resources.resource_filename(package_name,
- filename)
- if not pkg_resources.resource_exists(package_name, filename):
+ resource_path = files(package_name).joinpath(filename)
+ abspath = str(resource_path.absolute())
+ if not resource_path.is_file():
raise ValueError(
'Missing template asset: %s (%s)' % (
spec_without_macro, abspath)