From e4f729b4bd3426114b087ac38be9973e6b5c4075 Mon Sep 17 00:00:00 2001 From: Justin Merrell Date: Mon, 30 Mar 2026 17:37:40 +0000 Subject: [PATCH] fix: sync pyproject.toml version with release-please and use inline marker Release-please was not updating pyproject.toml because the extra-files TOML/jsonpath config was silently ignored. This left the version stuck at 0.2.0 while the manifest had 0.3.1, causing publish jobs to fail with 400 Bad Request (duplicate version on PyPI). - Update pyproject.toml version to 0.3.1 with x-release-please-version inline comment marker for reliable future updates - Simplify extra-files config to use the Generic updater with the marker Co-Authored-By: Claude Opus 4.6 (1M context) --- .github/release-please/config.json | 8 +------- pyproject.toml | 2 +- uv.lock | 6 +++--- 3 files changed, 5 insertions(+), 11 deletions(-) diff --git a/.github/release-please/config.json b/.github/release-please/config.json index dc87909..ca771ff 100644 --- a/.github/release-please/config.json +++ b/.github/release-please/config.json @@ -9,13 +9,7 @@ "include-component-in-tag": false, "bump-minor-pre-major": true, "bump-patch-for-minor-pre-major": true, - "extra-files": [ - { - "type": "toml", - "path": "pyproject.toml", - "jsonpath": "$.project.version" - } - ], + "extra-files": ["pyproject.toml"], "changelog-sections": [ { "type": "feat", "section": "Features" }, { "type": "fix", "section": "Bug Fixes" }, diff --git a/pyproject.toml b/pyproject.toml index 1b9f687..aeaa194 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [project] name = "musher-sdk" -version = "0.2.0" +version = "0.3.1" # x-release-please-version description = "Python SDK for the Musher bundle distribution platform" readme = "README.md" license = "Apache-2.0" diff --git a/uv.lock b/uv.lock index cff7f72..b7b1108 100644 --- a/uv.lock +++ b/uv.lock @@ -1439,7 +1439,7 @@ wheels = [ [[package]] name = "musher-sdk" -version = "0.2.0" +version = "0.3.1" source = { editable = "." } dependencies = [ { name = "httpx" }, @@ -1482,8 +1482,8 @@ provides-extras = ["examples"] [package.metadata.requires-dev] dev = [ { name = "basedpyright", specifier = ">=1.38.1" }, - { name = "nodejs-wheel", specifier = ">=22,<24" }, - { name = "pytest", specifier = ">=8.3.0,<9.0.0" }, + { name = "nodejs-wheel", specifier = ">=22,<25" }, + { name = "pytest", specifier = ">=8.3.0,<10.0.0" }, { name = "pytest-asyncio", specifier = ">=1.0.0" }, { name = "pytest-cov", specifier = ">=4.0.0" }, { name = "pytest-xdist", specifier = ">=3.0" },