Spaces:
Running
Running
Jeremiah Lowin commited on
Commit ·
05c049d
1
Parent(s): fed898d
Use hatchling
Browse files- pyproject.toml +5 -5
- src/fastmcp/__init__.py +2 -0
pyproject.toml
CHANGED
|
@@ -18,11 +18,8 @@ license = { text = "Apache-2.0" }
|
|
| 18 |
fastmcp = "fastmcp.cli:app"
|
| 19 |
|
| 20 |
[build-system]
|
| 21 |
-
requires = ["
|
| 22 |
-
build-backend = "
|
| 23 |
-
|
| 24 |
-
[tool.setuptools_scm]
|
| 25 |
-
write_to = "src/fastmcp/_version.py"
|
| 26 |
|
| 27 |
[project.optional-dependencies]
|
| 28 |
dev = [
|
|
@@ -39,3 +36,6 @@ dev = [
|
|
| 39 |
[tool.pytest.ini_options]
|
| 40 |
asyncio_mode = "auto"
|
| 41 |
asyncio_default_fixture_loop_scope = "session"
|
|
|
|
|
|
|
|
|
|
|
|
| 18 |
fastmcp = "fastmcp.cli:app"
|
| 19 |
|
| 20 |
[build-system]
|
| 21 |
+
requires = ["hatchling>=1.21.0", "hatch-vcs>=0.4.0"]
|
| 22 |
+
build-backend = "hatchling.build"
|
|
|
|
|
|
|
|
|
|
| 23 |
|
| 24 |
[project.optional-dependencies]
|
| 25 |
dev = [
|
|
|
|
| 36 |
[tool.pytest.ini_options]
|
| 37 |
asyncio_mode = "auto"
|
| 38 |
asyncio_default_fixture_loop_scope = "session"
|
| 39 |
+
|
| 40 |
+
[tool.hatch.version]
|
| 41 |
+
source = "vcs"
|
src/fastmcp/__init__.py
CHANGED
|
@@ -1,6 +1,8 @@
|
|
| 1 |
"""FastMCP - A more ergonomic interface for MCP servers."""
|
| 2 |
|
|
|
|
| 3 |
from .server import FastMCP, Context
|
| 4 |
from .utilities.types import Image
|
| 5 |
|
|
|
|
| 6 |
__all__ = ["FastMCP", "Context", "Image"]
|
|
|
|
| 1 |
"""FastMCP - A more ergonomic interface for MCP servers."""
|
| 2 |
|
| 3 |
+
from importlib.metadata import version
|
| 4 |
from .server import FastMCP, Context
|
| 5 |
from .utilities.types import Image
|
| 6 |
|
| 7 |
+
__version__ = version("fastmcp")
|
| 8 |
__all__ = ["FastMCP", "Context", "Image"]
|