pyproject.toml
This file
Path
pyproject.toml
128 lines · 3.5 KiB · TOML
Last changed by
Ruff linter: Use the default line-length (#2922)T-256before adoptionfd60b18
History of this fileTake it
The walk stopped after 200 commits: lines older than 0eb97fc point at it.
Use wsgi types from typeshed (#2478)Michael Oliverbefore adoption0eb97fc
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"Use wsgi types from typeshed (#2478)Michael Oliverbefore adoption0eb97fc
lines 10–26why, 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",26 "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",Use wsgi types from typeshed (#2478)Michael Oliverbefore adoption0eb97fc
lines 28–31why, one step back28 "Topic :: Internet :: WWW/HTTP",29]30dependencies = [31 "certifi",📌 pin httpcore==1.* (#2937)Wenceslas Sanchezbefore adoption89cbd3c
line 32why, one step back32 "httpcore==1.*",Support newer versions of httpcore (#2885)Paul Schreiberbefore adoption280a89a
line 33why, one step back33 "anyio",Drop `rfc3986` requirement. (#2252)Tom Christiebefore adoption57daabf
line 34why, one step back34 "idna",Use wsgi types from typeshed (#2478)Michael Oliverbefore adoption0eb97fc
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",Use wsgi types from typeshed (#2478)Michael Oliverbefore adoption0eb97fc
lines 48–72why, 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",Add tests and requirements.txt to sdist (#2927)Marcel Telkabefore adoption497b315
line 73why, one step back73 "/tests",Use wsgi types from typeshed (#2478)Michael Oliverbefore adoption0eb97fc
lines 74–82why, one step back74]7576[tool.hatch.metadata.hooks.fancy-pypi-readme]77content-type = "text/markdown"7879[[tool.hatch.metadata.hooks.fancy-pypi-readme.fragments]]80path = "README.md"8182[[tool.hatch.metadata.hooks.fancy-pypi-readme.fragments]]PyPI readme: fix screenshot links & trim changelog (#2522)Hynek Schlawackbefore adoptione4438a3
lines 83–85why, one step back83text = "\n## Release Information\n\n"8485[[tool.hatch.metadata.hooks.fancy-pypi-readme.fragments]]Use wsgi types from typeshed (#2478)Michael Oliverbefore adoption0eb97fc
line 86why, one step back86path = "CHANGELOG.md"PyPI readme: fix screenshot links & trim changelog (#2522)Hynek Schlawackbefore adoptione4438a3
lines 87–94why, one step back87pattern = "\n(###.+?\n)## "8889[[tool.hatch.metadata.hooks.fancy-pypi-readme.fragments]]90text = "\n---\n\n[Full changelog](https://github.com/encode/httpx/blob/master/CHANGELOG.md)\n"9192[[tool.hatch.metadata.hooks.fancy-pypi-readme.substitutions]]93pattern = 'src="(docs/img/.*?)"'94replacement = 'src="https://raw.githubusercontent.com/encode/httpx/master/\1"'Use ruff instead of flake8, autoflake and isort (#2648)Marcelo Trylesinskibefore adoptiondaec2bd
lines 95–102why, one step back9596# https://beta.ruff.rs/docs/configuration/#using-rufftoml97[tool.ruff]98select = ["E", "F", "I", "B", "PIE"]99ignore = ["B904", "B028"]100101[tool.ruff.isort]102combine-as-imports = trueMove configuration of tools to pyproject.toml (#2686)Bartosz Sokorskibefore adoptiondf5dbc0
lines 103–128why, one step back103104[tool.mypy]105ignore_missing_imports = true106strict = true107108[[tool.mypy.overrides]]109module = "tests.*"110disallow_untyped_defs = false111check_untyped_defs = true112113[tool.pytest.ini_options]114addopts = "-rxXs"115filterwarnings = [116 "error",117 "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",118 # See: https://github.com/agronholm/anyio/issues/508119 "ignore: trio.MultiError is deprecated since Trio 0.22.0:trio.TrioDeprecationWarning"120]121markers = [122 "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",123 "network: marks tests which require network connection. Used in 3rd-party build environments that have network disabled."124]125126[tool.coverage.run]127omit = ["venv/*", "httpx/_compat.py"]128include = ["httpx/*", "tests/*"]