From a11336877fc4f8b99f02f73e3a67841340c8b23c Mon Sep 17 00:00:00 2001 From: Joshua Harlow Date: Mon, 8 Dec 2014 16:50:42 -0800 Subject: [PATCH] Have the sphinx copyright date be dynamic Instead of having the copyright date be statically encoded to '2013-2014' have it be dynamically picked up from the datetime module instead. Change-Id: Ie8a4ab02b7b2c254eb63a0b43763c9893f7fa083 --- doc/source/conf.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/doc/source/conf.py b/doc/source/conf.py index fcb07166..2fb1e7ec 100644 --- a/doc/source/conf.py +++ b/doc/source/conf.py @@ -1,5 +1,6 @@ # -*- coding: utf-8 -*- +import datetime import os import sys @@ -36,7 +37,7 @@ exclude_patterns = ['_build'] # General information about the project. project = u'TaskFlow' -copyright = u'2013-2014, OpenStack Foundation' +copyright = u'%s, OpenStack Foundation' % datetime.date.today().year source_tree = 'http://git.openstack.org/cgit/openstack/taskflow/tree' # If true, '()' will be appended to :func: etc. cross-reference text.