Script 'mail_helper' called by obssrc
Hello community,
here is the log from the commit of package python-aiosmtpd for openSUSE:Factory
checked in at 2026-01-03 17:27:56
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-aiosmtpd (Old)
and /work/SRC/openSUSE:Factory/.python-aiosmtpd.new.1928 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-aiosmtpd"
Sat Jan 3 17:27:56 2026 rev:19 rq:1325152 version:1.4.6
Changes:
--------
--- /work/SRC/openSUSE:Factory/python-aiosmtpd/python-aiosmtpd.changes
2025-11-10 19:16:53.143203898 +0100
+++
/work/SRC/openSUSE:Factory/.python-aiosmtpd.new.1928/python-aiosmtpd.changes
2026-01-03 17:28:24.654176084 +0100
@@ -1,0 +2,6 @@
+Fri Jan 2 12:16:00 UTC 2026 - Ben Greiner <[email protected]>
+
+- Add aiosmtpd-pr557-pkg_resources.patch gh#aio-libs/aiosmtpd#557
+ for setuptools 80
+
+-------------------------------------------------------------------
New:
----
aiosmtpd-pr557-pkg_resources.patch
----------(New B)----------
New:
- Add aiosmtpd-pr557-pkg_resources.patch gh#aio-libs/aiosmtpd#557
for setuptools 80
----------(New E)----------
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ python-aiosmtpd.spec ++++++
--- /var/tmp/diff_new_pack.Fvt7wM/_old 2026-01-03 17:28:25.310202924 +0100
+++ /var/tmp/diff_new_pack.Fvt7wM/_new 2026-01-03 17:28:25.310202924 +0100
@@ -1,7 +1,7 @@
#
# spec file for package python-aiosmtpd
#
-# Copyright (c) 2025 SUSE LLC and contributors
+# 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
@@ -29,6 +29,8 @@
Patch0: support-python-313.patch
# PATCH-FIX-OPENSUSE Use inspect.iscorountine
Patch1: support-python-314.patch
+# PATCH-FIX-UPSTREAM aiosmtpd-pr557-pkg_resources.patch
gh#aio-libs/aiosmtpd#557
+Patch2: aiosmtpd-pr557-pkg_resources.patch
BuildRequires: %{python_module pip}
BuildRequires: %{python_module setuptools}
BuildRequires: %{python_module wheel}
++++++ aiosmtpd-pr557-pkg_resources.patch ++++++
>From 533ed1304c57bc7179bf88e5f5f81f4bb329b1dd Mon Sep 17 00:00:00 2001
From: John Bucy <[email protected]>
Date: Wed, 18 Jun 2025 11:05:23 -0700
Subject: [PATCH 1/2] migrate config_test from pkg_resources to
importlib_resources
pkg_resources is now throwing a deprecation warning
this is only used to get the cert filenames
https://setuptools.pypa.io/en/latest/pkg_resources.html
https://importlib-resources.readthedocs.io/en/latest/migration.html
---
aiosmtpd/tests/conftest.py | 13 ++++++++++---
requirements-dev.txt | 1 +
2 files changed, 11 insertions(+), 3 deletions(-)
Index: aiosmtpd-1.4.6/aiosmtpd/tests/conftest.py
===================================================================
--- aiosmtpd-1.4.6.orig/aiosmtpd/tests/conftest.py
+++ aiosmtpd-1.4.6/aiosmtpd/tests/conftest.py
@@ -12,7 +12,7 @@ from smtplib import SMTP as SMTPClient
from typing import Any, Callable, Generator, NamedTuple, Optional, Type,
TypeVar
import pytest
-from pkg_resources import resource_filename
+import importlib.resources
from pytest_mock import MockFixture
from aiosmtpd.controller import Controller
@@ -73,8 +73,15 @@ class Global:
# If less than 1.0, might cause intermittent error if test system
# is too busy/overloaded.
AUTOSTOP_DELAY = 1.5
-SERVER_CRT = resource_filename("aiosmtpd.tests.certs", "server.crt")
-SERVER_KEY = resource_filename("aiosmtpd.tests.certs", "server.key")
+# https://importlib-resources.readthedocs.io/en/latest/migration.html
+# this assumes these files are already present in the filesystem so
+# it doesn't need to extract a tempfile for the context manager to clean up
+ref = importlib.resources.files("aiosmtpd.tests.certs") / "server.crt"
+with importlib.resources.as_file(ref) as path:
+ SERVER_CRT = str(path)
+ref = importlib.resources.files("aiosmtpd.tests.certs") / "server.key"
+with importlib.resources.as_file(ref) as path:
+ SERVER_KEY = str(path)
# endregion