File tree Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Original file line number Diff line number Diff line change 16
16
# documentation root, use os.path.abspath to make it absolute, like shown here.
17
17
#
18
18
import os
19
+ from datetime import datetime
19
20
# import sys
20
21
# sys.path.insert(0, os.path.abspath('.'))
21
22
48
49
49
50
# General information about the project.
50
51
project = 'NumPy Enhancement Proposals'
51
- copyright = '2017-2018, NumPy Developers'
52
+ year = datetime .now ().year
53
+ copyright = f'2017-{ year } , NumPy Developers'
52
54
author = 'NumPy Developers'
53
55
title = 'NumPy Enhancement Proposals Documentation'
54
56
Original file line number Diff line number Diff line change 4
4
import importlib
5
5
from docutils import nodes
6
6
from docutils .parsers .rst import Directive
7
+ from datetime import datetime
7
8
8
9
# Minimum version, enforced by sphinx
9
10
needs_sphinx = '4.3'
@@ -107,7 +108,8 @@ class PyTypeObject(ctypes.Structure):
107
108
108
109
# General substitutions.
109
110
project = 'NumPy'
110
- copyright = '2008-2024, NumPy Developers'
111
+ year = datetime .now ().year
112
+ copyright = f'2008-{ year } , NumPy Developers'
111
113
112
114
# The default replacements for |version| and |release|, also used in various
113
115
# other places throughout the built documents.
You can’t perform that action at this time.
0 commit comments