Skip to content

Commit

Permalink
FIX: install on python 3.7
Browse files Browse the repository at this point in the history
python/cpython#46 /
https://bugs.python.org/issue29463 move the module comment into the
AST node and hence out of the tree which means the 2nd entry in the
tree is now the import rather than the `__version__` string.

Adds nightly on travis.
  • Loading branch information
tacaswell committed Oct 23, 2017
1 parent 752b7d8 commit 821af46
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
4 changes: 3 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,14 @@ python:
- 3.5
- 3.6
- pypy
- nightly

matrix:
allow_failures:
- python: pypy
- env: TOXENV=cov
- env: TOXENV=sith
- python: nightly
include:
- python: 3.5
env: TOXENV=cov
Expand All @@ -27,4 +30,3 @@ after_script:
pip install --quiet coveralls;
coveralls;
fi

7 changes: 5 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,18 @@
from setuptools import setup, find_packages

import ast

import sys

__AUTHOR__ = 'David Halter'
__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
if sys.version_info > (3, 7):
version = tree.body[0].value.s
else:
version = tree.body[1].value.s

readme = open('README.rst').read() + '\n\n' + open('CHANGELOG.rst').read()
with open('requirements.txt') as f:
Expand Down

0 comments on commit 821af46

Please sign in to comment.