File: sphinx-autodoc-defaults.patch

package info (click to toggle)
pathos 0.3.4-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 812 kB
  • sloc: python: 4,502; sh: 38; makefile: 33
file content (17 lines) | stat: -rw-r--r-- 667 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
From: James Addison <jay@jp-hosting.net>
Date: Sun, Mar 10 2024 23:50:38 +0000
Subject: enable Sphinx autodoc preservation of method-argument defaults
 .
 This avoids build host information such as CPU core count from inadvertently
 leaking into the packaged documentation.
Bug-Debian: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1066014
---
diff --git a/docs/source/conf.py b/docs/source/conf.py
index aae8edf..39b5e71 100644
--- a/docs/source/conf.py
+++ b/docs/source/conf.py
@@ -260,3 +260,4 @@ intersphinx_mapping = {
 #   'pyina': ('https://pyina.readthedocs.io/en/latest/', None),
 }
 
+autodoc_preserve_defaults = True  # http://bugs.debian.org/1066014