From 184ab48933d1073bac91a116241d76712e203877 Mon Sep 17 00:00:00 2001 From: lmiranda Date: Tue, 3 Feb 2026 15:05:56 -0500 Subject: [PATCH] fix(gitea): standardize build backend to setuptools MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Replace hatchling with setuptools to match all other MCP servers (contract-validator, viz-platform, data-platform). Changes: - build-system: hatchling → setuptools>=61.0 - license: string → PEP 639 format {text = "MIT"} - Remove redundant License classifier - Add [tool.setuptools.packages.find] config - Add [tool.pytest.ini_options] for consistency Verified: pip install -e . succeeds, 36 tools registered, 64 tests pass. Co-Authored-By: Claude Opus 4.5 --- mcp-servers/gitea/pyproject.toml | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/mcp-servers/gitea/pyproject.toml b/mcp-servers/gitea/pyproject.toml index abce327..d4c8d30 100644 --- a/mcp-servers/gitea/pyproject.toml +++ b/mcp-servers/gitea/pyproject.toml @@ -1,6 +1,6 @@ [build-system] -requires = ["hatchling"] -build-backend = "hatchling.build" +requires = ["setuptools>=61.0", "wheel"] +build-backend = "setuptools.build_meta" [project] name = "gitea-mcp-server" @@ -8,7 +8,7 @@ version = "1.0.0" description = "MCP Server for Gitea integration - provides issue, label, wiki, milestone, dependency, and PR tools" readme = "README.md" requires-python = ">=3.10" -license = "MIT" +license = {text = "MIT"} authors = [ { name = "Leo Miranda" } ] @@ -16,7 +16,6 @@ keywords = ["mcp", "gitea", "claude", "tools"] classifiers = [ "Development Status :: 4 - Beta", "Intended Audience :: Developers", - "License :: OSI Approved :: MIT License", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.10", "Programming Language :: Python :: 3.11", @@ -35,5 +34,10 @@ test = [ "pytest-asyncio>=0.23.0", ] -[tool.hatch.build.targets.wheel] -packages = ["mcp_server"] +[tool.setuptools.packages.find] +where = ["."] +include = ["mcp_server*"] + +[tool.pytest.ini_options] +asyncio_mode = "auto" +testpaths = ["tests"]