Skip to content

Commit 0d27102

Browse files
authored
Merge pull request #21 from jlowin/readme
Use hatchling for version
2 parents e63d10c + 53b3158 commit 0d27102

File tree

3 files changed

+8
-6
lines changed

3 files changed

+8
-6
lines changed

Diff for: README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ def get_greeting(name: str) -> str:
8080

8181
To use this server, you have two options:
8282

83-
1. Install it in Claude Desktop:
83+
1. Install it in [Claude Desktop](https://claude.ai/download):
8484
```bash
8585
fastmcp install server.py
8686
```

Diff for: pyproject.toml

+5-5
Original file line numberDiff line numberDiff line change
@@ -18,11 +18,8 @@ license = { text = "Apache-2.0" }
1818
fastmcp = "fastmcp.cli:app"
1919

2020
[build-system]
21-
requires = ["setuptools>=45", "setuptools_scm[toml]>=6.2"]
22-
build-backend = "setuptools.build_meta"
23-
24-
[tool.setuptools_scm]
25-
write_to = "src/fastmcp/_version.py"
21+
requires = ["hatchling>=1.21.0", "hatch-vcs>=0.4.0"]
22+
build-backend = "hatchling.build"
2623

2724
[project.optional-dependencies]
2825
dev = [
@@ -39,3 +36,6 @@ dev = [
3936
[tool.pytest.ini_options]
4037
asyncio_mode = "auto"
4138
asyncio_default_fixture_loop_scope = "session"
39+
40+
[tool.hatch.version]
41+
source = "vcs"

Diff for: src/fastmcp/__init__.py

+2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
"""FastMCP - A more ergonomic interface for MCP servers."""
22

3+
from importlib.metadata import version
34
from .server import FastMCP, Context
45
from .utilities.types import Image
56

7+
__version__ = version("fastmcp")
68
__all__ = ["FastMCP", "Context", "Image"]

0 commit comments

Comments
 (0)