setup.py was not executable in Python3.7

This commit is contained in:
Dave Halter
2018-12-15 22:18:42 +01:00
parent 86ae11eb43
commit 9617d4527d

View File

@@ -10,7 +10,7 @@ __AUTHOR_EMAIL__ = 'davidhalter88@gmail.com'
# Get the version from within jedi. It's defined in exactly one place now.
with open('jedi/__init__.py') as f:
tree = ast.parse(f.read())
version = tree.body[1].value.s
version = tree.body[int(not hasattr(tree, 'docstring'))].value.s
readme = open('README.rst').read() + '\n\n' + open('CHANGELOG.rst').read()
with open('requirements.txt') as f: