Skip to content

Commit 078bae6

Browse files
Update conf.py automatically keep copyright date the current year
1 parent 13308d5 commit 078bae6

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

source/conf.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
# https://www.sphinx-doc.org/en/master/usage/configuration.html#project-information
33

44
import os
5+
from datetime import date
56

67
# Some options are only enabled for the main packaging.python.org deployment builds
78
RTD_BUILD = bool(os.getenv("READTHEDOCS"))
@@ -13,7 +14,7 @@
1314

1415
project = "Python Packaging User Guide"
1516

16-
copyright = "2013–2020, PyPA"
17+
copyright = f"2013–{date.today().year}, PyPA"
1718
author = "Python Packaging Authority"
1819

1920
# -- General configuration -------------------------------------------------------------

0 commit comments

Comments
 (0)