Script 'mail_helper' called by obssrc
Hello community,
here is the log from the commit of package python-jinja2-fsloader for
openSUSE:Factory checked in at 2026-09-28 10:39:01
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-jinja2-fsloader (Old)
and /work/SRC/openSUSE:Factory/.python-jinja2-fsloader.new.383539 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-jinja2-fsloader"
Mon Sep 28 10:39:01 2026 rev:8 rq:1380295 version:0.3.0
Changes:
--------
---
/work/SRC/openSUSE:Factory/python-jinja2-fsloader/python-jinja2-fsloader.changes
2025-05-30 17:26:07.889252726 +0200
+++
/work/SRC/openSUSE:Factory/.python-jinja2-fsloader.new.383539/python-jinja2-fsloader.changes
2026-09-28 10:40:18.148491976 +0200
@@ -1,0 +2,6 @@
+Fri Sep 25 04:18:44 UTC 2026 - Steve Kowalik <[email protected]>
+
+- Add patch no-more-pkg-resources.patch:
+ * Do not use pkg_resources to discover the version.
+
+-------------------------------------------------------------------
New:
----
no-more-pkg-resources.patch
----------(New B)----------
New:
- Add patch no-more-pkg-resources.patch:
* Do not use pkg_resources to discover the version.
----------(New E)----------
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ python-jinja2-fsloader.spec ++++++
--- /var/tmp/diff_new_pack.P7b5lb/_old 2026-09-28 10:40:18.719515921 +0200
+++ /var/tmp/diff_new_pack.P7b5lb/_new 2026-09-28 10:40:18.720515963 +0200
@@ -1,7 +1,7 @@
#
# spec file for package python-jinja2-fsloader
#
-# 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
@@ -21,9 +21,10 @@
Release: 0
Summary: Jinja2 template loader using PyFilesystem2
License: MIT
-Group: Development/Languages/Python
URL: https://github.com/althonos/jinja2-fsloader/
Source:
https://files.pythonhosted.org/packages/source/j/jinja2-fsloader/jinja2-fsloader-%{version}.zip
+# PATCH-FIX-OPENSUSE Do not use pkg_resources
+Patch0: no-more-pkg-resources.patch
BuildRequires: %{python_module pip}
BuildRequires: %{python_module setuptools >= 39.2}
BuildRequires: %{python_module wheel}
@@ -47,7 +48,7 @@
WebDAV servers, ZIP and Tar archives and others.
%prep
-%setup -q -n jinja2-fsloader-%{version}
+%autosetup -p1 -n jinja2-fsloader-%{version}
sed -i 's/,<[0-9.]*$//' setup.cfg
%build
@@ -66,5 +67,5 @@
%license COPYING
%doc README.rst
%{python_sitelib}/jinja2[-_]fsloader
-%{python_sitelib}/jinja2[-_]fsloader-%{version}*-info
+%{python_sitelib}/jinja2[-_]fsloader-%{version}.dist-info
++++++ no-more-pkg-resources.patch ++++++
Index: jinja2-fsloader-0.3.0/jinja2_fsloader/__init__.py
===================================================================
--- jinja2-fsloader-0.3.0.orig/jinja2_fsloader/__init__.py
+++ jinja2-fsloader-0.3.0/jinja2_fsloader/__init__.py
@@ -1,18 +1,18 @@
# coding: utf-8
"""jinja2_fsloader - A Jinja2 template loader using PyFilesystem2.
"""
+from importlib.resources import files
import sys
import fs
import fs.path
import fs.errors
import jinja2
-import pkg_resources
__author__ = "Martin Larralde <[email protected]>"
__license__ = "MIT"
-__version__ = pkg_resources.resource_string(__name__,
"_version.txt").decode('utf-8').strip()
+__version__ =
files(__name__).joinpath("_version.txt").read_text(encoding="utf-8").strip()
class FSLoader(jinja2.BaseLoader):