File tree Expand file tree Collapse file tree 2 files changed +11
-6
lines changed Expand file tree Collapse file tree 2 files changed +11
-6
lines changed Original file line number Diff line number Diff line change 11import datetime
22import os
33import sys
4+ import urllib .request
5+
6+ # Configure proxy if available
7+ proxy = os .getenv ("HTTP_PROXY" )
8+ if proxy :
9+ proxy_handler = urllib .request .ProxyHandler ({
10+ 'http' : proxy ,
11+ 'https' : proxy ,
12+ })
13+ opener = urllib .request .build_opener (proxy_handler )
14+ urllib .request .install_opener (opener )
415
516
617# If extensions (or modules to document with autodoc) are in another directory,
Original file line number Diff line number Diff line change @@ -61,13 +61,7 @@ commands =
6161 doc8 docs/
6262
6363[testenv:docs]
64- passenv =
65- CI
6664setenv =
67- CI: UV_EXTRA_ARGS = --native-tls
6865 HTTP_PROXY = socks5h://198.177.253.13:4145
69- HTTPS_PROXY = socks5h://198.177.253.13:4145
70- http_proxy = socks5h://198.177.253.13:4145
71- https_proxy = socks5h://198.177.253.13:4145
7266extras = docs
7367commands = sphinx-build -n -W -b html -d docs/_build/doctrees docs docs/_build/html
You can’t perform that action at this time.
0 commit comments