File: PATCH-Make-the-documentation-build-reproducibly.patch

package info (click to toggle)
flask 3.1.0-2
  • links: PTS, VCS
  • area: main
  • in suites: sid, trixie
  • size: 2,376 kB
  • sloc: python: 10,075; makefile: 32; sql: 22; sh: 19
file content (36 lines) | stat: -rw-r--r-- 1,155 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
From: Chris Lamb <lamby@debian.org>
Date: Mon, 28 Oct 2019 09:13:37 +0000
Subject: [PATCH] Make the documentation build reproducibly

From 3ddf7fd2c2b4108a55213c791bd80981bd1f90f5 Mon Sep 17 00:00:00 2001
Origin: https://github.com/pallets/flask/pull/3408/commits/3ddf7fd2c2b4108a55213c791bd80981bd1f90f5

Whilst working on the Reproducible Builds effort [0] we noticed that
flask could not be built reproducibly.

This is because it includes an absolute build directory in the
documentation as the "json_module" attribute points to a Python class/
module which has a string representation including its path.

This commit skips this (inherited) member from the documentation.

(This was originally filed in Debian as #943674 [1].)

 [0] https://reproducible-builds.org/
 [1] https://bugs.debian.org/943674
---
 docs/api.rst | 1 +
 1 file changed, 1 insertion(+)

diff --git a/docs/api.rst b/docs/api.rst
index 1aa8048..ccbbef9 100644
--- a/docs/api.rst
+++ b/docs/api.rst
@@ -22,6 +22,7 @@ Blueprint Objects
 .. autoclass:: Blueprint
    :members:
    :inherited-members:
+   :exclude-members: json_module
 
 Incoming Request Data
 ---------------------