Skip to content

Commit

Permalink
use runpy instead of execfile for Python3 compat; bump version
Browse files Browse the repository at this point in the history
  • Loading branch information
Talha Zaman committed Aug 4, 2017
1 parent b5c7aa7 commit 9508add
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion chumpy/version.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
version = '0.67.4'
version = '0.67.5'
short_version = version
full_version = version
5 changes: 2 additions & 3 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,14 @@
"""

from distutils.core import setup
import importlib
from pip.req import parse_requirements
from runpy import run_path

install_reqs = parse_requirements('requirements.txt', session=False)
install_requires = [str(ir.req) for ir in install_reqs]

def get_version():
namespace = {}
execfile('chumpy/version.py', namespace)
namespace = run_path('chumpy/version.py')
return namespace['version']

setup(name='chumpy',
Expand Down

0 comments on commit 9508add

Please sign in to comment.