2
requires = ["setuptools>=61.0"]
3
build-backend = "setuptools.build_meta"
7
description = "Python HTTP for Humans."
9
license = {text = "Apache-2.0"}
11
{ name = "Kenneth Reitz", email = "me@kennethreitz.org" },
14
{name = "Ian Stapleton Cordasco", email="graffatcolmingov@gmail.com"},
15
{name = "Nate Prewitt", email="nate.prewitt@gmail.com"}
17
requires-python = ">=3.10"
19
"charset_normalizer>=2,<4",
27
"Development Status :: 5 - Production/Stable",
28
"Environment :: Web Environment",
29
"Intended Audience :: Developers",
30
"License :: OSI Approved :: Apache Software License",
31
"Natural Language :: English",
32
"Operating System :: OS Independent",
33
"Programming Language :: Python",
34
"Programming Language :: Python :: 3",
35
"Programming Language :: Python :: 3.10",
36
"Programming Language :: Python :: 3.11",
37
"Programming Language :: Python :: 3.12",
38
"Programming Language :: Python :: 3.13",
39
"Programming Language :: Python :: 3.14",
40
"Programming Language :: Python :: 3.15",
41
"Programming Language :: Python :: 3 :: Only",
42
"Programming Language :: Python :: Implementation :: CPython",
43
"Programming Language :: Python :: Implementation :: PyPy",
44
"Programming Language :: Python :: Free Threading :: 2 - Beta",
45
"Topic :: Internet :: WWW/HTTP",
46
"Topic :: Software Development :: Libraries"
43
"Programming Language :: Python :: Implementation :: PyPy",
44
"Programming Language :: Python :: Free Threading :: 2 - Beta",
45
"Topic :: Internet :: WWW/HTTP",
46
"Topic :: Software Development :: Libraries"
50
Documentation = "https://requests.readthedocs.io"
51
Source = "https://github.com/psf/requests"
53
[project.optional-dependencies]
55
socks = ["PySocks>=1.5.6, !=1.5.7"]
56
use_chardet_on_py3 = ["chardet>=3.0.2,<8"]
61
"pytest-httpbin==2.1.0",
78
license-files = ["LICENSE", "NOTICE"]
80
[tool.setuptools.dynamic]
81
version = {attr = "requests.__version__.__version__"}
83
[tool.setuptools.packages.find]
87
target-version = "py310"
88
src = ["src/requests", "tests"]
89
exclude = ["docs/", "ext/"]
93
"E", # pycodestyle errors
94
"W", # pycodestyle warnings
98
"T10", # flake8-debugger (replaces debug-statements hook)
100
ignore = ["E203", "E501", "UP031"]
101
per-file-ignores = {"src/requests/__init__.py" = ["E402", "F401"], "src/requests/compat.py" = ["E402", "F401"], "tests/compat.py" = ["F401"]}
98
"T10", # flake8-debugger (replaces debug-statements hook)
100
ignore = ["E203", "E501", "UP031"]
101
per-file-ignores = {"src/requests/__init__.py" = ["E402", "F401"], "src/requests/compat.py" = ["E402", "F401"], "tests/compat.py" = ["F401"]}
103
[tool.ruff.lint.isort]
104
known-first-party = ["requests"]
107
# Use black-compatible formatting
108
quote-style = "double"
109
indent-style = "space"
111
[tool.pytest.ini_options]
112
addopts = "--doctest-modules"
113
doctest_optionflags = "NORMALIZE_WHITESPACE ELLIPSIS"
119
include = ["src/requests"]
120
typeCheckingMode = "strict"
121
# linting rules unrelated to type checking
122
reportPrivateUsage = false
123
reportPrivateImportUsage = false
124
reportUnnecessaryIsInstance = false
125
reportUnusedImport = false # duplicate of Ruff's F401 rule