Skip to content

Commit 0b8f1be

Browse files
ad-mclaude
andauthored
Migrate build system from setuptools to hatchling (#136)
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 Co-authored-by: Claude <noreply@anthropic.com>
1 parent 454e513 commit 0b8f1be

1 file changed

Lines changed: 7 additions & 6 deletions

File tree

pyproject.toml

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[build-system]
2-
requires = ["setuptools>=64", "setuptools-scm>=8"]
3-
build-backend = "setuptools.build_meta"
2+
requires = ["hatchling", "hatch-vcs"]
3+
build-backend = "hatchling.build"
44

55
[project]
66
name = "python-anticaptcha"
@@ -33,11 +33,12 @@ async = ["httpx>=0.24"]
3333
tests = ["pytest", "pytest-asyncio", "httpx>=0.24", "retry", "selenium"]
3434
docs = ["sphinx", "sphinx-rtd-theme"]
3535

36-
[tool.setuptools.package-data]
37-
python_anticaptcha = ["py.typed"]
36+
[tool.hatch.version]
37+
source = "vcs"
38+
fallback-version = "0.0.0"
3839

39-
[tool.setuptools-scm]
40-
fallback_version = "0.0.0"
40+
[tool.hatch.build.targets.wheel]
41+
packages = ["python_anticaptcha"]
4142

4243
[tool.ruff]
4344
target-version = "py39"

0 commit comments

Comments
 (0)