File: reproducible-docs.patch

package info (click to toggle)
twisted 25.5.0-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 20,460 kB
  • sloc: python: 203,167; makefile: 200; sh: 92; javascript: 36; xml: 31
file content (38 lines) | stat: -rw-r--r-- 1,028 bytes parent folder | download | duplicates (2)
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
37
38
From: Stefano Rivera <stefanor@debian.org>
Date: Sun, 24 Dec 2023 19:24:32 -0400
Subject: Don't embed date in documentation

Build reproducibly, we don't need the date.

Bug-Debian: https://bugs.debian.org/1034499
---
 docs/conf.py | 6 +-----
 1 file changed, 1 insertion(+), 5 deletions(-)

diff --git a/docs/conf.py b/docs/conf.py
index eb9aa7d..d3a47fe 100644
--- a/docs/conf.py
+++ b/docs/conf.py
@@ -15,7 +15,6 @@ import os
 import pathlib
 import subprocess
 import sys
-from datetime import date
 from pprint import pprint
 
 import sphinx_rtd_theme
@@ -55,13 +54,10 @@ source_suffix = ".rst"
 # The master toctree document.
 master_doc = "index"
 
-_today = date.today()
 # General information about the project.
 project = "Twisted"
-copyright = "{}, Twisted Matrix Labs. Ver {}. Built on {}".format(
-    _today.year,
+copyright = "Twisted Matrix Labs. Ver {}.".format(
     twisted_version_object.public(),
-    _today.isoformat(),
 )
 
 # The version info for the project you're documenting, acts as replacement for