From 02fb7e2950ff145789fedf4a4e7b10b25d10f2a0 Mon Sep 17 00:00:00 2001 From: kk Date: Tue, 15 Mar 2022 00:51:39 +0800 Subject: [PATCH] Fix cli docs --proxies #2124 (#2125) --- httpx/_main.py | 2 +- pyproject.toml | 64 ++++++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 65 insertions(+), 1 deletion(-) create mode 100644 pyproject.toml diff --git a/httpx/_main.py b/httpx/_main.py index 7bd6b90846..ebcb65214f 100644 --- a/httpx/_main.py +++ b/httpx/_main.py @@ -69,7 +69,7 @@ def print_help() -> None: ) table.add_row( - "--proxy [cyan]URL", + "--proxies [cyan]URL", "Send the request via a proxy. Should be the URL giving the proxy address.", ) diff --git a/pyproject.toml b/pyproject.toml new file mode 100644 index 0000000000..10a96845c5 --- /dev/null +++ b/pyproject.toml @@ -0,0 +1,64 @@ +[build-system] +requires = ["setuptools", "setuptools-scm"] +build-backend = "setuptools.build_meta" + +[project] +name = "httpx" +description = "The next generation HTTP client." +authors = [{ name = "Tom Christie", email = "tom@tomchristie.com" }] +license = { text = "BSD 3-Clause License" } +requires-python = ">=3.6" +dependencies = [ + "certifi", + "charset_normalizer", + "sniffio", + "rfc3986[idna2008]>=1.3,<2", + "httpcore>=0.14.5,<0.15.0", + "async_generator; python_version < '3.7'", +] +classifiers = [ + "Development Status :: 4 - Beta", + "Environment :: Web Environment", + "Intended Audience :: Developers", + "License :: OSI Approved :: BSD License", + "Operating System :: OS Independent", + "Topic :: Internet :: WWW/HTTP", + "Framework :: AsyncIO", + "Framework :: Trio", + "Programming Language :: Python :: 3", + "Programming Language :: Python :: 3.6", + "Programming Language :: Python :: 3.7", + "Programming Language :: Python :: 3.8", + "Programming Language :: Python :: 3.9", + "Programming Language :: Python :: 3.10", + "Programming Language :: Python :: 3 :: Only", +] +dynamic = ["version", "readme"] + +[tool.setuptools] +license-files = ["LICENSE.md"] +package-data = { "httpx" = ["py.typed"] } +include-package-data = true +zip-safe = false + +[project.optional-dependencies] +http2 = ["h2>=3,<5"] +socks = ["socksio==1.*"] +brotli = [ + "brotli; platform_python_implementation == 'CPython'", + "brotlicffi; platform_python_implementation != 'CPython'", +] +cli = ["click==8.*", "rich>=10,<12", "pygments==2.*"] + +[project.urls] +Homepage = "https://www.python-httpx.org" +Changelog = "https://github.com/encode/httpx/blob/master/CHANGELOG.md" +Documentation = "https://www.python-httpx.org" +Source = "https://github.com/encode/httpx" + +[project.scripts] +httpx = "httpx:main" + +[tool.setuptools.dynamic] +version = { attr = "httpx.__version__.__version__" } +readme = { file = ["README.md", "CHANGELOG.md"] }