EliAndrewC/sideboard

Sphinx's conf.py should gets its version from its plugin

Closed this issue · 2 comments

The conf.py generated by Sphinx has the lines

version = '0.1'
release = '0.1'

The core Sideboard version of this code looks like

__here__ = os.path.abspath(os.path.dirname(__file__))
execfile(os.path.join(__here__, '..', '..', 'sideboard', '_version.py'))
release = version = __version__

We should do the same thing in plugins (with the plugin name substituted for 'sideboard').

Reminder if we want single source 2 and 3 support we can't use execfile

On Mon, Mar 24, 2014 at 6:44 PM, Eli Courtwright notifications@github.com
wrote:

The conf.py generated by Sphinx has the lines

version = '0.1'
release = '0.1'

The core Sideboard version of this code looks like

__here__ = os.path.abspath(os.path.dirname(__file__))
execfile(os.path.join(__here__, '..', '..', 'sideboard', '_version.py'))
release = version = __version__

We should do the same thing in plugins (with the plugin name substituted for 'sideboard').

Reply to this email directly or view it on GitHub:
#15

Fixed in current version.