X-Git-Url: https://git.phdru.name/?a=blobdiff_plain;f=docs%2Fconf.py;h=1b5d154bd5e0448f22506668ab3a0cfbf81d8044;hb=56129159b1d5cf621e6245dbaf2f622d4cf055e7;hp=46fe5f2a4e273bf8471dafd5830c1607545f36c4;hpb=c3c81973f94f6b4617a2271bbaeef01ecad502bb;p=ppu.git diff --git a/docs/conf.py b/docs/conf.py old mode 100755 new mode 100644 index 46fe5f2..1b5d154 --- a/docs/conf.py +++ b/docs/conf.py @@ -1,4 +1,3 @@ -#!/usr/bin/env python3 # -*- coding: utf-8 -*- # # ppu documentation build configuration file, created by @@ -17,8 +16,9 @@ # 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. # -# import os -# import sys +from datetime import date +import os +import sys # sys.path.insert(0, os.path.abspath('.')) @@ -47,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. @@ -152,6 +154,3 @@ texinfo_documents = [ author, 'ppu', 'Portable Python Utilities.', 'Miscellaneous'), ] - - -