jenkins-core-weekly: update to 2.491
[oi-userland.git] / components / python / httpx / patches / 05-pip-install.patch
blob44a4723420a3727b5e31a11910014fafb6007236
1 --- httpx-0.27.2/httpx/_transports/default.py.orig
2 +++ httpx-0.27.2/httpx/_transports/default.py
3 @@ -177,7 +177,7 @@
4 except ImportError: # pragma: no cover
5 raise ImportError(
6 "Using SOCKS proxy, but the 'socksio' package is not installed. "
7 - "Make sure to install httpx using `pip install httpx[socks]`."
8 + "Please install 'socksio' using `pkg install library/python/socksio`."
9 ) from None
11 self._pool = httpcore.SOCKSProxy(
12 @@ -318,7 +318,7 @@
13 except ImportError: # pragma: no cover
14 raise ImportError(
15 "Using SOCKS proxy, but the 'socksio' package is not installed. "
16 - "Make sure to install httpx using `pip install httpx[socks]`."
17 + "Please install 'socksio' using `pkg install library/python/socksio`."
18 ) from None
20 self._pool = httpcore.AsyncSOCKSProxy(
21 --- httpx-0.27.2/httpx/_client.py.orig
22 +++ httpx-0.27.2/httpx/_client.py
23 @@ -670,7 +670,7 @@
24 except ImportError: # pragma: no cover
25 raise ImportError(
26 "Using http2=True, but the 'h2' package is not installed. "
27 - "Make sure to install httpx using `pip install httpx[http2]`."
28 + "Please install 'h2' using `pkg install library/python/h2`."
29 ) from None
31 if proxies:
32 @@ -1417,7 +1417,7 @@
33 except ImportError: # pragma: no cover
34 raise ImportError(
35 "Using http2=True, but the 'h2' package is not installed. "
36 - "Make sure to install httpx using `pip install httpx[http2]`."
37 + "Please install 'h2' using `pkg install library/python/h2`."
38 ) from None
40 if proxies:
41 --- httpx-0.27.2/httpx/__init__.py.orig
42 +++ httpx-0.27.2/httpx/__init__.py
43 @@ -21,7 +21,8 @@
44 print(
45 "The httpx command line client could not run because the required "
46 "dependencies were not installed.\nMake sure you've installed "
47 - "everything with: pip install 'httpx[cli]'"
48 + "everything with: pkg install library/python/click "
49 + "library/python/pygments library/python/rich"
51 sys.exit(1)
53 --- httpx-0.27.2/httpx/_decoders.py.orig
54 +++ httpx-0.27.2/httpx/_decoders.py
55 @@ -100,9 +100,9 @@
56 def __init__(self) -> None:
57 if brotli is None: # pragma: no cover
58 raise ImportError(
59 - "Using 'BrotliDecoder', but neither of the 'brotlicffi' or 'brotli' "
60 - "packages have been installed. "
61 - "Make sure to install httpx using `pip install httpx[brotli]`."
62 + "Using 'BrotliDecoder', but no 'brotli' "
63 + "package has been installed. "
64 + "Make sure to install 'brotli' using `pkg install library/python/brotli`."
65 ) from None
67 self.decompressor = brotli.Decompressor()