Don't bother with copyright year(s). Let the repository history track the changes and copyright years. YAGNI.

This commit is contained in:
Jason R. Coombs 2017-03-29 14:36:54 -04:00
parent b728c5892b
commit 59c37d70f1

View File

@ -23,10 +23,7 @@ dist_info_cmd = [sys.executable, setup_script] + fields
output_bytes = subprocess.check_output(dist_info_cmd, cwd=root) output_bytes = subprocess.check_output(dist_info_cmd, cwd=root)
project, version, url, author = output_bytes.decode('utf-8').strip().split('\n') project, version, url, author = output_bytes.decode('utf-8').strip().split('\n')
origin_date = datetime.date(2017,1,1) copyright = author
today = datetime.date.today()
copyright = '{origin_date.year}-{today.year} {author}'.format(**locals())
# The full version, including alpha/beta/rc tags. # The full version, including alpha/beta/rc tags.
release = version release = version