diff --git a/pipenv/__version__.py b/pipenv/__version__.py new file mode 100644 index 00000000..2da372e1 --- /dev/null +++ b/pipenv/__version__.py @@ -0,0 +1 @@ +__version__ = '0.2.6' \ No newline at end of file diff --git a/pipenv/cli.py b/pipenv/cli.py index 76cbfcf5..4e27abd5 100644 --- a/pipenv/cli.py +++ b/pipenv/cli.py @@ -20,8 +20,7 @@ import pexpect from . import _pipfile as pipfile from .project import Project from .utils import convert_deps_from_pip, convert_deps_to_pip - -__version__ = '0.2.5' +from .__version__ import __version__ project = Project() diff --git a/setup.py b/setup.py index e3f1b98b..3f3e1d61 100644 --- a/setup.py +++ b/setup.py @@ -13,6 +13,11 @@ here = os.path.abspath(dirname(__file__)) with codecs.open(os.path.join(here, 'README.rst'), encoding='utf-8') as f: long_description = '\n' + f.read() +base_dir = os.path.dirname(__file__) + +about = {} +with open(os.path.join(base_dir, "pipenv", "__version__.py")) as f: + exec(f.read(), about) if sys.argv[-1] == "publish": os.system("python setup.py sdist bdist_wheel upload") @@ -35,7 +40,7 @@ if sys.version_info < (3, 3): setup( name='pipenv', - version='0.2.5', + version=about['__version__'], description='Sacred Marriage of Pipfile, Pip, & Virtualenv.', long_description=long_description, author='Kenneth Reitz',