From d60d2538474d5a7cb3bf74a1fa5e1556e2d19f69 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ladislav=20Chvasta=C5=A1?= Date: Fri, 1 Nov 2024 12:51:01 +0100 Subject: [PATCH 01/12] update python version to 3.12 --- .pre-commit-config.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 7a3fa1a428a..0c76101e574 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -33,7 +33,7 @@ repos: - id: mypy files: ^(src/|testing/|scripts/) args: [] - language_version: "3.8" + language_version: "3.12" additional_dependencies: - iniconfig>=1.1.0 - attrs>=19.2.0 From 024917a9a2186b0b50131776cca5804bf415ff06 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ladislav=20Chvasta=C5=A1?= Date: Fri, 1 Nov 2024 12:51:24 +0100 Subject: [PATCH 02/12] added name --- AUTHORS | 1 + 1 file changed, 1 insertion(+) diff --git a/AUTHORS b/AUTHORS index 1ee868448d4..fc148e456d4 100644 --- a/AUTHORS +++ b/AUTHORS @@ -245,6 +245,7 @@ Kyle Altendorf Lawrence Mitchell Lee Kamentsky Lev Maximov +Ladislav Chvastas Levon Saldamli Lewis Cowles Llandy Riveron Del Risco From 1cb2f70e79f96bb47c4d216cf639565a3dc0cbc0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ladislav=20Chvasta=C5=A1?= Date: Fri, 1 Nov 2024 13:14:09 +0100 Subject: [PATCH 03/12] latest version of sphinx --- doc/en/requirements.txt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/doc/en/requirements.txt b/doc/en/requirements.txt index ddcb7efb99b..8bd9637204f 100644 --- a/doc/en/requirements.txt +++ b/doc/en/requirements.txt @@ -2,7 +2,8 @@ pluggy>=1.5.0 pygments-pytest>=2.3.0 sphinx-removed-in>=0.2.0 -sphinx>=7 +sphinx>=8.1.3 +sphinx_issues sphinxcontrib-trio sphinxcontrib-svg2pdfconverter furo From 9e5a6a178fc68ca113df7b621667844ab0eb5098 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ladislav=20Chvasta=C5=A1?= Date: Fri, 1 Nov 2024 13:14:44 +0100 Subject: [PATCH 04/12] latest version of sphinx --- tox.ini | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/tox.ini b/tox.ini index 61563ca2c5f..3f95eec03a1 100644 --- a/tox.ini +++ b/tox.ini @@ -126,7 +126,9 @@ description = basepython = python3 usedevelop = True changedir = doc/en -deps = -r{toxinidir}/doc/en/requirements.txt +deps = + -r{toxinidir}/doc/en/requirements.txt + sphinx>=8.1.3 commands = sphinx-build -W -q --keep-going -b linkcheck . _build setenv = @@ -143,7 +145,7 @@ passenv = deps = PyYAML regendoc>=0.8.1 - sphinx + sphinx>=8.1.3 allowlist_externals = make commands = From e7b64e96348fc4ea09c02455ec52f1d357604727 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ladislav=20Chvasta=C5=A1?= Date: Fri, 1 Nov 2024 19:20:09 +0100 Subject: [PATCH 05/12] new configuration --- doc/en/conf.py | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/doc/en/conf.py b/doc/en/conf.py index 9558a75f927..674898631f7 100644 --- a/doc/en/conf.py +++ b/doc/en/conf.py @@ -143,8 +143,23 @@ "http://pythontesting.net/framework/pytest-introduction/", r"https://github.com/pytest-dev/pytest/issues/\d+", r"https://github.com/pytest-dev/pytest/pull/\d+", + r"https://github\.com/sponsors/.*", + r"https://pypi\.org/project/pytest.*", + r"https://github\.com/pytest-dev/pytest/issues/.*", ] -linkcheck_workers = 5 + +# # Exclude documents that are known to cause issues +# linkcheck_exclude_documents = [ +# 'old_versions/*', +# 'deprecated_features/*', +# ] + +linkcheck_workers = 20 +linkcheck_timeout = 30 +linkcheck_retries = 2 +linkcheck_anchors = False +linkcheck_rate_limit_timeout = 2.0 +linkcheck_delay = 2.0 # -- Options for HTML output ---------------------------------------------------------- # https://www.sphinx-doc.org/en/master/usage/configuration.html#options-for-html-output From 029fb157dbc0ade8f1713640e5a2e85047056490 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ladislav=20Chvasta=C5=A1?= Date: Fri, 1 Nov 2024 19:22:24 +0100 Subject: [PATCH 06/12] updated command + alternative --- tox.ini | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/tox.ini b/tox.ini index 3f95eec03a1..e0d55466f4c 100644 --- a/tox.ini +++ b/tox.ini @@ -130,10 +130,14 @@ deps = -r{toxinidir}/doc/en/requirements.txt sphinx>=8.1.3 commands = - sphinx-build -W -q --keep-going -b linkcheck . _build + sphinx-build -W -q --keep-going -b linkcheck -j auto . _build +; /bin/sh -c "sphinx-build -W -q --keep-going -b linkcheck -j auto . _build > linkcheck_output.txt 2>&1" + setenv = # Sphinx is not clean of this warning. PYTHONWARNDEFAULTENCODING= +;allowlist_externals = +; /bin/sh [testenv:regen] description = From 9777e1b1764a941cb8d5c37f7946537af59befb9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ladislav=20Chvasta=C5=A1?= Date: Sat, 2 Nov 2024 13:14:54 +0100 Subject: [PATCH 07/12] removed dead code --- doc/en/conf.py | 6 ------ tox.ini | 4 ---- 2 files changed, 10 deletions(-) diff --git a/doc/en/conf.py b/doc/en/conf.py index 674898631f7..7951370cfb5 100644 --- a/doc/en/conf.py +++ b/doc/en/conf.py @@ -148,12 +148,6 @@ r"https://github\.com/pytest-dev/pytest/issues/.*", ] -# # Exclude documents that are known to cause issues -# linkcheck_exclude_documents = [ -# 'old_versions/*', -# 'deprecated_features/*', -# ] - linkcheck_workers = 20 linkcheck_timeout = 30 linkcheck_retries = 2 diff --git a/tox.ini b/tox.ini index e0d55466f4c..a51cd7de58b 100644 --- a/tox.ini +++ b/tox.ini @@ -131,13 +131,9 @@ deps = sphinx>=8.1.3 commands = sphinx-build -W -q --keep-going -b linkcheck -j auto . _build -; /bin/sh -c "sphinx-build -W -q --keep-going -b linkcheck -j auto . _build > linkcheck_output.txt 2>&1" - setenv = # Sphinx is not clean of this warning. PYTHONWARNDEFAULTENCODING= -;allowlist_externals = -; /bin/sh [testenv:regen] description = From 0bb4166e51d1374eeeda8c24be38861ad73807cc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ladislav=20Chvasta=C5=A1?= Date: Sat, 2 Nov 2024 13:29:57 +0100 Subject: [PATCH 08/12] edited linkcheck_ignore --- doc/en/conf.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/doc/en/conf.py b/doc/en/conf.py index 7951370cfb5..fdc01404d3e 100644 --- a/doc/en/conf.py +++ b/doc/en/conf.py @@ -141,11 +141,10 @@ linkcheck_ignore = [ "https://blogs.msdn.microsoft.com/bharry/2017/06/28/testing-in-a-cloud-delivery-cadence/", "http://pythontesting.net/framework/pytest-introduction/", - r"https://github.com/pytest-dev/pytest/issues/\d+", - r"https://github.com/pytest-dev/pytest/pull/\d+", - r"https://github\.com/sponsors/.*", r"https://pypi\.org/project/pytest.*", + r"https://github\.com/sponsors/.*", r"https://github\.com/pytest-dev/pytest/issues/.*", + r"https://github\.com/pytest-dev/pytest/pull/.*", ] linkcheck_workers = 20 From 3ea3e2fc21541c4a9c9b4718686e397da667f7cb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ladislav=20Chvasta=C5=A1?= Date: Sat, 2 Nov 2024 13:31:38 +0100 Subject: [PATCH 09/12] deleted duplicated deps --- tox.ini | 1 - 1 file changed, 1 deletion(-) diff --git a/tox.ini b/tox.ini index a51cd7de58b..a037c88eb39 100644 --- a/tox.ini +++ b/tox.ini @@ -128,7 +128,6 @@ usedevelop = True changedir = doc/en deps = -r{toxinidir}/doc/en/requirements.txt - sphinx>=8.1.3 commands = sphinx-build -W -q --keep-going -b linkcheck -j auto . _build setenv = From cabba81295175f558c783732fd637c75451d12c4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ladislav=20Chvasta=C5=A1?= Date: Mon, 11 Nov 2024 20:43:13 +0100 Subject: [PATCH 10/12] fix misplaced name --- AUTHORS | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/AUTHORS b/AUTHORS index d2f1442fb57..b34d4e3b5d1 100644 --- a/AUTHORS +++ b/AUTHORS @@ -246,9 +246,9 @@ Kostis Anagnostopoulos Kristoffer Nordström Kyle Altendorf Lawrence Mitchell +Ladislav Chvastas Lee Kamentsky Lev Maximov -Ladislav Chvastas Levon Saldamli Lewis Cowles Llandy Riveron Del Risco From b4655f9575a2c3fe7289fbe9c496cad3828f4333 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ladislav=20Chvasta=C5=A1?= Date: Mon, 11 Nov 2024 21:01:56 +0100 Subject: [PATCH 11/12] fix duplicity --- doc/en/requirements.txt | 1 - 1 file changed, 1 deletion(-) diff --git a/doc/en/requirements.txt b/doc/en/requirements.txt index 8bd9637204f..cd4610c5082 100644 --- a/doc/en/requirements.txt +++ b/doc/en/requirements.txt @@ -3,7 +3,6 @@ pluggy>=1.5.0 pygments-pytest>=2.3.0 sphinx-removed-in>=0.2.0 sphinx>=8.1.3 -sphinx_issues sphinxcontrib-trio sphinxcontrib-svg2pdfconverter furo From 3e48d692e53607eaa389890552f77f7f7aea7446 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ladislav=20Chvasta=C5=A1?= Date: Mon, 11 Nov 2024 21:02:58 +0100 Subject: [PATCH 12/12] fix formatting --- tox.ini | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/tox.ini b/tox.ini index a037c88eb39..f2bbe9a57c8 100644 --- a/tox.ini +++ b/tox.ini @@ -126,8 +126,7 @@ description = basepython = python3 usedevelop = True changedir = doc/en -deps = - -r{toxinidir}/doc/en/requirements.txt +deps = -r{toxinidir}/doc/en/requirements.txt commands = sphinx-build -W -q --keep-going -b linkcheck -j auto . _build setenv =