Skip to content

Commit

Permalink
Fix cli docs --proxies #2124 (#2125)
Browse files Browse the repository at this point in the history
  • Loading branch information
guyskk authored and Kludex committed Mar 25, 2022
1 parent 43a1c1c commit 02fb7e2
Show file tree
Hide file tree
Showing 2 changed files with 65 additions and 1 deletion.
2 changes: 1 addition & 1 deletion httpx/_main.py
Expand Up @@ -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.",
)

Expand Down
64 changes: 64 additions & 0 deletions 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"] }

0 comments on commit 02fb7e2

Please sign in to comment.