Script 'mail_helper' called by obssrc
Hello community,
here is the log from the commit of package python-libsass for openSUSE:Factory
checked in at 2026-09-28 10:48:17
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-libsass (Old)
and /work/SRC/openSUSE:Factory/.python-libsass.new.383539 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-libsass"
Mon Sep 28 10:48:17 2026 rev:14 rq:1381042 version:0.23.0
Changes:
--------
--- /work/SRC/openSUSE:Factory/python-libsass/python-libsass.changes
2025-06-17 18:20:53.887002446 +0200
+++
/work/SRC/openSUSE:Factory/.python-libsass.new.383539/python-libsass.changes
2026-09-28 10:49:23.676348163 +0200
@@ -1,0 +2,6 @@
+Mon Sep 28 05:37:27 UTC 2026 - Steve Kowalik <[email protected]>
+
+- Add patch no-more-pkg-resources.patch:
+ * Use importlib.resources rather than pkg_resources.
+
+-------------------------------------------------------------------
New:
----
no-more-pkg-resources.patch
----------(New B)----------
New:
- Add patch no-more-pkg-resources.patch:
* Use importlib.resources rather than pkg_resources.
----------(New E)----------
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ python-libsass.spec ++++++
--- /var/tmp/diff_new_pack.9MBnR9/_old 2026-09-28 10:49:24.262372717 +0200
+++ /var/tmp/diff_new_pack.9MBnR9/_new 2026-09-28 10:49:24.264372801 +0200
@@ -1,7 +1,7 @@
#
# spec file for package python-libsass
#
-# 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
@@ -24,9 +24,10 @@
Release: 0
Summary: Python binding for libsass
License: MIT
-Group: Development/Languages/Python
URL: https://github.com/sass/libsass-python
Source:
https://github.com/sass/libsass-python/archive/%{version}.tar.gz
+# PATCH-FIX-OPENSUSE Use importlib rather than pkg_resources
+Patch0: no-more-pkg-resources.patch
BuildRequires: %{python_module Cython}
BuildRequires: %{python_module devel}
BuildRequires: %{python_module pip}
@@ -50,7 +51,7 @@
with no Ruby stack at all!
%prep
-%setup -q -n libsass-python-%{version}
+%autosetup -p1 -n libsass-python-%{version}
%build
sed -i -e '/^#!\//, 1d' *.py
@@ -81,5 +82,5 @@
%{python_sitearch}/_sass*.so
%{python_sitearch}/sassutils
%pycache_only %{python_sitearch}/__pycache__/*sass*.pyc
-%{python_sitearch}/libsass-%{version}*-info
+%{python_sitearch}/libsass-%{version}.dist-info
++++++ no-more-pkg-resources.patch ++++++
Index: libsass-python-0.23.0/sassutils/wsgi.py
===================================================================
--- libsass-python-0.23.0.orig/sassutils/wsgi.py
+++ libsass-python-0.23.0/sassutils/wsgi.py
@@ -3,11 +3,10 @@
"""
import collections.abc
+import importlib.resources
import logging
import os.path
-from pkg_resources import resource_filename
-
from .builder import Manifest
from sass import CompileError
@@ -107,7 +106,7 @@ class SassMiddleware:
for package_name in self.manifests:
if package_name in self.package_dir:
continue
- path = resource_filename(package_name, '')
+ path = str(importlib.resources.files(package_name))
self.package_dir[package_name] = path
self.paths = []
for package_name, manifest in self.manifests.items():