Debian Codegraph @

debian/patches/0004-Sort-help-args-to-make-them-reproducible.patch

raw
1 From: Jochen Sprickerhof <[email protected]>
2 Date: Sat, 25 Jul 2026 13:07:48 +0200
3 Subject: Sort help args to make them reproducible
4
5 get_help_option_names() uses a set which is not ordered.
6 The return value is used by mkdocs-click making the
7 mkdocs-doc package in Debian not reproducible:
8
9 https://reproduce.debian.net/all/unstable.html#mkdocs-doc
10 ---
11 src/click/core.py | 2 +-
12 1 file changed, 1 insertion(+), 1 deletion(-)
13
14 diff --git a/src/click/core.py b/src/click/core.py
15 index d940dd8..552641c 100644
16 --- a/src/click/core.py
17 +++ b/src/click/core.py
18 @@ -1078,7 +1078,7 @@ class Command:
19 for param in self.params:
20 all_names.difference_update(param.opts)
21 all_names.difference_update(param.secondary_opts)
22 - return list(all_names)
23 + return sorted(all_names)
24
25 def get_help_option(self, ctx: Context) -> Option | None:
26 """Returns the help option object.