Skip to content

Commit

Permalink
Update version to 0.5.0-dev.
Browse files Browse the repository at this point in the history
Creates distarray/__version__.py to remove duplication.
  • Loading branch information
Kurt Smith committed Jul 8, 2014
1 parent 601acdc commit 01afd36
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 4 deletions.
2 changes: 1 addition & 1 deletion distarray/__init__.py
Expand Up @@ -4,5 +4,5 @@
# Distributed under the terms of the BSD License. See COPYING.rst.
# ---------------------------------------------------------------------------

__version__ = "0.5.0-dev"
from distarray.__version__ import __version__
DISTARRAY_BASE_NAME = "__distarray__"
2 changes: 2 additions & 0 deletions distarray/__version__.py
@@ -0,0 +1,2 @@
__short_version__ = "0.5"
__version__ = "0.5.0-dev"
9 changes: 7 additions & 2 deletions docs/source/conf.py
Expand Up @@ -13,6 +13,11 @@

import sys, os

try:
from distarray.__version__ import __version__, __short_version__
except ImportError:
__version__ = __short_version__ = "<unknown>"


# Mock out difficult imports so readthedocs autodoc works
import mock
Expand Down Expand Up @@ -69,9 +74,9 @@
# built documents.
#
# The short X.Y version.
version = '0.5'
version = __short_version__
# The full version, including alpha/beta/rc tags.
release = '0.5.0-dev'
release = __version__

# The language for content autogenerated by Sphinx. Refer to documentation
# for a list of supported languages.
Expand Down
3 changes: 2 additions & 1 deletion setup.py
Expand Up @@ -5,6 +5,7 @@
# -----------------------------------------------------------------------------

from setuptools import setup, find_packages
from distarray.__version__ import __version__


def parse_readme(filename='README.rst', sentinel="README"):
Expand Down Expand Up @@ -32,7 +33,7 @@ def parse_readme(filename='README.rst', sentinel="README"):

metadata = {
'name': 'distarray',
'version': '0.5.0-dev',
'version': __version__,
'description': 'Distributed Memory Arrays for Python',
'keywords': 'parallel mpi distributed array',
'license': 'New BSD',
Expand Down

0 comments on commit 01afd36

Please sign in to comment.