pyproject.toml
This file
Path
pyproject.toml
130 lines · 3.6 KiB · TOML
Last changed by
Use ruff format (#2901)Kar Petrosyanbefore adoption1b7f39e
History of this fileTake it
Update package metadata (#2334)Ofek Levbefore adoption45b7cfa
lines 1–8why, one step back1[build-system]2requires = ["hatchling", "hatch-fancy-pypi-readme"]3build-backend = "hatchling.build"45[project]6name = "httpx"7description = "The next generation HTTP client."8license = "BSD-3-Clause"Drop support for Python 3.7 (#2813)Iurii Plinerbefore adoptionb40c04d
line 9why, one step back9requires-python = ">=3.8"Update package metadata (#2334)Ofek Levbefore adoption45b7cfa
lines 10–25why, one step back10authors = [11 { name = "Tom Christie", email = "tom@tomchristie.com" },12]13classifiers = [14 "Development Status :: 4 - Beta",15 "Environment :: Web Environment",16 "Framework :: AsyncIO",17 "Framework :: Trio",18 "Intended Audience :: Developers",19 "License :: OSI Approved :: BSD License",20 "Operating System :: OS Independent",21 "Programming Language :: Python :: 3",22 "Programming Language :: Python :: 3 :: Only",23 "Programming Language :: Python :: 3.8",24 "Programming Language :: Python :: 3.9",25 "Programming Language :: Python :: 3.10",Test under 3.11-dev (#2302)Jobefore adoption8088fc7
line 26why, one step back26 "Programming Language :: Python :: 3.11",Add support for Python 3.12 (#2854)Hugo van Kemenadebefore adoption7c9db49
line 27why, one step back27 "Programming Language :: Python :: 3.12",Update package metadata (#2334)Ofek Levbefore adoption45b7cfa
lines 28–31why, one step back28 "Topic :: Internet :: WWW/HTTP",29]30dependencies = [31 "certifi",Change extensions type (#2803)Kar Petrosyanbefore adoptionadbcd0e
line 32why, one step back32 "httpcore>=0.18.0,<0.19.0",Drop `rfc3986` requirement. (#2252)Tom Christiebefore adoption57daabf
line 33why, one step back33 "idna",Update package metadata (#2334)Ofek Levbefore adoption45b7cfa
lines 34–45why, one step back34 "sniffio",35]36dynamic = ["readme", "version"]3738[project.optional-dependencies]39brotli = [40 "brotli; platform_python_implementation == 'CPython'",41 "brotlicffi; platform_python_implementation != 'CPython'",42]43cli = [44 "click==8.*",45 "pygments==2.*",Bump rich pin to allow version 13 (#2546)Michał Górnybefore adoption7c53d99
line 46why, one step back46 "rich>=10,<14",Update package metadata (#2334)Ofek Levbefore adoption45b7cfa
lines 47–80why, one step back47]48http2 = [49 "h2>=3,<5",50]51socks = [52 "socksio==1.*",53]5455[project.scripts]56httpx = "httpx:main"5758[project.urls]59Changelog = "https://github.com/encode/httpx/blob/master/CHANGELOG.md"60Documentation = "https://www.python-httpx.org"61Homepage = "https://github.com/encode/httpx"62Source = "https://github.com/encode/httpx"6364[tool.hatch.version]65path = "httpx/__version__.py"6667[tool.hatch.build.targets.sdist]68include = [69 "/httpx",70 "/CHANGELOG.md",71 "/README.md",72]7374[tool.hatch.metadata.hooks.fancy-pypi-readme]75content-type = "text/markdown"7677[[tool.hatch.metadata.hooks.fancy-pypi-readme.fragments]]78path = "README.md"7980[[tool.hatch.metadata.hooks.fancy-pypi-readme.fragments]]PyPI readme: fix screenshot links & trim changelog (#2522)Hynek Schlawackbefore adoptione4438a3
lines 81–83why, one step back81text = "\n## Release Information\n\n"8283[[tool.hatch.metadata.hooks.fancy-pypi-readme.fragments]]Update package metadata (#2334)Ofek Levbefore adoption45b7cfa
line 84why, one step back84path = "CHANGELOG.md"PyPI readme: fix screenshot links & trim changelog (#2522)Hynek Schlawackbefore adoptione4438a3
lines 85–92why, one step back85pattern = "\n(###.+?\n)## "8687[[tool.hatch.metadata.hooks.fancy-pypi-readme.fragments]]88text = "\n---\n\n[Full changelog](https://github.com/encode/httpx/blob/master/CHANGELOG.md)\n"8990[[tool.hatch.metadata.hooks.fancy-pypi-readme.substitutions]]91pattern = 'src="(docs/img/.*?)"'92replacement = 'src="https://raw.githubusercontent.com/encode/httpx/master/\1"'Use ruff instead of flake8, autoflake and isort (#2648)Marcelo Trylesinskibefore adoptiondaec2bd
lines 93–97why, one step back9394# https://beta.ruff.rs/docs/configuration/#using-rufftoml95[tool.ruff]96select = ["E", "F", "I", "B", "PIE"]97ignore = ["B904", "B028"]Use ruff format (#2901)Kar Petrosyanbefore adoption1b7f39e
lines 98–101why, one step back98line-length = 8899100[tool.ruff.pycodestyle]101max-line-length = 120Use ruff instead of flake8, autoflake and isort (#2648)Marcelo Trylesinskibefore adoptiondaec2bd
lines 102–104why, one step back102103[tool.ruff.isort]104combine-as-imports = trueMove configuration of tools to pyproject.toml (#2686)Bartosz Sokorskibefore adoptiondf5dbc0
lines 105–130why, one step back105106[tool.mypy]107ignore_missing_imports = true108strict = true109110[[tool.mypy.overrides]]111module = "tests.*"112disallow_untyped_defs = false113check_untyped_defs = true114115[tool.pytest.ini_options]116addopts = "-rxXs"117filterwarnings = [118 "error",119 "ignore: You seem to already have a custom sys.excepthook handler installed. I'll skip installing Trio's custom handler, but this means MultiErrors will not show full tracebacks.:RuntimeWarning",120 # See: https://github.com/agronholm/anyio/issues/508121 "ignore: trio.MultiError is deprecated since Trio 0.22.0:trio.TrioDeprecationWarning"122]123markers = [124 "copied_from(source, changes=None): mark test as copied from somewhere else, along with a description of changes made to accodomate e.g. our test setup",125 "network: marks tests which require network connection. Used in 3rd-party build environments that have network disabled."126]127128[tool.coverage.run]129omit = ["venv/*", "httpx/_compat.py"]130include = ["httpx/*", "tests/*"]