* [PATCH 0/2] Two small cleanups to maintainers_include
@ 2026-05-16 17:33 Mauro Carvalho Chehab
2026-05-16 17:33 ` [PATCH 1/2] docs: maintainers_include: restore compatibility with Python 3.6 Mauro Carvalho Chehab
2026-05-16 17:33 ` [PATCH 2/2] docs: maintainers_include: keep the last entry at the end Mauro Carvalho Chehab
0 siblings, 2 replies; 3+ messages in thread
From: Mauro Carvalho Chehab @ 2026-05-16 17:33 UTC (permalink / raw)
To: Jonathan Corbet, Mauro Carvalho Chehab
Cc: Mauro Carvalho Chehab, linux-doc, linux-kernel, Shuah Khan
Hi Jon,
This series contain two minor cleanups to maintainers_include.py:
- make it backward compatible with Python < 3.10
(according with vermin, it should now be backward-compat up
to 3.6)
- keep "THE REST" at the end.
Mauro Carvalho Chehab (2):
docs: maintainers_include: restore compatibility with Python 3.6
docs: maintainers_include: keep the last entry at the end
Documentation/sphinx/maintainers_include.py | 9 +++++++--
1 file changed, 7 insertions(+), 2 deletions(-)
--
2.54.0
^ permalink raw reply [flat|nested] 3+ messages in thread
* [PATCH 1/2] docs: maintainers_include: restore compatibility with Python 3.6
2026-05-16 17:33 [PATCH 0/2] Two small cleanups to maintainers_include Mauro Carvalho Chehab
@ 2026-05-16 17:33 ` Mauro Carvalho Chehab
2026-05-16 17:33 ` [PATCH 2/2] docs: maintainers_include: keep the last entry at the end Mauro Carvalho Chehab
1 sibling, 0 replies; 3+ messages in thread
From: Mauro Carvalho Chehab @ 2026-05-16 17:33 UTC (permalink / raw)
To: Jonathan Corbet, Linux Doc Mailing List, Mauro Carvalho Chehab
Cc: Mauro Carvalho Chehab, linux-kernel, Shuah Khan
glob root_dir parameter requires Python 3.10, which is more than
our current Python minimal requirement.
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
---
Documentation/sphinx/maintainers_include.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/Documentation/sphinx/maintainers_include.py b/Documentation/sphinx/maintainers_include.py
index be8e566e0363..b8b7282ebe38 100755
--- a/Documentation/sphinx/maintainers_include.py
+++ b/Documentation/sphinx/maintainers_include.py
@@ -143,7 +143,7 @@ class MaintainersParser:
if not m:
return None
- doc_list = glob(m.group(1), root_dir=self.base_dir)
+ doc_list = glob(os.path.join(self.base_dir, m.group(1)))
else:
doc_list = [text]
--
2.54.0
^ permalink raw reply related [flat|nested] 3+ messages in thread
* [PATCH 2/2] docs: maintainers_include: keep the last entry at the end
2026-05-16 17:33 [PATCH 0/2] Two small cleanups to maintainers_include Mauro Carvalho Chehab
2026-05-16 17:33 ` [PATCH 1/2] docs: maintainers_include: restore compatibility with Python 3.6 Mauro Carvalho Chehab
@ 2026-05-16 17:33 ` Mauro Carvalho Chehab
1 sibling, 0 replies; 3+ messages in thread
From: Mauro Carvalho Chehab @ 2026-05-16 17:33 UTC (permalink / raw)
To: Jonathan Corbet, Linux Doc Mailing List, Mauro Carvalho Chehab
Cc: Mauro Carvalho Chehab, linux-kernel, Shuah Khan
The last maintainer's entry ("THE REST") is meant to be at the
end. Ensure that.
While here, use a case-insensitive sort to avoid placing "iSCSI"
near the end.
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
---
Documentation/sphinx/maintainers_include.py | 7 ++++++-
1 file changed, 6 insertions(+), 1 deletion(-)
diff --git a/Documentation/sphinx/maintainers_include.py b/Documentation/sphinx/maintainers_include.py
index b8b7282ebe38..dc9f9e188ffa 100755
--- a/Documentation/sphinx/maintainers_include.py
+++ b/Documentation/sphinx/maintainers_include.py
@@ -284,7 +284,12 @@ class MaintainersInclude(Include):
self.state.document['maintainers_included'] = True
- for name, fields in sorted(maint_parser.maint_entries.items()):
+ # Keep the last entry ("THE REST") in the end
+ entries = list(maint_parser.maint_entries.keys())
+ entries = sorted(entries[:-1], key=str.casefold) + [entries[-1]]
+
+ for name in entries:
+ fields = maint_parser.maint_entries[name]
output += f" * - {name}\n"
tag = "-"
for field, lines in fields.items():
--
2.54.0
^ permalink raw reply related [flat|nested] 3+ messages in thread
end of thread, other threads:[~2026-05-16 17:33 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-05-16 17:33 [PATCH 0/2] Two small cleanups to maintainers_include Mauro Carvalho Chehab
2026-05-16 17:33 ` [PATCH 1/2] docs: maintainers_include: restore compatibility with Python 3.6 Mauro Carvalho Chehab
2026-05-16 17:33 ` [PATCH 2/2] docs: maintainers_include: keep the last entry at the end Mauro Carvalho Chehab
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox