mirror of
https://github.com/PrefectHQ/fastmcp.git
synced 2026-08-21 21:14:17 +02:00
Use hatchling
This commit is contained in:
parent
e979ff06cc
commit
53b31586d2
2 changed files with 7 additions and 5 deletions
|
|
@ -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 = [
|
||||
|
|
@ -39,3 +36,6 @@ dev = [
|
|||
[tool.pytest.ini_options]
|
||||
asyncio_mode = "auto"
|
||||
asyncio_default_fixture_loop_scope = "session"
|
||||
|
||||
[tool.hatch.version]
|
||||
source = "vcs"
|
||||
|
|
|
|||
|
|
@ -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"]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue