Skip to content
Myr

pyproject.toml

This file

Path

pyproject.toml

126 lines · 3.5 KiB · TOML

Last changed by

Drop support for Python 3.7 (#2813)Iurii Plinerbefore adoptionb40c04d

History of this file

Take it

Update package metadata (#2334)Ofek Levbefore adoption45b7cfa

lines 1–8why, one step back
1[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 back
9requires-python = ">=3.8"

Update package metadata (#2334)Ofek Levbefore adoption45b7cfa

lines 10–25why, one step back
10authors = [
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 back
26 "Programming Language :: Python :: 3.11",

Update package metadata (#2334)Ofek Levbefore adoption45b7cfa

lines 27–30why, one step back
27 "Topic :: Internet :: WWW/HTTP",
28]29dependencies = [30 "certifi",

Add `socket_options` argument to `httpx.HTTPTransport` class (#2716)Karen Petrosyanbefore adoption7335950

line 31why, one step back
31 "httpcore>=0.17.2,<0.18.0",

Drop `rfc3986` requirement. (#2252)Tom Christiebefore adoption57daabf

line 32why, one step back
32 "idna",

Update package metadata (#2334)Ofek Levbefore adoption45b7cfa

lines 33–44why, one step back
33 "sniffio",
34]35dynamic = ["readme", "version"]3637[project.optional-dependencies]38brotli = [39 "brotli; platform_python_implementation == 'CPython'",40 "brotlicffi; platform_python_implementation != 'CPython'",41]42cli = [43 "click==8.*",44 "pygments==2.*",

Bump rich pin to allow version 13 (#2546)Michał Górnybefore adoption7c53d99

line 45why, one step back
45 "rich>=10,<14",

Update package metadata (#2334)Ofek Levbefore adoption45b7cfa

lines 46–79why, one step back
46]
47http2 = [48 "h2>=3,<5",49]50socks = [51 "socksio==1.*",52]5354[project.scripts]55httpx = "httpx:main"5657[project.urls]58Changelog = "https://github.com/encode/httpx/blob/master/CHANGELOG.md"59Documentation = "https://www.python-httpx.org"60Homepage = "https://github.com/encode/httpx"61Source = "https://github.com/encode/httpx"6263[tool.hatch.version]64path = "httpx/__version__.py"6566[tool.hatch.build.targets.sdist]67include = [68 "/httpx",69 "/CHANGELOG.md",70 "/README.md",71]7273[tool.hatch.metadata.hooks.fancy-pypi-readme]74content-type = "text/markdown"7576[[tool.hatch.metadata.hooks.fancy-pypi-readme.fragments]]77path = "README.md"7879[[tool.hatch.metadata.hooks.fancy-pypi-readme.fragments]]

PyPI readme: fix screenshot links & trim changelog (#2522)Hynek Schlawackbefore adoptione4438a3

lines 80–82why, one step back
80text = "\n## Release Information\n\n"
8182[[tool.hatch.metadata.hooks.fancy-pypi-readme.fragments]]

Update package metadata (#2334)Ofek Levbefore adoption45b7cfa

line 83why, one step back
83path = "CHANGELOG.md"

PyPI readme: fix screenshot links & trim changelog (#2522)Hynek Schlawackbefore adoptione4438a3

lines 84–91why, one step back
84pattern = "\n(###.+?\n)## "
8586[[tool.hatch.metadata.hooks.fancy-pypi-readme.fragments]]87text = "\n---\n\n[Full changelog](https://github.com/encode/httpx/blob/master/CHANGELOG.md)\n"8889[[tool.hatch.metadata.hooks.fancy-pypi-readme.substitutions]]90pattern = 'src="(docs/img/.*?)"'91replacement = 'src="https://raw.githubusercontent.com/encode/httpx/master/\1"'

Use ruff instead of flake8, autoflake and isort (#2648)Marcelo Trylesinskibefore adoptiondaec2bd

lines 92–100why, one step back
92
93# https://beta.ruff.rs/docs/configuration/#using-rufftoml94[tool.ruff]95select = ["E", "F", "I", "B", "PIE"]96ignore = ["B904", "B028"]97line-length = 1209899[tool.ruff.isort]100combine-as-imports = true

Move configuration of tools to pyproject.toml (#2686)Bartosz Sokorskibefore adoptiondf5dbc0

lines 101–126why, one step back
101
102[tool.mypy]103ignore_missing_imports = true104strict = true105106[[tool.mypy.overrides]]107module = "tests.*"108disallow_untyped_defs = false109check_untyped_defs = true110111[tool.pytest.ini_options]112addopts = "-rxXs"113filterwarnings = [114 "error",115 "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",116 # See: https://github.com/agronholm/anyio/issues/508117 "ignore: trio.MultiError is deprecated since Trio 0.22.0:trio.TrioDeprecationWarning"118]119markers = [120 "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",121 "network: marks tests which require network connection. Used in 3rd-party build environments that have network disabled."122]123124[tool.coverage.run]125omit = ["venv/*", "httpx/_compat.py"]126include = ["httpx/*", "tests/*"]