Move code out of __init__ and into conf.py module 18/8518/3
authorThanh Ha <thanh.ha@linuxfoundation.org>
Thu, 25 Jan 2018 01:41:17 +0000 (20:41 -0500)
committerThanh Ha <thanh.ha@linuxfoundation.org>
Thu, 25 Jan 2018 01:49:56 +0000 (20:49 -0500)
commit5d79abf970ad2a03897f91dc6e978d49e6a2f805
treed57472add1712e1c2b9bbaf6235d77ee8ca9d078
parent63b2507c50b718446a3a02c5854336a07e583140
Move code out of __init__ and into conf.py module

This allows us to use __init__.py to store __version__ and other
metadata strings and be reused in local documentation and setup.py
to shore a single version file.

The problem with having code in __init__.py is that the code will
be executed even if all the documentation code wants to pull is the
metadata variable.

Change-Id: I7382c81508be42a41c99f392f8006cfdf9887258
Signed-off-by: Thanh Ha <thanh.ha@linuxfoundation.org>
docs/conf.py
docs_conf/__init__.py
docs_conf/conf.py [new file with mode: 0644]
setup.py
tests/test_simple.py