Skip to content

Commit

Permalink
name full version appropriately
Browse files Browse the repository at this point in the history
  • Loading branch information
obestwalter committed Mar 13, 2017
1 parent bd7a252 commit 4cdb5c0
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion doc/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@

from pkg_resources import get_distribution

release = get_distribution('tox').version
_full_version = get_distribution('tox').version
release = _full_version.split('+', 1)[0]
# The short X.Y version.
version = '.'.join(release.split('.')[:2])

Expand Down
4 changes: 2 additions & 2 deletions tox/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@

from .hookspecs import hookspec, hookimpl # noqa

_version = get_distribution('tox').version
__version__ = _version.split("+", 1)[0]
_full_version = get_distribution('tox').version
__version__ = _full_version.split('+', 1)[0]


class exception:
Expand Down

0 comments on commit 4cdb5c0

Please sign in to comment.