Skip to content

Commit

Permalink
move author/version info back to __init__.py
Browse files Browse the repository at this point in the history
for accessibility in the docs. This fixes docs-builds on rtfd.org which
was broken since 9629ddf
  • Loading branch information
pazz committed Dec 22, 2016
1 parent 76a79ae commit 4c0e887
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 18 deletions.
4 changes: 2 additions & 2 deletions docs/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ def __getattr__(cls, name):
# documentation root, use os.path.abspath to make it absolute, like shown here.
#sys.path.insert(0, os.path.abspath('.'))
sys.path.insert(0, os.path.abspath(os.path.join('..','..')))
from urwidtrees import __version__,__author__
from urwidtrees import __version__,__copyright__

# -- General configuration ------------------------------------------------

Expand Down Expand Up @@ -72,7 +72,7 @@ def __getattr__(cls, name):

# General information about the project.
project = u'urwidtrees'
copyright = u'2015, Patrick Totzke'
copyright = __copyright__

# The version info for the project you're documenting, acts as replacement for
# |version| and |release|, also used in various other places throughout the
Expand Down
23 changes: 7 additions & 16 deletions setup.py
Original file line number Diff line number Diff line change
@@ -1,25 +1,16 @@
#!/usr/bin/env python
from distutils.core import setup


__productname__ = 'urwidtrees'
__version__ = '1.0.2'
__copyright__ = "Copyright (C) 2015 Patrick Totzke"
__author__ = "Patrick Totzke"
__author_email__ = "patricktotzke@gmail.com"
__description__ = "Tree widgets for urwid"
__url__ = "https://github.com/pazz/urwidtrees"
__license__ = "Licensed under the GNU GPL v3+."

import urwidtrees

setup(
name='urwidtrees',
version=__version__,
description=__description__,
author=__author__,
author_email=__author_email__,
url=__url__,
license=__copyright__,
version=urwidtrees.__version__,
description="Tree widgets for urwid",
author="Patrick Totzke",
author_email="patricktotzke@gmail.com",
url="https://github.com/pazz/urwidtrees",
license="Licensed under the GNU GPL v3+.",
packages=['urwidtrees'],
install_requires=['urwid>=1.1.0', 'mock'],
)
4 changes: 4 additions & 0 deletions urwidtrees/__init__.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
__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
Expand Down

0 comments on commit 4c0e887

Please sign in to comment.