Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package python-beniget for openSUSE:Factory 
checked in at 2022-01-24 23:09:38
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-beniget (Old)
 and      /work/SRC/openSUSE:Factory/.python-beniget.new.1938 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-beniget"

Mon Jan 24 23:09:38 2022 rev:6 rq:948272 version:0.4.1

Changes:
--------
--- /work/SRC/openSUSE:Factory/python-beniget/python-beniget.changes    
2021-06-01 10:38:48.932951339 +0200
+++ /work/SRC/openSUSE:Factory/.python-beniget.new.1938/python-beniget.changes  
2022-01-24 23:09:42.650874090 +0100
@@ -1,0 +2,7 @@
+Sun Jan 23 15:16:43 UTC 2022 - Ben Greiner <c...@bnavigator.de>
+
+- Update to 0.4.1
+  * require gast 0.5.0
+  * no release notes
+
+-------------------------------------------------------------------

Old:
----
  beniget-0.3.0.tar.gz

New:
----
  beniget-0.4.1.tar.gz

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ python-beniget.spec ++++++
--- /var/tmp/diff_new_pack.CMQi86/_old  2022-01-24 23:09:43.086871110 +0100
+++ /var/tmp/diff_new_pack.CMQi86/_new  2022-01-24 23:09:43.086871110 +0100
@@ -1,7 +1,7 @@
 #
 # spec file for package python-beniget
 #
-# Copyright (c) 2021 SUSE LLC
+# Copyright (c) 2022 SUSE LLC
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -16,9 +16,10 @@
 #
 
 
-%{?!python_module:%define python_module() python-%{**} python3-%{**}}
+%{?!python_module:%define python_module() python3-%{**}}
+%define skip_python2 1
 Name:           python-beniget
-Version:        0.3.0
+Version:        0.4.1
 Release:        0
 Summary:        Module to extract semantic information about static Python code
 License:        BSD-3-Clause
@@ -27,10 +28,10 @@
 BuildRequires:  %{python_module setuptools}
 BuildRequires:  fdupes
 BuildRequires:  python-rpm-macros
-Requires:       python-gast >= 0.4.0
+Requires:       python-gast >= 0.5.0
 BuildArch:      noarch
 # SECTION test requirements
-BuildRequires:  %{python_module gast >= 0.4.0}
+BuildRequires:  %{python_module gast >= 0.5.0}
 # /SECTION
 %python_subpackages
 
@@ -53,6 +54,7 @@
 %files %{python_files}
 %doc README.rst
 %license LICENSE
-%{python_sitelib}/*
+%{python_sitelib}/beniget
+%{python_sitelib}/beniget-%{version}*-info
 
 %changelog

++++++ beniget-0.3.0.tar.gz -> beniget-0.4.1.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/beniget-0.3.0/PKG-INFO new/beniget-0.4.1/PKG-INFO
--- old/beniget-0.3.0/PKG-INFO  2020-08-07 23:52:40.000000000 +0200
+++ new/beniget-0.4.1/PKG-INFO  2021-08-02 07:50:51.000000000 +0200
@@ -1,6 +1,6 @@
 Metadata-Version: 1.2
 Name: beniget
-Version: 0.3.0
+Version: 0.4.1
 Summary: Extract semantic information about static Python code
 Home-page: https://github.com/serge-sans-paille/beniget/
 Author: serge-sans-paille
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/beniget-0.3.0/beniget/beniget.py 
new/beniget-0.4.1/beniget/beniget.py
--- old/beniget-0.3.0/beniget/beniget.py        2020-08-07 23:52:10.000000000 
+0200
+++ new/beniget-0.4.1/beniget/beniget.py        2021-08-02 07:47:52.000000000 
+0200
@@ -849,6 +849,12 @@
 
     visit_Starred = visit_Await
 
+    def visit_NamedExpr(self, node):
+        dnode = self.chains.setdefault(node, Def(node))
+        self.visit(node.value).add_user(dnode)
+        self.visit(node.target)
+        return dnode
+
     def visit_Name(self, node):
 
         if isinstance(node.ctx, (ast.Param, ast.Store)):
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/beniget-0.3.0/beniget.egg-info/PKG-INFO 
new/beniget-0.4.1/beniget.egg-info/PKG-INFO
--- old/beniget-0.3.0/beniget.egg-info/PKG-INFO 2020-08-07 23:52:39.000000000 
+0200
+++ new/beniget-0.4.1/beniget.egg-info/PKG-INFO 2021-08-02 07:50:51.000000000 
+0200
@@ -1,6 +1,6 @@
 Metadata-Version: 1.2
 Name: beniget
-Version: 0.3.0
+Version: 0.4.1
 Summary: Extract semantic information about static Python code
 Home-page: https://github.com/serge-sans-paille/beniget/
 Author: serge-sans-paille
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/beniget-0.3.0/beniget.egg-info/requires.txt 
new/beniget-0.4.1/beniget.egg-info/requires.txt
--- old/beniget-0.3.0/beniget.egg-info/requires.txt     2020-08-07 
23:52:39.000000000 +0200
+++ new/beniget-0.4.1/beniget.egg-info/requires.txt     2021-08-02 
07:50:51.000000000 +0200
@@ -1 +1 @@
-gast~=0.4.0
+gast~=0.5.0
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/beniget-0.3.0/requirements.txt 
new/beniget-0.4.1/requirements.txt
--- old/beniget-0.3.0/requirements.txt  2020-08-07 23:52:10.000000000 +0200
+++ new/beniget-0.4.1/requirements.txt  2021-06-29 08:05:57.000000000 +0200
@@ -1 +1 @@
-gast ~= 0.4.0
+gast ~= 0.5.0
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/beniget-0.3.0/setup.py new/beniget-0.4.1/setup.py
--- old/beniget-0.3.0/setup.py  2020-08-07 23:52:10.000000000 +0200
+++ new/beniget-0.4.1/setup.py  2021-08-02 07:50:30.000000000 +0200
@@ -9,7 +9,7 @@
 
 setup(
     name="beniget",  # gast, beniget!
-    version="0.3.0",
+    version="0.4.1",
     packages=["beniget"],
     description="Extract semantic information about static Python code",
     long_description="""
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/beniget-0.3.0/tests/chains.py 
new/beniget-0.4.1/tests/chains.py
--- old/beniget-0.3.0/tests/chains.py   2020-05-25 16:37:33.000000000 +0200
+++ new/beniget-0.4.1/tests/chains.py   2021-08-02 07:47:52.000000000 +0200
@@ -384,6 +384,34 @@
             'cos -> (cos -> (Call -> ()))'
         ])
 
+    @skipIf(sys.version_info < (3, 8), 'Python 3.8 syntax')
+    def test_named_expr_simple(self):
+        code = '''
+if (x := 1):
+    y = x + 1'''
+        self.checkChains(
+            code, ['x -> (x -> (BinOp -> ()))', 'y -> ()']
+        )
+
+    @skipIf(sys.version_info < (3, 8), 'Python 3.8 syntax')
+    def test_named_expr_complex(self):
+        code = '''
+if (x := (y := 1) + 1):
+    z = x + y'''
+        self.checkChains(
+            code, ['y -> (y -> (BinOp -> ()))', 'x -> (x -> (BinOp -> ()))', 
'z -> ()']
+        )
+
+    @skipIf(sys.version_info < (3, 8), 'Python 3.8 syntax')
+    def test_named_expr_with_rename(self):
+        code = '''
+a = 1
+if (a := a + a):
+    pass'''
+        self.checkChains(
+            code, ['a -> (a -> (BinOp -> (NamedExpr -> ())), a -> (BinOp -> 
(NamedExpr -> ())))', 'a -> ()']
+        )
+
 
 class TestUseDefChains(TestCase):
     def checkChains(self, code, ref):

Reply via email to