commit python-gast for openSUSE:Factory

2020-08-29 Thread root
Hello community,

here is the log from the commit of package python-gast for openSUSE:Factory 
checked in at 2020-08-29 20:34:21

Comparing /work/SRC/openSUSE:Factory/python-gast (Old)
 and  /work/SRC/openSUSE:Factory/.python-gast.new.3399 (New)


Package is "python-gast"

Sat Aug 29 20:34:21 2020 rev:4 rq:829660 version:0.4.0

Changes:

--- /work/SRC/openSUSE:Factory/python-gast/python-gast.changes  2020-04-07 
10:32:05.210558420 +0200
+++ /work/SRC/openSUSE:Factory/.python-gast.new.3399/python-gast.changes
2020-08-29 20:34:43.433272691 +0200
@@ -1,0 +2,6 @@
+Wed Aug 26 06:01:54 UTC 2020 - Steve Kowalik 
+
+- Update to 0.4.0:
+  * Support Python 3.9 
+
+---

Old:

  gast-0.3.3.tar.gz

New:

  gast-0.4.0.tar.gz



Other differences:
--
++ python-gast.spec ++
--- /var/tmp/diff_new_pack.6H18xG/_old  2020-08-29 20:34:45.189273431 +0200
+++ /var/tmp/diff_new_pack.6H18xG/_new  2020-08-29 20:34:45.189273431 +0200
@@ -19,11 +19,10 @@
 %define srcname gast
 %{?!python_module:%define python_module() python-%{**} python3-%{**}}
 Name:   python-gast
-Version:0.3.3
+Version:0.4.0
 Release:0
 Summary:Python AST that abstracts the underlying Python version
 License:BSD-3-Clause
-Group:  Development/Languages/Python
 URL:https://github.com/serge-sans-paille/gast/
 Source: 
https://github.com/serge-sans-paille/gast/archive/%{version}.tar.gz#/%{srcname}-%{version}.tar.gz
 BuildRequires:  %{python_module setuptools}

++ gast-0.3.3.tar.gz -> gast-0.4.0.tar.gz ++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/gast-0.3.3/.travis.yml new/gast-0.4.0/.travis.yml
--- old/gast-0.3.3/.travis.yml  2020-01-19 21:10:35.0 +0100
+++ new/gast-0.4.0/.travis.yml  2020-07-21 17:20:16.0 +0200
@@ -8,5 +8,6 @@
   - "3.6"
   - "3.7"
   - "3.8"
+  - "3.9-dev"
 install: pip install tox-travis
 script: tox
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/gast-0.3.3/README.rst new/gast-0.4.0/README.rst
--- old/gast-0.3.3/README.rst   2020-01-19 21:10:35.0 +0100
+++ new/gast-0.4.0/README.rst   2020-07-21 17:20:16.0 +0200
@@ -57,10 +57,13 @@
 Python3
 ***
 
-The AST used by GAST is the same as the one used in Python3.8, with the
+The AST used by GAST is the same as the one used in Python3.9, with the
 notable exception of ``ast.arg`` being replaced by an ``ast.Name`` with an
 ``ast.Param`` context.
 
+For minor version before 3.9, please note that ``ExtSlice`` and ``Index`` are
+not used.
+
 For minor version before 3.8, please note that ``Ellipsis``, ``Num``, ``Str``,
 ``Bytes`` and ``NamedConstant`` are represented as ``Constant``.
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/gast-0.3.3/gast/ast2.py new/gast-0.4.0/gast/ast2.py
--- old/gast-0.3.3/gast/ast2.py 2020-01-19 21:10:35.0 +0100
+++ new/gast-0.4.0/gast/ast2.py 2020-07-21 17:20:16.0 +0200
@@ -142,9 +142,6 @@
 
 def visit_Subscript(self, node):
 new_slice = self._visit(node.slice)
-if isinstance(node.slice, ast.Ellipsis):
-new_slice = gast.Index(new_slice)
-
 new_node = gast.Subscript(
 self._visit(node.value),
 new_slice,
@@ -163,17 +160,12 @@
 new_node.end_lineno = new_node.end_col_offset = None
 return new_node
 
+def visit_Index(self, node):
+return self._visit(node.value)
+
 def visit_ExtSlice(self, node):
-has_ellipsis = any(isinstance(d, ast.Ellipsis) for d in node.dims)
-has_slice = any(isinstance(d, ast.Slice) for d in node.dims)
 new_dims = self._visit(node.dims)
-if has_ellipsis and not has_slice:
-new_dims = [nd.value if isinstance(nd, gast.Index) else nd
-for nd in new_dims]
-new_node = gast.Index(gast.Tuple(new_dims,
- gast.Load()))
-else:
-new_node = gast.ExtSlice(new_dims)
+new_node = gast.Tuple(new_dims, gast.Load())
 gast.copy_location(new_node, node)
 new_node.end_lineno = new_node.end_col_offset = None
 return new_node
@@ -354,21 +346,26 @@
 ast.copy_location(new_node, node)
 return new_node
 
-def visit_Index(self, node):
-new_value = self._visit(node.value)
-if isinstance(new_value, ast.Ellipsis):
-new_node = new_value
-elif isinstance(new_value, ast.Tuple):
-if any(isinstance(elt, ast.Ellipsis) for elt in new_value.elts):
-

commit python-gast for openSUSE:Factory

2020-04-07 Thread root
Hello community,

here is the log from the commit of package python-gast for openSUSE:Factory 
checked in at 2020-04-07 10:30:40

Comparing /work/SRC/openSUSE:Factory/python-gast (Old)
 and  /work/SRC/openSUSE:Factory/.python-gast.new.3248 (New)


Package is "python-gast"

Tue Apr  7 10:30:40 2020 rev:3 rq:791744 version:0.3.3

Changes:

--- /work/SRC/openSUSE:Factory/python-gast/python-gast.changes  2019-09-11 
10:40:05.643223252 +0200
+++ /work/SRC/openSUSE:Factory/.python-gast.new.3248/python-gast.changes
2020-04-07 10:32:05.210558420 +0200
@@ -1,0 +2,9 @@
+Mon Apr  6 11:15:56 UTC 2020 - Marketa Calabkova 
+
+- Update to 0.3.3
+  * Fix conversion of complex literals
+  * Fix Ellipsis support
+  * Fix conversion of arguments nodes in Python 3.8
+  * Use an immutable instead of a dict to store initial table
+
+---

Old:

  gast-0.3.0.tar.gz

New:

  gast-0.3.3.tar.gz



Other differences:
--
++ python-gast.spec ++
--- /var/tmp/diff_new_pack.dYHnUJ/_old  2020-04-07 10:32:07.942561979 +0200
+++ /var/tmp/diff_new_pack.dYHnUJ/_new  2020-04-07 10:32:07.942561979 +0200
@@ -1,7 +1,7 @@
 #
 # spec file for package python-gast
 #
-# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
+# Copyright (c) 2020 SUSE LLC
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -19,7 +19,7 @@
 %define srcname gast
 %{?!python_module:%define python_module() python-%{**} python3-%{**}}
 Name:   python-gast
-Version:0.3.0
+Version:0.3.3
 Release:0
 Summary:Python AST that abstracts the underlying Python version
 License:BSD-3-Clause

++ gast-0.3.0.tar.gz -> gast-0.3.3.tar.gz ++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/gast-0.3.0/.travis.yml new/gast-0.3.3/.travis.yml
--- old/gast-0.3.0/.travis.yml  2019-09-07 17:43:56.0 +0200
+++ new/gast-0.3.3/.travis.yml  2020-01-19 21:10:35.0 +0100
@@ -7,6 +7,6 @@
   - "3.5"
   - "3.6"
   - "3.7"
-  - "3.8-dev"
+  - "3.8"
 install: pip install tox-travis
 script: tox
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/gast-0.3.0/README.rst new/gast-0.3.3/README.rst
--- old/gast-0.3.0/README.rst   2019-09-07 17:43:56.0 +0200
+++ new/gast-0.3.3/README.rst   2020-01-19 21:10:35.0 +0100
@@ -47,6 +47,7 @@
 - 3.5
 - 3.6
 - 3.7
+- 3.8
 
 
 AST Changes
@@ -60,14 +61,14 @@
 notable exception of ``ast.arg`` being replaced by an ``ast.Name`` with an
 ``ast.Param`` context.
 
-For minor version before 3.8, please note that ``Num``, ``Str``, ``Bytes`` and
-``NamedConstant`` are represented as ``Constant``.
+For minor version before 3.8, please note that ``Ellipsis``, ``Num``, ``Str``,
+``Bytes`` and ``NamedConstant`` are represented as ``Constant``.
 
 Python2
 ***
 
 To cope with Python3 features, several nodes from the Python2 AST are extended
-with some new attributes/children.
+with some new attributes/children, or represented by different nodes
 
 - ``ModuleDef`` nodes have a ``type_ignores`` attribute.
 
@@ -96,7 +97,11 @@
 - ``comprehension`` nodes have an ``async`` attribute (that is always set
   to 0).
 
-- ``Num`` and ``Str`` nodes are represented as ``Constant``.
+- ``Ellipsis``, ``Num`` and ``Str`` nodes are represented as ``Constant``.
+
+- ``Subscript`` which don't have any ``Slice`` node as ``slice`` attribute (and
+  ``Ellipsis`` are not ``Slice`` nodes) no longer hold an ``ExtSlice`` but an
+  ``Index(Tuple(...))`` instead.
 
 
 Pit Falls
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/gast-0.3.0/gast/ast2.py new/gast-0.3.3/gast/ast2.py
--- old/gast-0.3.0/gast/ast2.py 2019-09-07 17:43:56.0 +0200
+++ new/gast-0.3.3/gast/ast2.py 2020-01-19 21:10:35.0 +0100
@@ -140,6 +140,44 @@
 new_node.end_lineno = new_node.end_col_offset = None
 return new_node
 
+def visit_Subscript(self, node):
+new_slice = self._visit(node.slice)
+if isinstance(node.slice, ast.Ellipsis):
+new_slice = gast.Index(new_slice)
+
+new_node = gast.Subscript(
+self._visit(node.value),
+new_slice,
+self._visit(node.ctx),
+)
+gast.copy_location(new_node, node)
+new_node.end_lineno = new_node.end_col_offset = None
+return new_node
+
+def visit_Ellipsis(self, node):
+new_node = gast.Constant(
+Ellipsis,
+None,
+)
+gast.copy_location(new_node, node)
+new_node.end_lineno = 

commit python-gast for openSUSE:Factory

2019-09-11 Thread root
Hello community,

here is the log from the commit of package python-gast for openSUSE:Factory 
checked in at 2019-09-11 10:40:00

Comparing /work/SRC/openSUSE:Factory/python-gast (Old)
 and  /work/SRC/openSUSE:Factory/.python-gast.new.7948 (New)


Package is "python-gast"

Wed Sep 11 10:40:00 2019 rev:2 rq:729898 version:0.3.0

Changes:

--- /work/SRC/openSUSE:Factory/python-gast/python-gast.changes  2019-07-29 
17:32:26.262096342 +0200
+++ /work/SRC/openSUSE:Factory/.python-gast.new.7948/python-gast.changes
2019-09-11 10:40:05.643223252 +0200
@@ -1,0 +2,6 @@
+Tue Sep 10 13:48:10 UTC 2019 - Tomáš Chvátal 
+
+- Update to 0.3.0:
+  * support python 3.8
+
+---

Old:

  gast-0.2.2.tar.gz

New:

  gast-0.3.0.tar.gz



Other differences:
--
++ python-gast.spec ++
--- /var/tmp/diff_new_pack.bg1P6V/_old  2019-09-11 10:40:06.327223130 +0200
+++ /var/tmp/diff_new_pack.bg1P6V/_new  2019-09-11 10:40:06.331223130 +0200
@@ -19,14 +19,13 @@
 %define srcname gast
 %{?!python_module:%define python_module() python-%{**} python3-%{**}}
 Name:   python-gast
-Version:0.2.2
+Version:0.3.0
 Release:0
 Summary:Python AST that abstracts the underlying Python version
 License:BSD-3-Clause
 Group:  Development/Languages/Python
 URL:https://github.com/serge-sans-paille/gast/
 Source: 
https://github.com/serge-sans-paille/gast/archive/%{version}.tar.gz#/%{srcname}-%{version}.tar.gz
-BuildRequires:  %{python_module devel}
 BuildRequires:  %{python_module setuptools}
 BuildRequires:  python-rpm-macros
 # SECTION test requirements
@@ -56,7 +55,6 @@
 %python_exec setup.py test
 
 %files %{python_files}
-
 %{python_sitelib}/*
 %doc README.rst
 %license LICENSE

++ gast-0.2.2.tar.gz -> gast-0.3.0.tar.gz ++
 1637 lines of diff (skipped)