From 58ceab40cee30e3dfbcc5bc1fdb9afa148408c8e Mon Sep 17 00:00:00 2001 From: Daniel McCoy Stephenson Date: Mon, 5 Oct 2026 23:24:06 -0600 Subject: [PATCH] Re-vendor trace-client-python 0.4.1 (public usage-reporting link) 0.4.1 points the usage-reporting link in the client's doc comment at https://danielstephenson.dev/usage-reporting instead of the private trace repository; the version string moves with it. Tests and notes that pinned 0.4.0 are updated. Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_01BZQMN1M5hQKfUpPwDkMjqd --- src/trace_client.py | 7 +++---- tests/test_trace_client.py | 4 ++-- 2 files changed, 5 insertions(+), 6 deletions(-) diff --git a/src/trace_client.py b/src/trace_client.py index 13ccf2e..1613ebe 100644 --- a/src/trace_client.py +++ b/src/trace_client.py @@ -1,4 +1,4 @@ -"""trace-client 0.4.0 -- https://github.com/Stephenson-Software/trace-client-python +"""trace-client 0.4.1 -- https://github.com/Stephenson-Software/trace-client-python One call to report that a program was used. Copy this file into a project as is, or vendor the package; either way there is nothing else to add. Standard @@ -21,7 +21,7 @@ import uuid from typing import Dict, Mapping, Optional, Union -__version__ = "0.4.0" +__version__ = "0.4.1" _LOG = logging.getLogger("trace") @@ -93,8 +93,7 @@ class TraceClient: (``"environment"``, ``"config"`` or ``"no key"``; ``None`` when on) so the program can say so in its notice. Programs that run on other people's machines should expose that switch in their settings and say - so once, pointing at - https://github.com/Stephenson-Software/trace#usage-reporting. + so once, pointing at https://danielstephenson.dev/usage-reporting. Every event carries the program's own version as the tag ``version`` -- the third argument, required, so a ``command`` event can be tied to a diff --git a/tests/test_trace_client.py b/tests/test_trace_client.py index dc61da2..a05b63e 100644 --- a/tests/test_trace_client.py +++ b/tests/test_trace_client.py @@ -219,12 +219,12 @@ def test_environment_opts_out_accepts_an_explicit_mapping(self): def test_user_agent_names_the_client_version(self): from trace_client import __version__ - self.assertEqual("0.4.0", __version__) + self.assertEqual("0.4.1", __version__) client = TraceClient(self.base_url, "MyGame", "1.2.3", key="k") client.report("startup") self.assertTrue(self.capture.arrived.wait(5)) client.close() - self.assertEqual("trace-client-python/0.4.0 (MyGame)", self.capture.requests[0]["user_agent"]) + self.assertEqual("trace-client-python/0.4.1 (MyGame)", self.capture.requests[0]["user_agent"]) def test_report_ignores_a_blank_name(self): client = TraceClient(self.base_url, "MyGame", "1.2.3", key="k")