Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package python-Genshi for openSUSE:Factory checked in at 2026-07-02 20:08:42 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/python-Genshi (Old) and /work/SRC/openSUSE:Factory/.python-Genshi.new.1982 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-Genshi" Thu Jul 2 20:08:42 2026 rev:29 rq:1363031 version:0.7.11 Changes: -------- --- /work/SRC/openSUSE:Factory/python-Genshi/python-Genshi.changes 2026-03-24 18:48:00.832364189 +0100 +++ /work/SRC/openSUSE:Factory/.python-Genshi.new.1982/python-Genshi.changes 2026-07-02 20:11:17.845223227 +0200 @@ -1,0 +2,9 @@ +Wed Jul 1 16:21:35 UTC 2026 - Dirk Müller <[email protected]> + +- update to 0.7.11: + * Replace use of `pkg_resources` with `importlib.resources` (or + `importlib_resources` for Python < 3.9) + * Update CI release workflow to use Ubuntu 22.04. (#96 by Simon + Cross) + +------------------------------------------------------------------- Old: ---- genshi-0.7.10.tar.gz New: ---- genshi-0.7.11.tar.gz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python-Genshi.spec ++++++ --- /var/tmp/diff_new_pack.a0qHyb/_old 2026-07-02 20:11:18.373241497 +0200 +++ /var/tmp/diff_new_pack.a0qHyb/_new 2026-07-02 20:11:18.377241636 +0200 @@ -19,7 +19,7 @@ %define oldpython python %{?sle15_python_module_pythons} Name: python-Genshi -Version: 0.7.10 +Version: 0.7.11 Release: 0 Summary: A toolkit for generation of output for the web License: BSD-3-Clause ++++++ genshi-0.7.10.tar.gz -> genshi-0.7.11.tar.gz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/genshi-0.7.10/ChangeLog new/genshi-0.7.11/ChangeLog --- old/genshi-0.7.10/ChangeLog 2025-11-30 21:27:28.000000000 +0100 +++ new/genshi-0.7.11/ChangeLog 2026-05-17 15:26:37.000000000 +0200 @@ -1,3 +1,12 @@ +Version 0.7.11 +https://github.com/edgewall/genshi/releases/tag/0.7.11 +(May 17 2026, from branches/stable/0.7.x) + +* Replace use of `pkg_resources` with `importlib.resources` (or `importlib_resources` for Python < 3.9) + (#97 by Colin Watson) +* Update CI release workflow to use Ubuntu 22.04. (#96 by Simon Cross) + + Version 0.7.10 https://github.com/edgewall/genshi/releases/tag/0.7.10 (Nov 30 2025, from branches/stable/0.7.x) diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/genshi-0.7.10/Genshi.egg-info/PKG-INFO new/genshi-0.7.11/Genshi.egg-info/PKG-INFO --- old/genshi-0.7.10/Genshi.egg-info/PKG-INFO 2025-11-30 21:27:40.000000000 +0100 +++ new/genshi-0.7.11/Genshi.egg-info/PKG-INFO 2026-05-17 15:26:47.000000000 +0200 @@ -1,6 +1,6 @@ Metadata-Version: 2.1 Name: Genshi -Version: 0.7.10 +Version: 0.7.11 Summary: A toolkit for generation of output for the web Home-page: https://github.com/edgewall/genshi Author: Edgewall Software @@ -22,6 +22,7 @@ Classifier: Topic :: Text Processing :: Markup :: HTML Classifier: Topic :: Text Processing :: Markup :: XML License-File: COPYING +Requires-Dist: importlib-resources; python_version < "3.9" Provides-Extra: i18n Requires-Dist: Babel>=0.8; extra == "i18n" Provides-Extra: plugin diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/genshi-0.7.10/Genshi.egg-info/requires.txt new/genshi-0.7.11/Genshi.egg-info/requires.txt --- old/genshi-0.7.10/Genshi.egg-info/requires.txt 2025-11-30 21:27:40.000000000 +0100 +++ new/genshi-0.7.11/Genshi.egg-info/requires.txt 2026-05-17 15:26:47.000000000 +0200 @@ -1,4 +1,7 @@ +[:python_version < "3.9"] +importlib-resources + [i18n] Babel>=0.8 diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/genshi-0.7.10/PKG-INFO new/genshi-0.7.11/PKG-INFO --- old/genshi-0.7.10/PKG-INFO 2025-11-30 21:27:40.832310200 +0100 +++ new/genshi-0.7.11/PKG-INFO 2026-05-17 15:26:47.979171000 +0200 @@ -1,6 +1,6 @@ Metadata-Version: 2.1 Name: Genshi -Version: 0.7.10 +Version: 0.7.11 Summary: A toolkit for generation of output for the web Home-page: https://github.com/edgewall/genshi Author: Edgewall Software @@ -22,6 +22,7 @@ Classifier: Topic :: Text Processing :: Markup :: HTML Classifier: Topic :: Text Processing :: Markup :: XML License-File: COPYING +Requires-Dist: importlib-resources; python_version < "3.9" Provides-Extra: i18n Requires-Dist: Babel>=0.8; extra == "i18n" Provides-Extra: plugin diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/genshi-0.7.10/genshi/__init__.py new/genshi-0.7.11/genshi/__init__.py --- old/genshi-0.7.10/genshi/__init__.py 2025-11-30 21:27:28.000000000 +0100 +++ new/genshi-0.7.11/genshi/__init__.py 2026-05-17 15:26:37.000000000 +0200 @@ -20,7 +20,7 @@ """ __docformat__ = 'restructuredtext en' -__version__ = '0.7.10' +__version__ = '0.7.11' from genshi.core import * from genshi.input import ParseError, XML, HTML diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/genshi-0.7.10/genshi/template/loader.py new/genshi-0.7.11/genshi/template/loader.py --- old/genshi-0.7.10/genshi/template/loader.py 2025-11-30 21:27:28.000000000 +0100 +++ new/genshi-0.7.11/genshi/template/loader.py 2026-05-17 15:26:37.000000000 +0200 @@ -13,6 +13,10 @@ """Template loading and caching.""" +try: + from importlib.resources import open_binary as resources_open_binary +except ImportError: + from importlib_resources import open_binary as resources_open_binary import os try: import threading @@ -300,10 +304,14 @@ :return: the loader function to load templates from the given package :rtype: ``function`` """ - from pkg_resources import resource_stream def _load_from_package(filename): filepath = os.path.join(path, filename) - return filepath, filename, resource_stream(name, filepath), None + return ( + filepath, + filename, + resources_open_binary(name, filepath), + None, + ) return _load_from_package @staticmethod diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/genshi-0.7.10/genshi/template/plugin.py new/genshi-0.7.11/genshi/template/plugin.py --- old/genshi-0.7.10/genshi/template/plugin.py 2025-11-30 21:27:28.000000000 +0100 +++ new/genshi-0.7.11/genshi/template/plugin.py 2026-05-17 15:26:37.000000000 +0200 @@ -16,6 +16,17 @@ CherryPy/Buffet. """ +try: + from importlib.resources import ( + as_file as resources_as_file, + files as resources_files, + ) +except ImportError: + from importlib_resources import ( + as_file as resources_as_file, + files as resources_files, + ) + from genshi.compat import string_types from genshi.input import ET, HTML, XML from genshi.output import DocType @@ -91,10 +102,11 @@ if self.use_package_naming: divider = templatename.rfind('.') if divider >= 0: - from pkg_resources import resource_filename package = templatename[:divider] basename = templatename[divider + 1:] + self.extension - templatename = resource_filename(package, basename) + resource = resources_files(package) / basename + with resources_as_file(resource) as path: + return self.loader.load(str(path)) return self.loader.load(templatename) diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/genshi-0.7.10/setup.cfg new/genshi-0.7.11/setup.cfg --- old/genshi-0.7.10/setup.cfg 2025-11-30 21:27:40.832310200 +0100 +++ new/genshi-0.7.11/setup.cfg 2026-05-17 15:26:47.979171000 +0200 @@ -1,6 +1,6 @@ [metadata] name = Genshi -version = 0.7.10 +version = 0.7.11 description = A toolkit for generation of output for the web long_description = Genshi is a Python library that provides an integrated set of @@ -41,6 +41,8 @@ genshi.template.tests.templates setup_requires = setuptools +install_requires = + importlib-resources; python_version<"3.9" [options.entry_points] babel.extractors =
