From b5edf22ad3e0c722fc365cada19f620bbfa9b64d Mon Sep 17 00:00:00 2001 From: Voyager Date: Sun, 23 Aug 2026 21:00:15 -0400 Subject: [PATCH] chore: prepare v0.17.0-alpha release --- docs/API.md | 4 ++-- netfishing_discovery/__init__.py | 2 +- pyproject.toml | 2 +- tests/test_http_api.py | 12 ++++++------ tests/test_registry.py | 6 +++--- tests/test_social_registry.py | 4 ++-- 6 files changed, 15 insertions(+), 15 deletions(-) diff --git a/docs/API.md b/docs/API.md index 3ce1434..335947b 100644 --- a/docs/API.md +++ b/docs/API.md @@ -32,8 +32,8 @@ trusting an address supplied by the game client. "port": 7777, "current_players": 0, "max_players": 8, - "game_version": "0.16.2-alpha", - "protocol_version": 9 + "game_version": "0.17.0-alpha", + "protocol_version": 10 } ``` diff --git a/netfishing_discovery/__init__.py b/netfishing_discovery/__init__.py index dc6f286..0888593 100644 --- a/netfishing_discovery/__init__.py +++ b/netfishing_discovery/__init__.py @@ -1,3 +1,3 @@ """NETfishing discovery service.""" -__version__ = "0.16.2-alpha" +__version__ = "0.17.0-alpha" diff --git a/pyproject.toml b/pyproject.toml index 862a938..c62956e 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta" [project] name = "netfishing-discovery-server" -version = "0.16.2-alpha" +version = "0.17.0-alpha" description = "Ephemeral public-room directory for NETfishing" requires-python = ">=3.11" dependencies = [] diff --git a/tests/test_http_api.py b/tests/test_http_api.py index d5d4833..3f4edb6 100644 --- a/tests/test_http_api.py +++ b/tests/test_http_api.py @@ -20,8 +20,8 @@ VALID_ROOM = { "port": 7777, "current_players": 1, "max_players": 8, - "game_version": "0.16.2-alpha", - "protocol_version": 9, + "game_version": "0.17.0-alpha", + "protocol_version": 10, } @@ -86,7 +86,7 @@ class DiscoveryHTTPTests(unittest.TestCase): self.assertIsInstance(room_id, str) self.assertIsInstance(token, str) - status, listing = self.request("GET", "/v1/rooms?protocol_version=9") + status, listing = self.request("GET", "/v1/rooms?protocol_version=10") self.assertEqual(status, 200) assert listing is not None listed_rooms = listing["rooms"] @@ -102,7 +102,7 @@ class DiscoveryHTTPTests(unittest.TestCase): assert updated is not None self.assertEqual(updated["error"]["code"], "game_version_mismatch") self.assertEqual( - updated["error"]["required_game_version"], "0.16.2-alpha" + updated["error"]["required_game_version"], "0.17.0-alpha" ) status, updated = self.request( @@ -135,7 +135,7 @@ class DiscoveryHTTPTests(unittest.TestCase): error = body["error"] assert isinstance(error, dict) self.assertEqual(error["code"], "game_version_mismatch") - self.assertEqual(error["required_game_version"], "0.16.2-alpha") + self.assertEqual(error["required_game_version"], "0.17.0-alpha") self.assertIn("will not be listed", str(error["message"])) def test_empty_dedicated_room_can_be_listed(self) -> None: @@ -201,7 +201,7 @@ class DiscoveryHTTPTests(unittest.TestCase): self.assertEqual(status, 200) assert body is not None self.assertEqual(body["status"], "ok") - self.assertEqual(body["version"], "0.16.2-alpha") + self.assertEqual(body["version"], "0.17.0-alpha") self.assertEqual(body["build_revision"], "test-build") def test_live_friend_presence_and_invitation_endpoints(self) -> None: diff --git a/tests/test_registry.py b/tests/test_registry.py index 9a138ab..bf204fd 100644 --- a/tests/test_registry.py +++ b/tests/test_registry.py @@ -16,8 +16,8 @@ VALID_ROOM = { "port": 7777, "current_players": 1, "max_players": 8, - "game_version": "0.16.2-alpha", - "protocol_version": 9, + "game_version": "0.17.0-alpha", + "protocol_version": 10, } @@ -112,7 +112,7 @@ class RoomRegistryTests(unittest.TestCase): "203.0.113.11", dict(VALID_ROOM, room_name="Older Room", protocol_version=3), ) - self.assertEqual(self.registry.list_rooms(protocol_version=9), [expected]) + self.assertEqual(self.registry.list_rooms(protocol_version=10), [expected]) self.assertEqual(self.registry.list_rooms(game_version="missing"), []) def test_room_limits_bound_untrusted_advertisements(self) -> None: diff --git a/tests/test_social_registry.py b/tests/test_social_registry.py index 8f4fbf2..a503c51 100644 --- a/tests/test_social_registry.py +++ b/tests/test_social_registry.py @@ -12,8 +12,8 @@ from netfishing_discovery.social_registry import ( ) -GAME_VERSION = "0.16.2-alpha" -PROTOCOL_VERSION = 9 +GAME_VERSION = "0.17.0-alpha" +PROTOCOL_VERSION = 10 VALID_ROOM = { "room_name": "Pond Friends", "port": 7777,