]> git.phdru.name Git - ppu.git/commitdiff
Docs: 2018 year
authorOleg Broytman <phd@phdru.name>
Wed, 28 Mar 2018 18:46:39 +0000 (21:46 +0300)
committerOleg Broytman <phd@phdru.name>
Wed, 28 Mar 2018 18:46:39 +0000 (21:46 +0300)
[skip ci]

README.rst
docs/conf.py

index b013ab8257ec0e5ec1d21948310f692a2c2f5b04..e6303c1544061aa23ce4ae49592eed4b86bc846f 100644 (file)
@@ -2,7 +2,7 @@ Portable Python Utilities.
 
 Author: Oleg Broytman <phd@phdru.name>.
 
-Copyright (C) 2017 PhiloSoft Design.
+Copyright (C) 2017, 2018 PhiloSoft Design.
 
 License: GPL.
 
index fad69bda1e756c877b259a2505fa7649e83d36d9..53b3a59d75c677241da80a794e0c9c4b26547693 100644 (file)
@@ -16,6 +16,7 @@
 # add these directories to sys.path here. If the directory is relative to the
 # documentation root, use os.path.abspath to make it absolute, like shown here.
 #
+from datetime import date
 # import os
 # import sys
 # sys.path.insert(0, os.path.abspath('.'))
@@ -46,17 +47,19 @@ master_doc = 'index'
 
 # General information about the project.
 project = 'Portable Python Utilities'
-copyright = '2017, Oleg Broytman'
+copyright = u'2017-%d, Oleg Broytman' % date.today().year
 author = 'Oleg Broytman'
 
 # 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.
 #
+sys.path.insert(0, os.path.abspath('..'))
+from ppu.__version__ import __version__
 # The short X.Y version.
-version = '0.1'
+version = '.'.join(__version__.split('.')[:2])
 # The full version, including alpha/beta/rc tags.
-release = '0.1.0'
+release = __version__
 
 # The language for content autogenerated by Sphinx. Refer to documentation
 # for a list of supported languages.