Skip to content

Commit e17bc4d

Browse files
conf: update to use end year only
1 parent 078bae6 commit e17bc4d

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

source/conf.py

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

44
import os
5-
from datetime import date
5+
import time
66

77
# Some options are only enabled for the main packaging.python.org deployment builds
88
RTD_BUILD = bool(os.getenv("READTHEDOCS"))
@@ -13,9 +13,9 @@
1313
)
1414

1515
project = "Python Packaging User Guide"
16-
17-
copyright = f"2013–{date.today().year}, PyPA"
1816
author = "Python Packaging Authority"
17+
cur_year = time.strfime("%Y")
18+
copyright = f"{cur_year}, {author}"
1919

2020
# -- General configuration -------------------------------------------------------------
2121
# https://www.sphinx-doc.org/en/master/usage/configuration.html#general-configuration

0 commit comments

Comments
 (0)