Skip to content

Commit 1669a3a

Browse files
authored
Release on GitHub release (#276)
1 parent 5c9f688 commit 1669a3a

File tree

3 files changed

+19
-12
lines changed

3 files changed

+19
-12
lines changed

RELEASE.md

+6-8
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,12 @@
22

33
## Bumping Dependencies
44

5-
1. Change dependency
6-
2. Upgrade lock with `uv lock --resolution lowest-direct
5+
1. Change dependency version in `pyproject.toml`
6+
2. Upgrade lock with `uv lock --resolution lowest-direct`
77

88
## Major or Minor Release
99

10-
1. Create a release branch named `vX.Y.Z` where `X.Y.Z` is the version.
11-
2. Bump version number on release branch.
12-
3. Create an annotated, signed tag: `git tag -s -a vX.Y.Z`
13-
4. Create a github release using `gh release create` and publish it.
14-
5. Have the release flow being reviewed.
15-
7. Bump version number on `main` to the next version followed by `.dev`, e.g. `v0.4.0.dev`.
10+
Create a GitHub release via UI with the tag being `vX.Y.Z` where `X.Y.Z` is the version,
11+
and the release title being the same. Then ask someone to review the release.
12+
13+
The package version will be set automatically from the tag.

pyproject.toml

+10-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[project]
22
name = "mcp"
3-
version = "1.4.0.dev0"
3+
dynamic = ["version"]
44
description = "Model Context Protocol SDK"
55
readme = "README.md"
66
requires-python = ">=3.10"
@@ -52,9 +52,17 @@ dev-dependencies = [
5252
]
5353

5454
[build-system]
55-
requires = ["hatchling"]
55+
requires = ["hatchling", "uv-dynamic-versioning"]
5656
build-backend = "hatchling.build"
5757

58+
[tool.hatch.version]
59+
source = "uv-dynamic-versioning"
60+
61+
[tool.uv-dynamic-versioning]
62+
vcs = "git"
63+
style = "pep440"
64+
bump = true
65+
5866
[project.urls]
5967
Homepage = "https://modelcontextprotocol.io"
6068
Repository = "https://github.com/modelcontextprotocol/python-sdk"

uv.lock

+3-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)