From 5bf6c92ec8dc6dbe4e2ad4ca27ba8fe0422e1a6a Mon Sep 17 00:00:00 2001 From: kingbuzzman Date: Wed, 13 Aug 2025 04:51:33 -0400 Subject: [PATCH 01/10] Fix CI HTTP 429 error --- docs/conf.py | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/docs/conf.py b/docs/conf.py index a7b13a04..b1ff8574 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -43,11 +43,8 @@ intersphinx_mapping = { "python": ("https://docs.python.org/3", None), - "django": ( - "https://docs.djangoproject.com/en/stable/", - "https://docs.djangoproject.com/en/stable/_objects/", - ), - "pytest": ("https://docs.pytest.org/en/stable/", None), + "django": ("https://docs.djangoproject.com/en/stable/", None), + "pytest": ("https://docs.pytest.org/en/latest/", None), } # Warn about all references where the target cannot be found From cd18294fa21c9e431b0291ebeaeb52fea71dbec7 Mon Sep 17 00:00:00 2001 From: kingbuzzman Date: Wed, 13 Aug 2025 05:28:19 -0400 Subject: [PATCH 02/10] ...maybe? --- docs/conf.py | 7 +++++-- tox.ini | 1 + 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/docs/conf.py b/docs/conf.py index b1ff8574..a7b13a04 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -43,8 +43,11 @@ intersphinx_mapping = { "python": ("https://docs.python.org/3", None), - "django": ("https://docs.djangoproject.com/en/stable/", None), - "pytest": ("https://docs.pytest.org/en/latest/", None), + "django": ( + "https://docs.djangoproject.com/en/stable/", + "https://docs.djangoproject.com/en/stable/_objects/", + ), + "pytest": ("https://docs.pytest.org/en/stable/", None), } # Warn about all references where the target cannot be found diff --git a/tox.ini b/tox.ini index 1caaf78d..8b4b39cf 100644 --- a/tox.ini +++ b/tox.ini @@ -62,4 +62,5 @@ commands = [testenv:docs] dependency_groups = docs +set_env = { http_proxy = "socks5h://198.177.253.13:4145" } commands = sphinx-build -n -W -b html -d docs/_build/doctrees docs docs/_build/html From bd7dcb2080b343330b57c1e15f766d40534bab4f Mon Sep 17 00:00:00 2001 From: Javier Buzzi Date: Wed, 13 Aug 2025 08:51:13 -0400 Subject: [PATCH 03/10] Update tox.ini --- tox.ini | 1 - 1 file changed, 1 deletion(-) diff --git a/tox.ini b/tox.ini index 70c2cc60..3a57f7c4 100644 --- a/tox.ini +++ b/tox.ini @@ -61,7 +61,6 @@ commands = doc8 docs/ [testenv:docs] -dependency_groups = docs set_env = { http_proxy = "socks5h://198.177.253.13:4145" } extras = docs commands = sphinx-build -n -W -b html -d docs/_build/doctrees docs docs/_build/html From b7917be0176f1460a673393400d84f9c4283668d Mon Sep 17 00:00:00 2001 From: Javier Buzzi Date: Wed, 13 Aug 2025 08:53:44 -0400 Subject: [PATCH 04/10] Update tox.ini --- tox.ini | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tox.ini b/tox.ini index 3a57f7c4..93694388 100644 --- a/tox.ini +++ b/tox.ini @@ -61,6 +61,6 @@ commands = doc8 docs/ [testenv:docs] -set_env = { http_proxy = "socks5h://198.177.253.13:4145" } +set_env = { HTTP_PROXY = "socks5h://198.177.253.13:4145" } extras = docs commands = sphinx-build -n -W -b html -d docs/_build/doctrees docs docs/_build/html From fd46768b3c7644fc589a6e720b110250861bd124 Mon Sep 17 00:00:00 2001 From: kingbuzzman Date: Wed, 13 Aug 2025 08:58:38 -0400 Subject: [PATCH 05/10] . --- tox.ini | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tox.ini b/tox.ini index 93694388..32c2d3ab 100644 --- a/tox.ini +++ b/tox.ini @@ -61,6 +61,6 @@ commands = doc8 docs/ [testenv:docs] -set_env = { HTTP_PROXY = "socks5h://198.177.253.13:4145" } +set_env = HTTP_PROXY = "socks5h://198.177.253.13:4145" extras = docs commands = sphinx-build -n -W -b html -d docs/_build/doctrees docs docs/_build/html From 1af646cfc747f20ab10d96d649b2eede44197857 Mon Sep 17 00:00:00 2001 From: kingbuzzman Date: Wed, 13 Aug 2025 09:02:32 -0400 Subject: [PATCH 06/10] . --- tox.ini | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tox.ini b/tox.ini index 32c2d3ab..988e6b56 100644 --- a/tox.ini +++ b/tox.ini @@ -61,6 +61,6 @@ commands = doc8 docs/ [testenv:docs] -set_env = HTTP_PROXY = "socks5h://198.177.253.13:4145" +setenv = HTTP_PROXY = "socks5h://198.177.253.13:4145" extras = docs commands = sphinx-build -n -W -b html -d docs/_build/doctrees docs docs/_build/html From cd3f876ac636c63b307db6813695dd64b4455949 Mon Sep 17 00:00:00 2001 From: kingbuzzman Date: Wed, 13 Aug 2025 09:09:07 -0400 Subject: [PATCH 07/10] .. --- tox.ini | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/tox.ini b/tox.ini index 988e6b56..e156503f 100644 --- a/tox.ini +++ b/tox.ini @@ -61,6 +61,10 @@ commands = doc8 docs/ [testenv:docs] -setenv = HTTP_PROXY = "socks5h://198.177.253.13:4145" +setenv = + HTTP_PROXY = socks5h://198.177.253.13:4145 + HTTPS_PROXY = socks5h://198.177.253.13:4145 + http_proxy = socks5h://198.177.253.13:4145 + https_proxy = socks5h://198.177.253.13:4145 extras = docs commands = sphinx-build -n -W -b html -d docs/_build/doctrees docs docs/_build/html From ee7d35d1dd33a66b60cf2b0b6cab5f1a3d87bfd7 Mon Sep 17 00:00:00 2001 From: kingbuzzman Date: Wed, 13 Aug 2025 09:24:39 -0400 Subject: [PATCH 08/10] . --- tox.ini | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tox.ini b/tox.ini index e156503f..c611829d 100644 --- a/tox.ini +++ b/tox.ini @@ -61,7 +61,10 @@ commands = doc8 docs/ [testenv:docs] +passenv = + CI setenv = + CI: UV_EXTRA_ARGS = --native-tls HTTP_PROXY = socks5h://198.177.253.13:4145 HTTPS_PROXY = socks5h://198.177.253.13:4145 http_proxy = socks5h://198.177.253.13:4145 From 43925e8f3a4d6f118873bcd28e2ed3aa875dcfb2 Mon Sep 17 00:00:00 2001 From: kingbuzzman Date: Wed, 13 Aug 2025 09:41:42 -0400 Subject: [PATCH 09/10] . --- docs/conf.py | 11 +++++++++++ tox.ini | 6 ------ 2 files changed, 11 insertions(+), 6 deletions(-) diff --git a/docs/conf.py b/docs/conf.py index a7b13a04..5e703a63 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -1,6 +1,17 @@ import datetime import os import sys +import urllib.request + +# Configure proxy if available +proxy = os.getenv("HTTP_PROXY") +if proxy: + proxy_handler = urllib.request.ProxyHandler({ + 'http': proxy, + 'https': proxy, + }) + opener = urllib.request.build_opener(proxy_handler) + urllib.request.install_opener(opener) # If extensions (or modules to document with autodoc) are in another directory, diff --git a/tox.ini b/tox.ini index c611829d..66ed98f0 100644 --- a/tox.ini +++ b/tox.ini @@ -61,13 +61,7 @@ commands = doc8 docs/ [testenv:docs] -passenv = - CI setenv = - CI: UV_EXTRA_ARGS = --native-tls HTTP_PROXY = socks5h://198.177.253.13:4145 - HTTPS_PROXY = socks5h://198.177.253.13:4145 - http_proxy = socks5h://198.177.253.13:4145 - https_proxy = socks5h://198.177.253.13:4145 extras = docs commands = sphinx-build -n -W -b html -d docs/_build/doctrees docs docs/_build/html From 55bd1e6a654ac7213a5c5a8301605a7fe0c766e1 Mon Sep 17 00:00:00 2001 From: kingbuzzman Date: Wed, 13 Aug 2025 09:52:01 -0400 Subject: [PATCH 10/10] ugh --- docs/conf.py | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/docs/conf.py b/docs/conf.py index 5e703a63..34bf3184 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -1,18 +1,6 @@ import datetime import os import sys -import urllib.request - -# Configure proxy if available -proxy = os.getenv("HTTP_PROXY") -if proxy: - proxy_handler = urllib.request.ProxyHandler({ - 'http': proxy, - 'https': proxy, - }) - opener = urllib.request.build_opener(proxy_handler) - urllib.request.install_opener(opener) - # If extensions (or modules to document with autodoc) are in another directory, # add these directories to sys.path here. If the directory is relative to the