From 00dd9f4fc190561fd9968cc22b49399a1270b297 Mon Sep 17 00:00:00 2001 From: "C.A.M. Gerlach" Date: Wed, 9 Mar 2022 23:58:40 -0600 Subject: [PATCH 1/4] Infra: Fix non-PEP txt files being included and erroring out the build --- conf.py | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/conf.py b/conf.py index 37e4f7b5bf2..91edf58a42a 100644 --- a/conf.py +++ b/conf.py @@ -26,6 +26,16 @@ # List of patterns (relative to source dir) to ignore when looking for source files. exclude_patterns = [ + # .txt files in subdirs + "**/*.txt", + # .txt files in the root not matching PEP pattern + "*[!0-9].txt", + "*[!0-9]?.txt", + "*[!0-9]??.txt", + "*[!0-9]???.txt", + "*[!p]?????.txt", + "*[!e]??????.txt", + "*[!p]???????.txt", # Windows: "Thumbs.db", ".DS_Store", From a8a5a7929e5219a50d3f405f2587d452728af50b Mon Sep 17 00:00:00 2001 From: "C.A.M. Gerlach" Date: Fri, 11 Mar 2022 00:51:02 -0600 Subject: [PATCH 2/4] Infra: Remove txt exclude patterns that are now unessesary --- conf.py | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/conf.py b/conf.py index 91edf58a42a..2e05b15a0dd 100644 --- a/conf.py +++ b/conf.py @@ -40,19 +40,14 @@ "Thumbs.db", ".DS_Store", # Python: - ".venv", - "venv", - "requirements.txt", + "*env*", # Sphinx: "build", - "output.txt", # Link-check output # PEPs: - "pep-0012", + "pep-0012/*", "README.rst", "CONTRIBUTING.rst", "pep_sphinx_extensions/LICENCE.rst", - # Miscellaneous - ".codespell", ] # -- Options for HTML output ------------------------------------------------- From 866f23041fc2404161d825ad8d529fffafe549d3 Mon Sep 17 00:00:00 2001 From: "C.A.M. Gerlach" Date: Sat, 12 Mar 2022 11:49:52 -0600 Subject: [PATCH 3/4] Infra: Add .git and remove redundant env/venv from exclude_patterns --- conf.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/conf.py b/conf.py index 2e05b15a0dd..6699922c17c 100644 --- a/conf.py +++ b/conf.py @@ -39,8 +39,8 @@ # Windows: "Thumbs.db", ".DS_Store", - # Python: - "*env*", + # Git + ".git", # Sphinx: "build", # PEPs: From 825b2b0c4d987483e67c72082ef4da37386def1e Mon Sep 17 00:00:00 2001 From: "C.A.M. Gerlach" Date: Sat, 12 Mar 2022 12:05:47 -0600 Subject: [PATCH 4/4] Infra: More clearly define, describe and organize exclude patterns --- conf.py | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/conf.py b/conf.py index 6699922c17c..4b508983488 100644 --- a/conf.py +++ b/conf.py @@ -26,9 +26,9 @@ # List of patterns (relative to source dir) to ignore when looking for source files. exclude_patterns = [ - # .txt files in subdirs + # Any .txt files in subdirectories: "**/*.txt", - # .txt files in the root not matching PEP pattern + # Non-PEP .txt files in the root (i.e. not "pep-[0-9][0-9][0-9][0-9].txt"): "*[!0-9].txt", "*[!0-9]?.txt", "*[!0-9]??.txt", @@ -36,18 +36,18 @@ "*[!p]?????.txt", "*[!e]??????.txt", "*[!p]???????.txt", - # Windows: - "Thumbs.db", - ".DS_Store", # Git ".git", + # Python + "*env*", # Sphinx: "build", - # PEPs: - "pep-0012/*", + # Meta files: "README.rst", "CONTRIBUTING.rst", "pep_sphinx_extensions/LICENCE.rst", + # Non-built files: + "pep-0012/pep-NNNN.rst", ] # -- Options for HTML output -------------------------------------------------