From 7b6d125493ccda5bf37f394d50fbd141202294d4 Mon Sep 17 00:00:00 2001 From: Olivier Gayot Date: Mon, 18 Aug 2025 11:59:15 +0200 Subject: Release swiftstory 0.4 Signed-off-by: Olivier Gayot --- debian/changelog | 6 ++++++ swiftstory/__main__.py | 10 ++++++++-- 2 files changed, 14 insertions(+), 2 deletions(-) diff --git a/debian/changelog b/debian/changelog index 0474456..8cc9ea7 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,3 +1,9 @@ +swiftstory (0.4) trixie; urgency=medium + + * Use newer websockets implementation from websockets 14.0 + + -- Olivier Gayot Mon, 18 Aug 2025 11:58:58 +0200 + swiftstory (0.3) bookworm; urgency=medium * Packaging updates: diff --git a/swiftstory/__main__.py b/swiftstory/__main__.py index 453f25f..acaa683 100644 --- a/swiftstory/__main__.py +++ b/swiftstory/__main__.py @@ -12,7 +12,7 @@ from swiftstory.game_manager import GameManager from swiftstory.interface.ws import WebsocketsInterface -async def main() -> None: +async def amain() -> None: """ Entry point: we create the game manager and start the Websockets server. """ parser = argparse.ArgumentParser() @@ -29,5 +29,11 @@ async def main() -> None: await server.serve_forever() +def main() -> None: + """Do not remove or make async, it is used as the entry-point (see + setup.cfg)""" + return asyncio.run(amain()) + + if __name__ == '__main__': - asyncio.run(main()) + main() -- cgit v1.2.3