From 1ba6721d8e393a2d03ca8793e800d18d70ab6365 Mon Sep 17 00:00:00 2001 From: Stephen McDonald Date: Tue, 15 Sep 2015 12:48:42 +1000 Subject: [PATCH] Remove hard-coded vars from docs config. Change-Id: I05df7d4784aeca88c4e9c2d89b45a6e4b8fac383 --- docs/conf.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/docs/conf.py b/docs/conf.py index 3257c53b..19cdfef5 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -40,15 +40,17 @@ master_doc = 'index' # General information about the project. +from datetime import datetime project = u'Python Client for Google Maps Services' -copyright = u'2014, Google Inc.' +copyright = u'%s, Google Inc.' % datetime.now().year # The version info for the project you're documenting, acts as replacement for # |version| and |release|, also used in various other places throughout the # built documents. # # The short X.Y version. -version = '2.2-dev' +from googlemaps import __version__ +version = __version__ # The full version, including alpha/beta/rc tags. release = version