diff --git a/debian/patches/pexip_disable_test_for_pytest7.diff b/debian/patches/pexip_disable_test_for_pytest7.diff new file mode 100644 index 0000000..e79f118 --- /dev/null +++ b/debian/patches/pexip_disable_test_for_pytest7.diff @@ -0,0 +1,19 @@ +Index: starlette/tests/test_routing.py +=================================================================== +--- starlette.orig/tests/test_routing.py ++++ starlette/tests/test_routing.py +@@ -655,9 +655,11 @@ def test_lifespan_with_on_events(test_cl + shutdown_called = True + + with pytest.deprecated_call(match="The on_startup and on_shutdown parameters are deprecated"): +- with pytest.warns( +- UserWarning, match="The `lifespan` parameter cannot be used with `on_startup` or `on_shutdown`." +- ): ++ # We temporarily do not allow stacking of the pytest contextlib functions as ++ # pytest 7.x doesn't seem to support this ++ #with pytest.warns( ++ # UserWarning, match="The `lifespan` parameter cannot be used with `on_startup` or `on_shutdown`." ++ #): + app = Router(on_startup=[run_startup], on_shutdown=[run_shutdown], lifespan=lifespan) + + assert not lifespan_called diff --git a/debian/patches/pexip_remove_python313_tag.diff b/debian/patches/pexip_remove_python313_tag.diff new file mode 100644 index 0000000..676dbe1 --- /dev/null +++ b/debian/patches/pexip_remove_python313_tag.diff @@ -0,0 +1,12 @@ +Index: starlette/pyproject.toml +=================================================================== +--- starlette.orig/pyproject.toml ++++ starlette/pyproject.toml +@@ -23,7 +23,6 @@ classifiers = [ + "Programming Language :: Python :: 3.10", + "Programming Language :: Python :: 3.11", + "Programming Language :: Python :: 3.12", +- "Programming Language :: Python :: 3.13", + "Topic :: Internet :: WWW/HTTP", + ] + dependencies = [ diff --git a/debian/patches/series b/debian/patches/series new file mode 100644 index 0000000..64634f5 --- /dev/null +++ b/debian/patches/series @@ -0,0 +1,2 @@ +pexip_remove_python313_tag.diff +pexip_disable_test_for_pytest7.diff