Hello community, here is the log from the commit of package python-typed-ast for openSUSE:Factory checked in at 2017-08-10 14:06:14 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/python-typed-ast (Old) and /work/SRC/openSUSE:Factory/.python-typed-ast.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-typed-ast" Thu Aug 10 14:06:14 2017 rev:2 rq:515342 version:1.1.0 Changes: -------- --- /work/SRC/openSUSE:Factory/python-typed-ast/python-typed-ast.changes 2017-08-04 11:58:33.578575629 +0200 +++ /work/SRC/openSUSE:Factory/.python-typed-ast.new/python-typed-ast.changes 2017-08-10 14:13:36.383754135 +0200 @@ -1,0 +2,6 @@ +Thu Jul 20 09:59:09 UTC 2017 - [email protected] + +- update to version 1.1.0 + * Vs2010 compilation support (Python 3.3/3.4 support) (#47) + +------------------------------------------------------------------- Old: ---- typed-ast-1.0.4.tar.gz New: ---- typed-ast-1.1.0.tar.gz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python-typed-ast.spec ++++++ --- /var/tmp/diff_new_pack.nyOcpm/_old 2017-08-10 14:13:37.131648829 +0200 +++ /var/tmp/diff_new_pack.nyOcpm/_new 2017-08-10 14:13:37.147646577 +0200 @@ -21,9 +21,9 @@ %{?!python_module:%define python_module() python-%{**} python3-%{**}} %bcond_without test Name: python-typed-ast -Version: 1.0.4 +Version: 1.1.0 Release: 0 -Summary: a fork of Python 2 and 3 ast modules with type comment support +Summary: A fork of Python 2 and 3 ast modules with type comment support License: Apache-2.0 Group: Development/Languages/Python Url: https://github.com/python/typed_ast ++++++ typed-ast-1.0.4.tar.gz -> typed-ast-1.1.0.tar.gz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/typed-ast-1.0.4/PKG-INFO new/typed-ast-1.1.0/PKG-INFO --- old/typed-ast-1.0.4/PKG-INFO 2017-06-14 02:21:54.000000000 +0200 +++ new/typed-ast-1.1.0/PKG-INFO 2017-07-18 23:30:05.000000000 +0200 @@ -1,6 +1,6 @@ Metadata-Version: 1.1 Name: typed-ast -Version: 1.0.4 +Version: 1.1.0 Summary: a fork of Python 2 and 3 ast modules with type comment support Home-page: https://github.com/python/typed_ast Author: David Fisher diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/typed-ast-1.0.4/ast27/Custom/typed_ast.c new/typed-ast-1.1.0/ast27/Custom/typed_ast.c --- old/typed-ast-1.0.4/ast27/Custom/typed_ast.c 2017-02-13 03:44:53.000000000 +0100 +++ new/typed-ast-1.1.0/ast27/Custom/typed_ast.c 2017-07-18 23:12:27.000000000 +0200 @@ -239,6 +239,7 @@ PyCompilerFlags *flags) { mod_ty mod; + PyObject *result; PyArena *arena = PyArena_New(); if (arena == NULL) return NULL; @@ -249,7 +250,7 @@ return NULL; } - PyObject *result = Ta27AST_mod2obj(mod); + result = Ta27AST_mod2obj(mod); PyArena_Free(arena); return result; } diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/typed-ast-1.0.4/ast27/Parser/tokenizer.c new/typed-ast-1.1.0/ast27/Parser/tokenizer.c --- old/typed-ast-1.0.4/ast27/Parser/tokenizer.c 2017-02-13 03:44:53.000000000 +0100 +++ new/typed-ast-1.1.0/ast27/Parser/tokenizer.c 2017-07-18 23:12:27.000000000 +0200 @@ -1352,6 +1352,10 @@ }; char cbuf[80]; char *tp, **cp; + + /* used for type comment checks */ + const char *prefix, *p, *type_start; + tp = cbuf; do { *tp++ = c = tok_nextc(tok); @@ -1375,9 +1379,9 @@ } while (c != EOF && c != '\n') c = tok_nextc(tok); - + /* check for type comment */ - const char *prefix, *p, *type_start; + p = tok->start; prefix = type_comment_prefix; while (*prefix && p < tok->cur) { diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/typed-ast-1.0.4/ast27/Python/ast.c new/typed-ast-1.1.0/ast27/Python/ast.c --- old/typed-ast-1.0.4/ast27/Python/ast.c 2017-04-10 20:11:39.000000000 +0200 +++ new/typed-ast-1.1.0/ast27/Python/ast.c 2017-07-18 23:12:27.000000000 +0200 @@ -2303,6 +2303,7 @@ static stmt_ty ast_for_expr_stmt(struct compiling *c, const node *n) { + int num; REQ(n, expr_stmt); /* expr_stmt: testlist (augassign (yield_expr|testlist) | ('=' (yield_expr|testlist))* [TYPE_COMMENT]) @@ -2311,7 +2312,7 @@ | '<<=' | '>>=' | '**=' | '//=' test: ... here starts the operator precendence dance */ - int num = NCH(n); + num = NCH(n); if (num == 1 || (num == 2 && TYPE(CHILD(n, 1)) == TYPE_COMMENT)) { expr_ty e = ast_for_testlist(c, CHILD(n, 0)); @@ -3516,12 +3517,13 @@ /* Make a copy without the trailing 'L' */ size_t len = end - s + 1; char *copy = malloc(len); + PyObject *result; if (copy == NULL) return PyErr_NoMemory(); memcpy(copy, s, len); copy[len - 1] = '\0'; old_style_octal = len > 2 && copy[0] == '0' && copy[1] >= '0' && copy[1] <= '9'; - PyObject *result = PyLong_FromString(copy, (char **)0, old_style_octal ? 8 : 0); + result = PyLong_FromString(copy, (char **)0, old_style_octal ? 8 : 0); free(copy); return result; } diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/typed-ast-1.0.4/ast3/Custom/typed_ast.c new/typed-ast-1.1.0/ast3/Custom/typed_ast.c --- old/typed-ast-1.0.4/ast3/Custom/typed_ast.c 2017-02-17 12:36:28.000000000 +0100 +++ new/typed-ast-1.1.0/ast3/Custom/typed_ast.c 2017-07-18 23:12:27.000000000 +0200 @@ -249,6 +249,7 @@ PyCompilerFlags *flags, int feature_version) { mod_ty mod; + PyObject *result; PyArena *arena = PyArena_New(); if (arena == NULL) return NULL; @@ -259,7 +260,7 @@ return NULL; } - PyObject *result = Ta3AST_mod2obj(mod); + result = Ta3AST_mod2obj(mod); PyArena_Free(arena); return result; } diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/typed-ast-1.0.4/ast3/Python/ast.c new/typed-ast-1.1.0/ast3/Python/ast.c --- old/typed-ast-1.0.4/ast3/Python/ast.c 2017-06-14 02:18:32.000000000 +0200 +++ new/typed-ast-1.1.0/ast3/Python/ast.c 2017-07-18 23:12:27.000000000 +0200 @@ -2274,6 +2274,7 @@ return str; } case NUMBER: { + PyObject *pynum; const char *s = STR(ch); /* Underscores in numeric literals are only allowed in Python 3.6 or greater */ /* Check for underscores here rather than in parse_number so we can report a line number on error */ @@ -2282,7 +2283,7 @@ "Underscores in numeric literals are only supported in Python 3.6 and greater"); return NULL; } - PyObject *pynum = parsenumber(c, s); + pynum = parsenumber(c, s); if (!pynum) return NULL; @@ -3040,6 +3041,7 @@ static stmt_ty ast_for_expr_stmt(struct compiling *c, const node *n) { + int num; REQ(n, expr_stmt); /* expr_stmt: testlist_star_expr (annassign | augassign (yield_expr|testlist) | ('=' (yield_expr|testlist_star_expr))* [TYPE_COMMENT]) @@ -3049,7 +3051,7 @@ | '<<=' | '>>=' | '**=' | '//=' test: ... here starts the operator precedence dance */ - int num = NCH(n); + num = NCH(n); if (num == 1 || (num == 2 && TYPE(CHILD(n, 1)) == TYPE_COMMENT)) { expr_ty e = ast_for_testlist(c, CHILD(n, 0)); diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/typed-ast-1.0.4/setup.py new/typed-ast-1.1.0/setup.py --- old/typed-ast-1.0.4/setup.py 2017-06-14 02:18:53.000000000 +0200 +++ new/typed-ast-1.1.0/setup.py 2017-07-18 23:23:52.000000000 +0200 @@ -87,7 +87,7 @@ """.strip() setup (name = 'typed-ast', - version = '1.0.4', + version = '1.1.0', description = 'a fork of Python 2 and 3 ast modules with type comment support', long_description = long_description, author = 'David Fisher', diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/typed-ast-1.0.4/typed_ast.egg-info/PKG-INFO new/typed-ast-1.1.0/typed_ast.egg-info/PKG-INFO --- old/typed-ast-1.0.4/typed_ast.egg-info/PKG-INFO 2017-06-14 02:21:54.000000000 +0200 +++ new/typed-ast-1.1.0/typed_ast.egg-info/PKG-INFO 2017-07-18 23:30:05.000000000 +0200 @@ -1,6 +1,6 @@ Metadata-Version: 1.1 Name: typed-ast -Version: 1.0.4 +Version: 1.1.0 Summary: a fork of Python 2 and 3 ast modules with type comment support Home-page: https://github.com/python/typed_ast Author: David Fisher
