From c8ba532c71c3dbaff1262660c4e653e6158127ca Mon Sep 17 00:00:00 2001 From: Claude Date: Fri, 13 Mar 2026 21:30:57 +0000 Subject: [PATCH] Migrate build system from setuptools to hatchling Replace setuptools + setuptools-scm with hatchling + hatch-vcs for a lighter, more modern build backend. All metadata, versioning, and package data (py.typed) are preserved. https://claude.ai/code/session_01Wwr1CDbtn58p2EAohRFB5z --- pyproject.toml | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index 77a1775..ec2d76b 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [build-system] -requires = ["setuptools>=64", "setuptools-scm>=8"] -build-backend = "setuptools.build_meta" +requires = ["hatchling", "hatch-vcs"] +build-backend = "hatchling.build" [project] name = "python-anticaptcha" @@ -33,11 +33,12 @@ async = ["httpx>=0.24"] tests = ["pytest", "pytest-asyncio", "httpx>=0.24", "retry", "selenium"] docs = ["sphinx", "sphinx-rtd-theme"] -[tool.setuptools.package-data] -python_anticaptcha = ["py.typed"] +[tool.hatch.version] +source = "vcs" +fallback-version = "0.0.0" -[tool.setuptools-scm] -fallback_version = "0.0.0" +[tool.hatch.build.targets.wheel] +packages = ["python_anticaptcha"] [tool.ruff] target-version = "py39"