Skip to content

Commit

Permalink
Merge pull request #21 from jlowin/readme
Browse files Browse the repository at this point in the history
Use hatchling for version
  • Loading branch information
jlowin authored Dec 1, 2024
2 parents e63d10c + 53b3158 commit 0d27102
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 6 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ def get_greeting(name: str) -> str:

To use this server, you have two options:

1. Install it in Claude Desktop:
1. Install it in [Claude Desktop](https://claude.ai/download):
```bash
fastmcp install server.py
```
Expand Down
10 changes: 5 additions & 5 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,8 @@ license = { text = "Apache-2.0" }
fastmcp = "fastmcp.cli:app"

[build-system]
requires = ["setuptools>=45", "setuptools_scm[toml]>=6.2"]
build-backend = "setuptools.build_meta"

[tool.setuptools_scm]
write_to = "src/fastmcp/_version.py"
requires = ["hatchling>=1.21.0", "hatch-vcs>=0.4.0"]
build-backend = "hatchling.build"

[project.optional-dependencies]
dev = [
Expand All @@ -39,3 +36,6 @@ dev = [
[tool.pytest.ini_options]
asyncio_mode = "auto"
asyncio_default_fixture_loop_scope = "session"

[tool.hatch.version]
source = "vcs"
2 changes: 2 additions & 0 deletions src/fastmcp/__init__.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
"""FastMCP - A more ergonomic interface for MCP servers."""

from importlib.metadata import version
from .server import FastMCP, Context
from .utilities.types import Image

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

0 comments on commit 0d27102

Please sign in to comment.