Skip to content

Commit

Permalink
DRY version usage
Browse files Browse the repository at this point in the history
  • Loading branch information
funkybob committed Mar 7, 2017
1 parent 970323d commit 033035a
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 5 deletions.
7 changes: 4 additions & 3 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
#
import os
import sys
sys.path.insert(0, os.path.abspath('.'))
sys.path.insert(0, os.path.dirname(os.path.abspath('.')))


# -- General configuration ------------------------------------------------
Expand Down Expand Up @@ -53,10 +53,11 @@
# |version| and |release|, also used in various other places throughout the
# built documents.
#
from graaf import get_version
# The short X.Y version.
version = u'0.2.0'
version = get_version()
# The full version, including alpha/beta/rc tags.
release = u'0.2.0'
release = get_version()

# The language for content autogenerated by Sphinx. Refer to documentation
# for a list of supported languages.
Expand Down
2 changes: 1 addition & 1 deletion graaf/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

from .base import get_yaml

VERSION = (0, 2, 0)
VERSION = (0, 2, 2)


def get_version():
Expand Down
3 changes: 2 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
from distutils.core import setup

from graaf import get_version

setup(
name='graaf',
version='0.2.1',
version=get_version(),
description='Simple static site generator',
author='Curtis Maloney',
author_email='curtis@tinbrain.net',
Expand Down

0 comments on commit 033035a

Please sign in to comment.