From 54d1ab12b6ed067dd10f26cee12c8a46fb9f0778 Mon Sep 17 00:00:00 2001 From: Guido van Rossum Date: Tue, 5 Feb 2019 17:11:47 -0800 Subject: [PATCH 1/5] Bump version to 1.3.2.dev0 --- typed_ast/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/typed_ast/__init__.py b/typed_ast/__init__.py index 9c73af26..0196c1d0 100644 --- a/typed_ast/__init__.py +++ b/typed_ast/__init__.py @@ -1 +1 @@ -__version__ = "1.3.1" +__version__ = "1.3.2.dev0" From 33209c4dee2d3fcf92d8ca6909ceb02a7b49edbd Mon Sep 17 00:00:00 2001 From: "Michael R. Crusoe" <1330696+mr-c@users.noreply.github.com> Date: Sat, 9 Feb 2019 18:26:51 +0200 Subject: [PATCH 2/5] Distribute the tests (#94) --- MANIFEST.in | 1 + setup.py | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/MANIFEST.in b/MANIFEST.in index bef5282c..8905ef71 100644 --- a/MANIFEST.in +++ b/MANIFEST.in @@ -1,3 +1,4 @@ recursive-include ast27 *.h recursive-include ast3 *.h +recursive-include ast3/tests *.py include LICENSE diff --git a/setup.py b/setup.py index 15c4ee70..cbc74cda 100644 --- a/setup.py +++ b/setup.py @@ -116,6 +116,7 @@ 'Programming Language :: Python :: 3.7', 'Topic :: Software Development', ], - packages = ['typed_ast'], + packages = ['typed_ast', 'typed_ast.tests'], + package_dir={ 'typed_ast.tests': 'ast3/tests' }, ext_package='typed_ast', ext_modules = [_ast27, _ast3]) From 0de4de650d3b37516100ce38b2c9c3b0a8fa2c76 Mon Sep 17 00:00:00 2001 From: Daniele Esposti Date: Tue, 5 Mar 2019 00:58:20 +0000 Subject: [PATCH 3/5] Fix typo in README (#98) --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 2a50ea39..521c08cf 100644 --- a/README.md +++ b/README.md @@ -22,7 +22,7 @@ instead. To avoid feature bloat, any new features for `typed_ast` should have the potential to be broadly useful and not be built just for one niche usecase or in a manner such that only one project can use them. -### Incompatabilities +### Incompatibilities For the purposes of *consuming* syntax trees, this should be a drop-in replacement. It is not a drop-in replacement for users that wish to create or transform ASTs, From dc317ac9cff859aa84eeabe03fb5004982545b3b Mon Sep 17 00:00:00 2001 From: Wictor Lund Date: Tue, 9 Apr 2019 22:51:30 +0300 Subject: [PATCH 4/5] Fix two out-of-bounds array reads (#99) The patch is taken from a commit to the CPython repo with the message: bpo-36495: Fix two out-of-bounds array reads (GH-12641) Research and fix by @bradlarsen. --- ast3/Python/ast.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ast3/Python/ast.c b/ast3/Python/ast.c index 9eeaf15a..b50412e6 100644 --- a/ast3/Python/ast.c +++ b/ast3/Python/ast.c @@ -1445,7 +1445,7 @@ handle_keywordonly_args(struct compiling *c, const node *n, int start, goto error; asdl_seq_SET(kwonlyargs, j++, arg); i += 1; /* the name */ - if (TYPE(CHILD(n, i)) == COMMA) + if (i < NCH(n) && TYPE(CHILD(n, i)) == COMMA) i += 1; /* the comma, if present */ break; case TYPE_COMMENT: @@ -1644,7 +1644,7 @@ ast_for_arguments(struct compiling *c, const node *n) if (!kwarg) return NULL; i += 2; /* the double star and the name */ - if (TYPE(CHILD(n, i)) == COMMA) + if (i < NCH(n) && TYPE(CHILD(n, i)) == COMMA) i += 1; /* the comma, if present */ break; case TYPE_COMMENT: From 089f9798112ea596130679f2d3fd8dc6d3af54b8 Mon Sep 17 00:00:00 2001 From: "Michael J. Sullivan" Date: Wed, 17 Apr 2019 16:03:28 -0700 Subject: [PATCH 5/5] Release version 1.3.2 --- typed_ast/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/typed_ast/__init__.py b/typed_ast/__init__.py index 0196c1d0..f708a9b2 100644 --- a/typed_ast/__init__.py +++ b/typed_ast/__init__.py @@ -1 +1 @@ -__version__ = "1.3.2.dev0" +__version__ = "1.3.2"