From 148b80f779220f07f97d5ecc929f6092a77090a2 Mon Sep 17 00:00:00 2001 From: Zio Gabber <78922322+Gabrymi93@users.noreply.github.com> Date: Thu, 15 Oct 2026 16:00:05 +0100 Subject: [PATCH] chore: migrate packaging to setuptools, align with org standard (A3) Per infra/lab-ops/standards/pyproject.md (which names ACB explicitly): - hatchling -> setuptools>=68; src-layout via [tool.setuptools.packages.find] where=["src"] - dist name agent-context-builder -> dataciviclab-agent-context-builder (entry points agent-context / agent-context-mcp unchanged) - license dict -> "MIT" string; drop stale 3.10/3.11 classifiers - drop requests (never imported; HTTP via lab_connectors.http) - ruff target-version py310 -> py312 (coherent with requires-python) - add [project.urls] Repository --- pyproject.toml | 38 +++++++++++++++----------------------- 1 file changed, 15 insertions(+), 23 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index 9c310ef..2d12748 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,53 +1,45 @@ [build-system] -requires = ["hatchling"] -build-backend = "hatchling.build" +requires = ["setuptools>=68"] +build-backend = "setuptools.build_meta" [project] -name = "agent-context-builder" +name = "dataciviclab-agent-context-builder" version = "0.1.0" description = "Autonomous context generation for agents: compact bootstrap, workspace triage, topic index" readme = "README.md" -license = {text = "MIT"} requires-python = ">=3.12" +license = "MIT" authors = [ - {name = "DataCivicLab", email = "dev@dataciviclab.org"} + {name = "DataCivicLab"} ] keywords = ["agent", "context", "github", "triage"] -classifiers = [ - "Development Status :: 3 - Alpha", - "Intended Audience :: Developers", - "License :: OSI Approved :: MIT License", - "Programming Language :: Python :: 3.10", - "Programming Language :: Python :: 3.11", - "Programming Language :: Python :: 3.12", -] dependencies = [ "click>=8.0", "pydantic>=2.0", "pyyaml>=6.0", - "requests>=2.28", "lab-connectors[mcp] @ git+https://github.com/dataciviclab/lab-connectors.git", ] [project.optional-dependencies] dev = [ - "pytest>=7.0", - "pytest-cov>=4.0", + "pytest>=8.0", + "pytest-cov>=5.0", "pytest-timeout>=2.3.0", - "ruff>=0.1", - "mypy>=1.0", + "ruff>=0.5", + "mypy>=1.20", ] [project.scripts] agent-context = "agent_context_builder.cli:main" agent-context-mcp = "agent_context_builder.mcp_server:main" -[tool.hatch.metadata] -allow-direct-references = true +[project.urls] +Repository = "https://github.com/dataciviclab/agent-context-builder" -[tool.hatch.build.targets.wheel] -packages = ["src/agent_context_builder"] +[tool.setuptools.packages.find] +where = ["src"] +include = ["agent_context_builder*"] [tool.pytest.ini_options] testpaths = ["tests"] @@ -63,7 +55,7 @@ markers = [ [tool.ruff] line-length = 100 -target-version = "py310" +target-version = "py312" [tool.ruff.lint] select = ["E", "F", "W", "I"]