Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 20f0f76

Browse files
committed
Fix copyright date with SOURCE_DATE_EPOCH set
When `SOURCE_DATE_EPOCH` is set, then Sphinx will attempt to 'fix' the year in the copyright: sphinx-doc/sphinx#3451 (comment) We already correctly understand that envvar, so this is unexpected and wrong. Sphinx looks for a 4-digit year followed by a space or two 4-digit years separated by a dash. We can fix this by using an en-dash, which is the correct typographical symbol for date ranges anyway, and thwarts Sphinx. Fixes #20854
1 parent e73b1be commit 20f0f76

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

doc/conf.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -230,9 +230,9 @@ def _check_dependencies():
230230

231231
project = 'Matplotlib'
232232
copyright = (
233-
'2002 - 2012 John Hunter, Darren Dale, Eric Firing, Michael Droettboom '
233+
'20022012 John Hunter, Darren Dale, Eric Firing, Michael Droettboom '
234234
'and the Matplotlib development team; '
235-
f'2012 - {sourceyear} The Matplotlib development team'
235+
f'2012{sourceyear} The Matplotlib development team'
236236
)
237237

238238

0 commit comments

Comments
 (0)