Skip to content

Commit

Permalink
[docs] get copyright year programmatically
Browse files Browse the repository at this point in the history
  • Loading branch information
2bndy5 committed Mar 19, 2024
1 parent 79e9808 commit 6cc7313
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,16 +7,19 @@
"""

import os
import time

try:
from importlib.metadata import version as get_version
except ImportError: # for python v3.7 or older
from importlib_metadata import version as get_version # type: ignore

current_time = time.localtime()

# -- Project information -----------------------------------------------------

project = "pyRF24"
copyright = "2023, TMRh20 Avamander 2bndy5"
copyright = f"{current_time.tm_year}, TMRh20 Avamander 2bndy5"
author = "TMRh20 Avamander 2bndy5"
language = "en"

Expand Down

0 comments on commit 6cc7313

Please sign in to comment.