Script 'mail_helper' called by obssrc
Hello community,
here is the log from the commit of package python-plaster-pastedeploy for
openSUSE:Factory checked in at 2026-10-06 19:17:13
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-plaster-pastedeploy (Old)
and /work/SRC/openSUSE:Factory/.python-plaster-pastedeploy.new.3698736
(New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-plaster-pastedeploy"
Tue Oct 6 19:17:13 2026 rev:6 rq:1382641 version:1.0.1
Changes:
--------
---
/work/SRC/openSUSE:Factory/python-plaster-pastedeploy/python-plaster-pastedeploy.changes
2025-06-03 17:56:59.274185267 +0200
+++
/work/SRC/openSUSE:Factory/.python-plaster-pastedeploy.new.3698736/python-plaster-pastedeploy.changes
2026-10-06 19:17:15.409620804 +0200
@@ -1,0 +2,6 @@
+Tue Oct 6 00:48:17 UTC 2026 - Steve Kowalik <[email protected]>
+
+- Add patch no-more-pkg-resources.patch:
+ * Use importlib directly to import the fake package.
+
+-------------------------------------------------------------------
New:
----
no-more-pkg-resources.patch
----------(New B)----------
New:
- Add patch no-more-pkg-resources.patch:
* Use importlib directly to import the fake package.
----------(New E)----------
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ python-plaster-pastedeploy.spec ++++++
--- /var/tmp/diff_new_pack.SFIdVD/_old 2026-10-06 19:17:16.296657923 +0200
+++ /var/tmp/diff_new_pack.SFIdVD/_new 2026-10-06 19:17:16.297657964 +0200
@@ -1,7 +1,7 @@
#
# spec file for package python-plaster-pastedeploy
#
-# 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
@@ -22,9 +22,10 @@
Release: 0
Summary: A loader implementing the PasteDeploy syntax to be used by
plaster
License: MIT
-Group: Development/Languages/Python
URL: https://github.com/Pylons/plaster_pastedeploy
Source0:
https://files.pythonhosted.org/packages/source/p/plaster_pastedeploy/plaster_pastedeploy-%{version}.tar.gz
+# PATCH-FIX-UPSTREAM gh#Pylons/plaster_pastedeploy#24
+Patch0: no-more-pkg-resources.patch
BuildRequires: %{python_module PasteDeploy >= 2.0}
BuildRequires: %{python_module pip}
BuildRequires: %{python_module plaster >= 0.5}
@@ -46,7 +47,7 @@
plaster.protocols.IWSGIProtocol interface.
%prep
-%setup -q -n plaster_pastedeploy-%{version}
+%autosetup -p1 -n plaster_pastedeploy-%{version}
rm -rf src/plaster_pastedeploy.egg-info
%build
@@ -63,5 +64,5 @@
%doc CHANGES.rst
%license LICENSE.txt
%{python_sitelib}/plaster[-_]pastedeploy
-%{python_sitelib}/plaster[-_]pastedeploy-%{version}*-info
+%{python_sitelib}/plaster[-_]pastedeploy-%{version}.dist-info
++++++ no-more-pkg-resources.patch ++++++
>From b19eebf314fd322ba887a05b046656e146b3d328 Mon Sep 17 00:00:00 2001
From: "Karl O. Pinc" <[email protected]>
Date: Sat, 13 Apr 2024 14:27:00 -0500
Subject: [PATCH] Switch from pkg_resources to importlib
pkg_resources is depreciated. This gets rid of depcrecation warnings.
---
tests/conftest.py | 12 +++++++-----
1 file changed, 7 insertions(+), 5 deletions(-)
diff --git a/tests/conftest.py b/tests/conftest.py
index 6981e1f..ca7ebaf 100644
--- a/tests/conftest.py
+++ b/tests/conftest.py
@@ -1,16 +1,18 @@
+import importlib
import os.path
import sys
-import pkg_resources
import pytest
@pytest.fixture(scope="session")
def fake_packages():
- # we'd like to keep this scope more focused but it's proven really
- # difficult to fully monkeypatch pkg_resources and so for now we just
- # install the packages for the duration of the test suite
+ # We'd like to keep this scope more focused. It proved really
+ # difficult to fully monkeypatch pkg_resources and so we just
+ # installed the packages for the duration of the test suite.
+ # The scope was left as-is after switching from pkg_resources to
+ # importlib.
test_dir = os.path.dirname(__file__)
info_dir = os.path.join(test_dir, "fake_packages", "FakeApp")
sys.path.insert(0, info_dir)
- pkg_resources.working_set.add_entry(info_dir)
+ importlib.import_module("fakeapp")