added dynamic render for copyright year (#2082)

This commit is contained in:
Matt Hegarty 2025-07-20 12:30:51 +01:00 committed by GitHub
parent 12fdb9d247
commit c109f27a2b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1,5 +1,6 @@
import os import os
import sys import sys
from datetime import datetime
from importlib.metadata import version from importlib.metadata import version
import django import django
@ -39,7 +40,8 @@ master_doc = "index"
# General information about the project. # General information about the project.
project = "django-import-export" project = "django-import-export"
copyright = "20122024, Bojan Mihelac and others." current_year = str(datetime.now().year)
copyright = f"2012{current_year}, Bojan Mihelac and others."
# The version info for the project you're documenting, acts as replacement for # The version info for the project you're documenting, acts as replacement for
# |version| and |release|, also used in various other places throughout the # |version| and |release|, also used in various other places throughout the