pyproject.toml
This file
Path
pyproject.toml
131 lines · 3.6 KiB · TOML
Last changed by
Support newer versions of httpcore (#2885)Paul Schreiberbefore adoption280a89a
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",Support newer versions of httpcore (#2885)Paul Schreiberbefore adoption280a89a
lines 32–33why, one step back32 "httpcore",33 "anyio",Drop `rfc3986` requirement. (#2252)Tom Christiebefore adoption57daabf
line 34why, one step back34 "idna",Update package metadata (#2334)Ofek Levbefore adoption45b7cfa
lines 35–46why, one step back35 "sniffio",36]37dynamic = ["readme", "version"]3839[project.optional-dependencies]40brotli = [41 "brotli; platform_python_implementation == 'CPython'",42 "brotlicffi; platform_python_implementation != 'CPython'",43]44cli = [45 "click==8.*",46 "pygments==2.*",Bump rich pin to allow version 13 (#2546)Michał Górnybefore adoption7c53d99
line 47why, one step back47 "rich>=10,<14",Update package metadata (#2334)Ofek Levbefore adoption45b7cfa
lines 48–81why, one step back48]49http2 = [50 "h2>=3,<5",51]52socks = [53 "socksio==1.*",54]5556[project.scripts]57httpx = "httpx:main"5859[project.urls]60Changelog = "https://github.com/encode/httpx/blob/master/CHANGELOG.md"61Documentation = "https://www.python-httpx.org"62Homepage = "https://github.com/encode/httpx"63Source = "https://github.com/encode/httpx"6465[tool.hatch.version]66path = "httpx/__version__.py"6768[tool.hatch.build.targets.sdist]69include = [70 "/httpx",71 "/CHANGELOG.md",72 "/README.md",73]7475[tool.hatch.metadata.hooks.fancy-pypi-readme]76content-type = "text/markdown"7778[[tool.hatch.metadata.hooks.fancy-pypi-readme.fragments]]79path = "README.md"8081[[tool.hatch.metadata.hooks.fancy-pypi-readme.fragments]]PyPI readme: fix screenshot links & trim changelog (#2522)Hynek Schlawackbefore adoptione4438a3
lines 82–84why, one step back82text = "\n## Release Information\n\n"8384[[tool.hatch.metadata.hooks.fancy-pypi-readme.fragments]]Update package metadata (#2334)Ofek Levbefore adoption45b7cfa
line 85why, one step back85path = "CHANGELOG.md"PyPI readme: fix screenshot links & trim changelog (#2522)Hynek Schlawackbefore adoptione4438a3
lines 86–93why, one step back86pattern = "\n(###.+?\n)## "8788[[tool.hatch.metadata.hooks.fancy-pypi-readme.fragments]]89text = "\n---\n\n[Full changelog](https://github.com/encode/httpx/blob/master/CHANGELOG.md)\n"9091[[tool.hatch.metadata.hooks.fancy-pypi-readme.substitutions]]92pattern = 'src="(docs/img/.*?)"'93replacement = 'src="https://raw.githubusercontent.com/encode/httpx/master/\1"'Use ruff instead of flake8, autoflake and isort (#2648)Marcelo Trylesinskibefore adoptiondaec2bd
lines 94–98why, one step back9495# https://beta.ruff.rs/docs/configuration/#using-rufftoml96[tool.ruff]97select = ["E", "F", "I", "B", "PIE"]98ignore = ["B904", "B028"]Use ruff format (#2901)Kar Petrosyanbefore adoption1b7f39e
lines 99–102why, one step back99line-length = 88100101[tool.ruff.pycodestyle]102max-line-length = 120Use ruff instead of flake8, autoflake and isort (#2648)Marcelo Trylesinskibefore adoptiondaec2bd
lines 103–105why, one step back103104[tool.ruff.isort]105combine-as-imports = trueMove configuration of tools to pyproject.toml (#2686)Bartosz Sokorskibefore adoptiondf5dbc0
lines 106–131why, one step back106107[tool.mypy]108ignore_missing_imports = true109strict = true110111[[tool.mypy.overrides]]112module = "tests.*"113disallow_untyped_defs = false114check_untyped_defs = true115116[tool.pytest.ini_options]117addopts = "-rxXs"118filterwarnings = [119 "error",120 "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",121 # See: https://github.com/agronholm/anyio/issues/508122 "ignore: trio.MultiError is deprecated since Trio 0.22.0:trio.TrioDeprecationWarning"123]124markers = [125 "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",126 "network: marks tests which require network connection. Used in 3rd-party build environments that have network disabled."127]128129[tool.coverage.run]130omit = ["venv/*", "httpx/_compat.py"]131include = ["httpx/*", "tests/*"]