Replace hatchling and the static version with setuptools + setuptools-scm, following Kaya's pre-uv packaging setup: dynamic version, generated _version.py, and release/* tag prefix. The Docker builder now includes git and the .git directory so the image is versioned from the checkout. CI checks out full history and tags for the tag-triggered builds.
28 lines
572 B
TOML
28 lines
572 B
TOML
[project]
|
|
name = "xmcp"
|
|
dynamic = ["version"]
|
|
description = "MCP server generated from an OpenAPI specification, built with FastMCP"
|
|
readme = "README.md"
|
|
requires-python = ">=3.14"
|
|
dependencies = [
|
|
"fastmcp>=4.1,<5",
|
|
"httpx2>=2.5",
|
|
"pyyaml>=6.0",
|
|
]
|
|
|
|
[project.scripts]
|
|
xmcp = "xmcp.server:main"
|
|
|
|
[build-system]
|
|
requires = ["setuptools>=61.0", "setuptools-scm>=8"]
|
|
build-backend = "setuptools.build_meta"
|
|
|
|
[tool.setuptools.packages.find]
|
|
where = ["src"]
|
|
|
|
[tool.setuptools_scm]
|
|
version_file = "src/xmcp/_version.py"
|
|
|
|
[tool.setuptools_scm.tag]
|
|
prefix = "release/"
|