From 53353c58f2fadc1063eb75110e94e14d244be986 Mon Sep 17 00:00:00 2001 From: "Zack M. Davis" Date: Wed, 21 Sep 2016 22:05:53 -0700 Subject: [PATCH 1/2] fix Hy on recent Pythons In issue #1111, @tianon reported that Hy didn't work with Python 3.6.0b1: trying to evaluate a simple expression at the REPL blew up with `TypeError: required field "is_async" missing from comprehension`. This was due to a grammar change (https://www.python.org/dev/peps/pep-0530/#grammar-updates) in the implementation (https://hg.python.org/cpython/rev/cf91a929b81a) of PEP 530, which we can easily accomodate. --- hy/compiler.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/hy/compiler.py b/hy/compiler.py index ca8c0e9..6fc1551 100644 --- a/hy/compiler.py +++ b/hy/compiler.py @@ -1516,7 +1516,8 @@ class HyASTCompiler(object): gen.append(ast.comprehension( target=target, iter=gen_res.force_expr, - ifs=[])) + ifs=[], + is_async=False)) if cond.expr: gen[-1].ifs.append(cond.expr) From d4494151f4dcb454e15a297e3012c68b356ffb35 Mon Sep 17 00:00:00 2001 From: "Zack M. Davis" Date: Thu, 22 Sep 2016 23:24:14 -0700 Subject: [PATCH 2/2] experiment: can we convince Travis CI to test with nightly Python? The docs say that "nightly" is supported, but it's less clear exactly what our .travis.yml should say to make this happen. --- .travis.yml | 2 ++ tox.ini | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index 9f8dea7..8ab3a44 100644 --- a/.travis.yml +++ b/.travis.yml @@ -4,6 +4,8 @@ matrix: include: - python: 3.5 env: TOXENV=py35 + - python: nightly + env: TOXENV=py36 env: - TOXENV=py27 - TOXENV=py33 diff --git a/tox.ini b/tox.ini index 2bea02d..0162794 100644 --- a/tox.ini +++ b/tox.ini @@ -1,5 +1,5 @@ [tox] -envlist = py27,pypy,py33,py34,py35,flake8 +envlist = py27,pypy,py33,py34,py35,py36,flake8 skipsdist = True [testenv]