Skip to content

Commit 2f9238a

Browse files
committed
Get version and date for docs with code.
1 parent 3358106 commit 2f9238a

1 file changed

Lines changed: 9 additions & 5 deletions

File tree

docs/conf.py

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,20 @@
11
# -*- coding: utf-8 -*-
22

3-
import sys, os
3+
import sys
4+
import os
5+
import datetime
6+
47
sys.path.append(os.path.abspath('../src'))
8+
import iptools
59

610
extensions = ['sphinx.ext.autodoc', 'sphinx.ext.viewcode']
711
templates_path = ['_templates']
812
source_suffix = '.rst'
913
master_doc = 'index'
10-
project = u'python-iptools'
11-
copyright = u'2012, Bryan Davis'
12-
version = '0.4.0'
13-
release = '0.4.0'
14+
project = 'python-iptools'
15+
copyright = '%s, Bryan Davis. All Rights Reserved' % datetime.date.today().year
16+
version = iptools.__version__
17+
release = version
1418
exclude_patterns = ['_build']
1519
pygments_style = 'sphinx'
1620

0 commit comments

Comments
 (0)