Skip to content

Commit

Permalink
Docs copyright year is dynamic
Browse files Browse the repository at this point in the history
  • Loading branch information
EpicWink committed Jun 30, 2022
1 parent f630f5a commit fc8c784
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion docs/src/conf.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
"""Sphinx documentation generation configuration."""

import datetime
import importlib.metadata

project = "swf-typed"
copyright = "2021, Laurie O"
copyright = f"{datetime.date.today().year}, Laurie O"
author = "Laurie O"
release = importlib.metadata.version("swf-typed") # full version
version = ".".join(release.split(".")[:2]) # short X.Y version
Expand Down

0 comments on commit fc8c784

Please sign in to comment.