pyproject.toml
This file
Path
pyproject.toml
104 lines · 2.9 KiB · TOML
Last changed by
Migrate build system to PEP 517 (#7012)Nate Prewittbefore adoptioncb2c800
History of this fileTake it
Migrate build system to PEP 517 (#7012)Nate Prewittbefore adoptioncb2c800
lines 1–73why, one step back1[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]17requires-python = ">=3.9"18dependencies = [19 "charset_normalizer>=2,<4",20 "idna>=2.5,<4",21 "urllib3>=1.21.1,<3",22 "certifi>=2017.4.17"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.9",36 "Programming Language :: Python :: 3.10",37 "Programming Language :: Python :: 3.11",38 "Programming Language :: Python :: 3.12",39 "Programming Language :: Python :: 3.13",40 "Programming Language :: Python :: 3.14",41 "Programming Language :: Python :: 3 :: Only",42 "Programming Language :: Python :: Implementation :: CPython",43 "Programming Language :: Python :: Implementation :: PyPy",44 "Topic :: Internet :: WWW/HTTP",45 "Topic :: Software Development :: Libraries"46]4748[project.urls]49Documentation = "https://requests.readthedocs.io"50Source = "https://github.com/psf/requests"5152[project.optional-dependencies]53security = []54socks = ["PySocks>=1.5.6, !=1.5.7"]55use_chardet_on_py3 = ["chardet>=3.0.2,<6"]56test = [57 "pytest-httpbin==2.1.0",58 "pytest-cov",59 "pytest-mock",60 "pytest-xdist",61 "PySocks>=1.5.6, !=1.5.7",62 "pytest>=3"63]6465[tool.setuptools]66license-files = ["LICENSE", "NOTICE"]6768[tool.setuptools.dynamic]69version = {attr = "requests.__version__.__version__"}7071[tool.setuptools.packages.find]72where = ["src"]73Fix CI and build failures (#7190)Nate Prewittbefore adoptionf8bec2f
lines 74–87why, one step back74[tool.ruff]75target-version = "py310"76src = ["src/requests", "tests"]77exclude = ["docs/", "ext/"]7879[tool.ruff.lint]80select = [81 "E", # pycodestyle errors82 "W", # pycodestyle warnings83 "F", # pyflakes84 "I", # isort85 "UP", # pyupgrade86 "T10", # flake8-debugger (replaces debug-statements hook)87]Migrate build system to PEP 517 (#7012)Nate Prewittbefore adoptioncb2c800
lines 88–89why, one step back88# UP036: Remove once Python 3.10 is the minimum supported version89ignore = ["E203", "E501", "UP038", "UP031", "UP036"]Fix CI and build failures (#7190)Nate Prewittbefore adoptionf8bec2f
lines 90–98why, one step back90per-file-ignores = {"src/requests/__init__.py" = ["E402", "F401"], "src/requests/compat.py" = ["E402", "F401"], "tests/compat.py" = ["F401"]}9192[tool.ruff.lint.isort]93known-first-party = ["requests"]9495[tool.ruff.format]96# Use black-compatible formatting97quote-style = "double"98indent-style = "space"Add automatic code formatting to Requests (#6095)Nate Prewittbefore adoption2a6f290
lines 99–100why, one step back99100[tool.pytest.ini_options]enable the warnings plugin (#6416)Thomas Graingerbefore adoption51716c4
line 101why, one step back101addopts = "--doctest-modules"Add automatic code formatting to Requests (#6095)Nate Prewittbefore adoption2a6f290
lines 102–103why, one step back102doctest_optionflags = "NORMALIZE_WHITESPACE ELLIPSIS"103minversion = "6.2"Move to src directory (#6506)Nate Prewittbefore adoptiond63e94f
line 104why, one step back104testpaths = ["tests"]