refactor version

This commit is contained in:
2017-01-23 18:25:15 -05:00
parent fefa9aa1b4
commit e95367279a
3 changed files with 8 additions and 3 deletions
+1
View File
@@ -0,0 +1 @@
__version__ = '0.2.6'
+1 -2
View File
@@ -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()
+6 -1
View File
@@ -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',