Skip to content

Commit

Permalink
store version string in separate file
Browse files Browse the repository at this point in the history
  • Loading branch information
pazz committed Dec 25, 2016
1 parent a8f06a1 commit 24cf510
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 6 deletions.
6 changes: 4 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
@@ -1,11 +1,13 @@
#!/usr/bin/env python
from distutils.core import setup

import urwidtrees
# this loads the version string into __version__
with open('urwidtrees/version.py') as f:
exec(f.read())

setup(
name='urwidtrees',
version=urwidtrees.__version__,
version=__version__,
description="Tree widgets for urwid",
author="Patrick Totzke",
author_email="patricktotzke@gmail.com",
Expand Down
6 changes: 2 additions & 4 deletions urwidtrees/__init__.py
Original file line number Diff line number Diff line change
@@ -1,10 +1,8 @@
__version__ = '1.0.3.dev'
__copyright__ = "Copyright (C) 2016 Patrick Totzke"
__license__ = "Licensed under the GNU GPL v3+."

from .tree import Tree, SimpleTree
from .decoration import DecoratedTree, CollapsibleTree
from .decoration import IndentedTree, CollapsibleIndentedTree
from .decoration import ArrowTree, CollapsibleArrowTree
from .nested import NestedTree
from .widgets import TreeBox

from version import __version__
1 change: 1 addition & 0 deletions urwidtrees/version.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
__version__ = '1.0.3.dev'

0 comments on commit 24cf510

Please sign in to comment.