flume-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From de...@apache.org
Subject [2/2] flume git commit: Set the copyright date dynamically in documentation footer
Date Wed, 13 Sep 2017 11:11:37 GMT
Set the copyright date dynamically in documentation footer

Display "2009-current year" instead of the hardcoded "2009-2012".

This closes #171

Reviewers: Ferenc Szabo

(Denes Arvay via Denes Arvay)


Project: http://git-wip-us.apache.org/repos/asf/flume/repo
Commit: http://git-wip-us.apache.org/repos/asf/flume/commit/b359f32e
Tree: http://git-wip-us.apache.org/repos/asf/flume/tree/b359f32e
Diff: http://git-wip-us.apache.org/repos/asf/flume/diff/b359f32e

Branch: refs/heads/trunk
Commit: b359f32e324fb815c0506f3bad016187a0b7765e
Parents: 1541f08
Author: Denes Arvay <denes@apache.org>
Authored: Tue Sep 12 17:44:13 2017 +0200
Committer: Denes Arvay <denes@apache.org>
Committed: Wed Sep 13 12:56:26 2017 +0200

----------------------------------------------------------------------
 flume-ng-doc/sphinx/conf.py | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/flume/blob/b359f32e/flume-ng-doc/sphinx/conf.py
----------------------------------------------------------------------
diff --git a/flume-ng-doc/sphinx/conf.py b/flume-ng-doc/sphinx/conf.py
index 97ad1df..989d32b 100644
--- a/flume-ng-doc/sphinx/conf.py
+++ b/flume-ng-doc/sphinx/conf.py
@@ -17,6 +17,7 @@
 
 import sys
 import os
+from datetime import date
 
 # eventlet/gevent should not monkey patch anything.
 os.environ["GEVENT_NOPATCH"] = "yes"
@@ -57,7 +58,7 @@ master_doc = 'index'
 
 # General information about the project.
 project = 'Apache Flume'
-copyright = '2009-2012 The Apache Software Foundation'
+copyright = '2009-%s The Apache Software Foundation' % date.today().year
 
 keep_warnings = True
 


Mime
View raw message