summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authortanaka takashi <isazaka@gmail.com>2026-09-13 14:24:31 +0900
committertanaka takashi <isazaka@gmail.com>2026-09-13 14:24:31 +0900
commit0a730584eede23ecd3cced3287806f23fd5b32f9 (patch)
tree1f200bfca8131e435642f468592a5c3d089613c0 /tests
parent97b34627667fd699f4e0e054533eb89a205a2878 (diff)
chore(release): prepare version 0.3.0HEADv0.3.0main
Bump the project and package versions to 0.3.0 and expose the same version through FastMCP server metadata. Add a regression test that keeps pyproject, package, and MCP server versions aligned. Add a 0.3.0 changelog covering the AudioContent migration, wav_path removal, isError semantics, security hardening, and other breaking changes. Update README links so project documentation and samples remain accessible from the rendered PyPI description. Declare MIT and project URLs in package metadata, and restrict source distributions to release documentation, source code, and tests so generated audio, caches, local plans, and unrelated working files cannot leak into published artifacts. Release verification completed with Ruff, 488 passing tests, uv lock validation, wheel CLI smoke testing, sdist content auditing, and twine checks for both wheel and sdist.
Diffstat (limited to 'tests')
-rw-r--r--tests/test_version.py16
1 files changed, 16 insertions, 0 deletions
diff --git a/tests/test_version.py b/tests/test_version.py
new file mode 100644
index 0000000..dbb4b9c
--- /dev/null
+++ b/tests/test_version.py
@@ -0,0 +1,16 @@
+"""Release version consistency tests."""
+
+import tomllib
+from pathlib import Path
+
+from mml_composemusic_mcp import __version__
+from mml_composemusic_mcp.server import mcp
+
+
+def test_release_versions_match():
+ pyproject_path = Path(__file__).parents[1] / "pyproject.toml"
+ with pyproject_path.open("rb") as pyproject_file:
+ project_version = tomllib.load(pyproject_file)["project"]["version"]
+
+ assert __version__ == project_version == "0.3.0"
+ assert mcp.version == __version__