From 10e93372b76d2d74b4683b5c478c7ed15f7f0622 Mon Sep 17 00:00:00 2001 From: Yong Date: Sat, 10 Jan 2026 16:13:03 -0600 Subject: [PATCH] Switch build from setuptools to hatch --- mcp-server/pyproject.toml | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/mcp-server/pyproject.toml b/mcp-server/pyproject.toml index 4ccd8d2c..449b60d7 100644 --- a/mcp-server/pyproject.toml +++ b/mcp-server/pyproject.toml @@ -51,12 +51,14 @@ homepage = "https://polaris.apache.org/" repository = "https://github.com/apache/polaris-tools/" [build-system] -requires = ["setuptools>=68.0"] -build-backend = "setuptools.build_meta" +requires = ["hatchling"] +build-backend = "hatchling.build" -[tool.setuptools.packages.find] -where = ["."] -include = ["polaris_mcp*"] +[tool.hatch.build.targets.sdist] +include = ["polaris_mcp"] + +[tool.hatch.build.targets.wheel] +include = ["polaris_mcp"] [[tool.uv.index]] name = "pypi"