Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package python-asgi-lifespan for 
openSUSE:Factory checked in at 2026-04-10 17:53:54
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-asgi-lifespan (Old)
 and      /work/SRC/openSUSE:Factory/.python-asgi-lifespan.new.21863 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-asgi-lifespan"

Fri Apr 10 17:53:54 2026 rev:2 rq:1345750 version:2.1.0

Changes:
--------
--- 
/work/SRC/openSUSE:Factory/python-asgi-lifespan/python-asgi-lifespan.changes    
    2026-01-15 16:48:51.930755951 +0100
+++ 
/work/SRC/openSUSE:Factory/.python-asgi-lifespan.new.21863/python-asgi-lifespan.changes
     2026-04-10 18:03:16.363252585 +0200
@@ -1,0 +2,6 @@
+Fri Apr 10 05:47:21 UTC 2026 - Steve Kowalik <[email protected]>
+
+- Add patch support-new-starlette.patch:
+  * Support starlette 1.0 changes.
+
+-------------------------------------------------------------------

New:
----
  support-new-starlette.patch

----------(New B)----------
  New:
- Add patch support-new-starlette.patch:
  * Support starlette 1.0 changes.
----------(New E)----------

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ python-asgi-lifespan.spec ++++++
--- /var/tmp/diff_new_pack.X8gGGi/_old  2026-04-10 18:03:18.579343993 +0200
+++ /var/tmp/diff_new_pack.X8gGGi/_new  2026-04-10 18:03:18.583344158 +0200
@@ -1,7 +1,7 @@
 #
 # spec file for package python-asgi-lifespan
 #
-# 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
@@ -15,6 +15,7 @@
 # Please submit bugfixes or comments via https://bugs.opensuse.org/
 #
 
+
 %{?sle15_python_module_pythons}
 Name:           python-asgi-lifespan
 Version:        2.1.0
@@ -25,6 +26,8 @@
 Source:         
https://files.pythonhosted.org/packages/source/a/asgi-lifespan/asgi-lifespan-%{version}.tar.gz
 # PATCH-FIX-UPSTREAM as proposed in 
https://github.com/florimondmanca/asgi-lifespan/issues/65 
AsyncClient.__init__() got an unexpected keyword argument 'app'
 Patch0:         httpx028.patch
+# PATCH-FIX-UPSTREAM gh#florimondmanca/asgi-lifespan#72
+Patch1:         support-new-starlette.patch
 BuildRequires:  %{python_module pip}
 BuildRequires:  %{python_module setuptools_scm}
 BuildRequires:  %{python_module setuptools}

++++++ support-new-starlette.patch ++++++
>From 6c2af0035c723255db2c729a65186abea9094acd Mon Sep 17 00:00:00 2001
From: Matheus Polkorny <[email protected]>
Date: Sat, 4 Apr 2026 19:59:22 -0300
Subject: [PATCH] Fix compatibility with Starlette 1.0

---
 tests/test_manager.py | 12 +++++++++++-
 1 file changed, 11 insertions(+), 1 deletion(-)

diff --git a/tests/test_manager.py b/tests/test_manager.py
index d4e4e2e..2d66c4a 100644
--- a/tests/test_manager.py
+++ b/tests/test_manager.py
@@ -59,7 +59,17 @@ async def shutdown() -> None:
 
         on_shutdown.append(shutdown)
 
-    router = Router(on_startup=on_startup, on_shutdown=on_shutdown)
+    @contextlib.asynccontextmanager
+    async def lifespan(app: ASGIApp) -> typing.AsyncGenerator:
+        for handler in on_startup:
+            await handler()
+        try:
+            yield
+        finally:
+            for handler in on_shutdown:
+                await handler()
+
+    router = Router(lifespan=lifespan)
 
     # Set up spying on exchanged ASGI events.
 

Reply via email to