Skip to content
Myr

pyproject.toml

This file

Path

pyproject.toml

102 lines · 2.8 KiB · TOML

Last changed by

Increase chardet upper limit to 8Dan Blanchardbefore adoptionb2a1d33

History of this file

Take it

Migrate build system to PEP 517 (#7012)Nate Prewittbefore adoptioncb2c800

lines 1–16why, one step back
1[build-system]
2requires = ["setuptools>=61.0"]3build-backend = "setuptools.build_meta"45[project]6name = "requests"7description = "Python HTTP for Humans."8readme = "README.md"9license = {text = "Apache-2.0"}10authors = [11 { name = "Kenneth Reitz", email = "me@kennethreitz.org" },12]13maintainers = [14 {name = "Ian Stapleton Cordasco", email="graffatcolmingov@gmail.com"},15 {name = "Nate Prewitt", email="nate.prewitt@gmail.com"}16]

Drop support for Python 3.9 (#7196)Nate Prewittbefore adoption0c2bbe7

line 17why, one step back
17requires-python = ">=3.10"

Migrate build system to PEP 517 (#7012)Nate Prewittbefore adoptioncb2c800

lines 18–20why, one step back
18dependencies = [
19 "charset_normalizer>=2,<4",20 "idna>=2.5,<4",

Update floors for certifi and urllib3 (#7189)Nate Prewittbefore adoption733b201

lines 21–22why, one step back
21 "urllib3>=1.26,<3",
22 "certifi>=2023.5.7"

Migrate build system to PEP 517 (#7012)Nate Prewittbefore adoptioncb2c800

lines 23–53why, one step back
23]
24dynamic = ["version"]2526classifiers = [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 :: Only",41 "Programming Language :: Python :: Implementation :: CPython",42 "Programming Language :: Python :: Implementation :: PyPy",43 "Topic :: Internet :: WWW/HTTP",44 "Topic :: Software Development :: Libraries"45]4647[project.urls]48Documentation = "https://requests.readthedocs.io"49Source = "https://github.com/psf/requests"5051[project.optional-dependencies]52security = []53socks = ["PySocks>=1.5.6, !=1.5.7"]

Increase chardet upper limit to 8Dan Blanchardbefore adoptionb2a1d33

line 54why, one step back
54use_chardet_on_py3 = ["chardet>=3.0.2,<8"]

Migrate build system to PEP 517 (#7012)Nate Prewittbefore adoptioncb2c800

lines 55–72why, one step back
55test = [
56 "pytest-httpbin==2.1.0",57 "pytest-cov",58 "pytest-mock",59 "pytest-xdist",60 "PySocks>=1.5.6, !=1.5.7",61 "pytest>=3"62]6364[tool.setuptools]65license-files = ["LICENSE", "NOTICE"]6667[tool.setuptools.dynamic]68version = {attr = "requests.__version__.__version__"}6970[tool.setuptools.packages.find]71where = ["src"]72

Fix CI and build failures (#7190)Nate Prewittbefore adoptionf8bec2f

lines 73–86why, one step back
73[tool.ruff]
74target-version = "py310"75src = ["src/requests", "tests"]76exclude = ["docs/", "ext/"]7778[tool.ruff.lint]79select = [80 "E", # pycodestyle errors81 "W", # pycodestyle warnings82 "F", # pyflakes83 "I", # isort84 "UP", # pyupgrade85 "T10", # flake8-debugger (replaces debug-statements hook)86]

Drop support for Python 3.9 (#7196)Nate Prewittbefore adoption0c2bbe7

line 87why, one step back
87ignore = ["E203", "E501", "UP038", "UP031"]

Fix CI and build failures (#7190)Nate Prewittbefore adoptionf8bec2f

lines 88–96why, one step back
88per-file-ignores = {"src/requests/__init__.py" = ["E402", "F401"], "src/requests/compat.py" = ["E402", "F401"], "tests/compat.py" = ["F401"]}
8990[tool.ruff.lint.isort]91known-first-party = ["requests"]9293[tool.ruff.format]94# Use black-compatible formatting95quote-style = "double"96indent-style = "space"

Add automatic code formatting to Requests (#6095)Nate Prewittbefore adoption2a6f290

lines 97–98why, one step back
97
98[tool.pytest.ini_options]

enable the warnings plugin (#6416)Thomas Graingerbefore adoption51716c4

line 99why, one step back
99addopts = "--doctest-modules"

Add automatic code formatting to Requests (#6095)Nate Prewittbefore adoption2a6f290

lines 100–101why, one step back
100doctest_optionflags = "NORMALIZE_WHITESPACE ELLIPSIS"
101minversion = "6.2"

Move to src directory (#6506)Nate Prewittbefore adoptiond63e94f

line 102why, one step back
102testpaths = ["tests"]