From 8d857b78ba353a69e743b4b90a9b3c712aa712f8 Mon Sep 17 00:00:00 2001 From: Daniel McCoy Stephenson Date: Wed, 28 Oct 2026 20:36:19 -0600 Subject: [PATCH 1/2] chore: release 0.4.2 Version bump for the stable release; the release itself is published only after the candidate passes the release gates. Co-Authored-By: Claude Opus 5 (1M context) --- pyproject.toml | 2 +- trace_client/trace_client.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index 7ed264f..11b30ed 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta" [project] name = "trace-client" -version = "0.4.1" +version = "0.4.2" description = "One call to report that a program was used, to a trace server. Standard library only, Python 3.8+." readme = "README.md" license = {text = "MIT"} diff --git a/trace_client/trace_client.py b/trace_client/trace_client.py index 6f08222..4b222c5 100644 --- a/trace_client/trace_client.py +++ b/trace_client/trace_client.py @@ -19,7 +19,7 @@ import uuid from typing import Dict, Mapping, Optional, Union -__version__ = "0.4.1" +__version__ = "0.4.2" _LOG = logging.getLogger("trace") From 21419133d822822bb4c381f3725bf2b8fb18ad9f Mon Sep 17 00:00:00 2001 From: Daniel McCoy Stephenson Date: Fri, 30 Oct 2026 08:32:43 -0600 Subject: [PATCH 2/2] Write 0.4.2 everywhere the version is pinned The release bump changed pyproject.toml and the __version__ constant but left the module headers and the version tests at 0.4.1, so the version agreement tests failed on every interpreter. drafted by Claude on behalf of Daniel Stephenson Co-Authored-By: Claude Opus 5.5 --- tests/test_trace_client.py | 4 ++-- trace_client/__init__.py | 2 +- trace_client/trace_client.py | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/tests/test_trace_client.py b/tests/test_trace_client.py index dfa61b2..a050666 100644 --- a/tests/test_trace_client.py +++ b/tests/test_trace_client.py @@ -293,12 +293,12 @@ def test_environment_opts_out_reads_only_the_mapping_it_is_given(self): def test_user_agent_names_the_client_version(self): from trace_client import __version__ - self.assertEqual("0.4.1", __version__) + self.assertEqual("0.4.2", __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.1 (MyGame)", self.capture.requests[0]["user_agent"]) + self.assertEqual("trace-client-python/0.4.2 (MyGame)", self.capture.requests[0]["user_agent"]) def test_every_place_the_version_is_written_agrees_with_version(self): # A vendored copy is identified by its header, an installed one by diff --git a/trace_client/__init__.py b/trace_client/__init__.py index 6a3d764..85e631f 100644 --- a/trace_client/__init__.py +++ b/trace_client/__init__.py @@ -1,4 +1,4 @@ -"""trace-client 0.4.1 -- https://github.com/Stephenson-Software/trace-client-python +"""trace-client 0.4.2 -- https://github.com/Stephenson-Software/trace-client-python One call to report that a program was used. Copy ``trace_client.py`` (this package's single module) into a project as is, or vendor the package; either diff --git a/trace_client/trace_client.py b/trace_client/trace_client.py index 4b222c5..9a7affc 100644 --- a/trace_client/trace_client.py +++ b/trace_client/trace_client.py @@ -1,4 +1,4 @@ -"""trace-client 0.4.1 -- https://github.com/Stephenson-Software/trace-client-python +"""trace-client 0.4.2 -- 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