From 0d8e533268aad967e9ede208cccd0c0149fffd4e Mon Sep 17 00:00:00 2001 From: "mergify[bot]" <37929162+mergify[bot]@users.noreply.github.com> Date: Tue, 9 Aug 2022 21:28:29 -0400 Subject: [PATCH] Automatically set docs current year (#404) (#405) (cherry picked from commit 0cc3501c8d84a05b2d26faca58f99620bd6ea3b8) Co-authored-by: Manoel Marques --- docs/conf.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/docs/conf.py b/docs/conf.py index bc37315c7..59aae3689 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -25,6 +25,7 @@ # import os import sys +from datetime import date sys.path.insert(0, os.path.abspath("..")) sys.path.append(os.path.abspath(".")) @@ -49,7 +50,7 @@ # -- Project information ----------------------------------------------------- project = "Qiskit Optimization" -copyright = "2018, 2021, Qiskit Optimization Development Team" # pylint: disable=redefined-builtin +copyright = f"2018, {date.today().year}, Qiskit Optimization Development Team" # pylint: disable=redefined-builtin author = "Qiskit Optimization Development Team" # The short X.Y version