Skip to content

Commit f806813

Browse files
ad-mAdam Dobrawyclaude
authored
Migrate to pyproject.toml (PEP 621), remove setup.py and setup.cfg (#122)
Consolidate all build configuration into pyproject.toml, replacing the legacy setup.py/setup.cfg approach. Tested on Python 3.9, 3.12, and 3.13. Co-authored-by: Adam Dobrawy <naczelnik@jawne.info.pl> Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 149756f commit f806813

3 files changed

Lines changed: 32 additions & 48 deletions

File tree

pyproject.toml

Lines changed: 32 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,38 @@
1+
[build-system]
2+
requires = ["setuptools>=64", "setuptools-scm>=8"]
3+
build-backend = "setuptools.build_meta"
4+
15
[project]
26
name = "python-anticaptcha"
7+
description = "Client library for solve captchas with Anticaptcha.com support."
8+
readme = "README.rst"
9+
license = "MIT"
310
requires-python = ">=3.9"
4-
dynamic = ["version", "description", "readme", "dependencies", "optional-dependencies"]
11+
dependencies = ["requests"]
12+
dynamic = ["version"]
13+
keywords = ["recaptcha", "captcha", "development"]
14+
classifiers = [
15+
"Development Status :: 4 - Beta",
16+
"Intended Audience :: Developers",
17+
"Programming Language :: Python :: 3",
18+
"Programming Language :: Python :: 3.9",
19+
"Programming Language :: Python :: 3.10",
20+
"Programming Language :: Python :: 3.11",
21+
"Programming Language :: Python :: 3.12",
22+
"Programming Language :: Python :: 3.13",
23+
"Programming Language :: Python :: 3.14",
24+
]
25+
26+
[project.urls]
27+
Homepage = "https://github.com/ad-m/python-anticaptcha"
28+
29+
[project.optional-dependencies]
30+
async = ["httpx>=0.24"]
31+
tests = ["pytest", "retry", "selenium"]
32+
docs = ["sphinx"]
33+
34+
[tool.setuptools-scm]
35+
fallback_version = "0.0.0"
536

637
[tool.pytest.ini_options]
738
testpaths = ["tests"]

setup.cfg

Lines changed: 0 additions & 5 deletions
This file was deleted.

setup.py

Lines changed: 0 additions & 42 deletions
This file was deleted.

0 commit comments

Comments
 (0)