Hello community,

here is the log from the commit of package python3-mccabe for openSUSE:Factory 
checked in at 2017-02-16 17:07:16
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python3-mccabe (Old)
 and      /work/SRC/openSUSE:Factory/.python3-mccabe.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python3-mccabe"

Changes:
--------
--- /work/SRC/openSUSE:Factory/python3-mccabe/python3-mccabe.changes    
2017-01-09 11:03:14.295996348 +0100
+++ /work/SRC/openSUSE:Factory/.python3-mccabe.new/python3-mccabe.changes       
2017-02-16 17:07:17.756788137 +0100
@@ -1,0 +2,10 @@
+Wed Feb 15 14:49:51 UTC 2017 - [email protected]
+
+- Update to version 0.6.1
+  * Fix signature for PathGraphingAstVisitor.default to match
+    the signature for ASTVisitor
+  0.6.0
+  * Add support for Python 3.6
+  * Fix handling for missing statement types
+
+-------------------------------------------------------------------

Old:
----
  mccabe-0.5.3.tar.gz

New:
----
  mccabe-0.6.1.tar.gz

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

Other differences:
------------------
++++++ python3-mccabe.spec ++++++
--- /var/tmp/diff_new_pack.hfqcD8/_old  2017-02-16 17:07:18.248718531 +0100
+++ /var/tmp/diff_new_pack.hfqcD8/_new  2017-02-16 17:07:18.256717399 +0100
@@ -17,7 +17,7 @@
 
 
 Name:           python3-mccabe
-Version:        0.5.3
+Version:        0.6.1
 Release:        0
 Summary:        McCabe checker, plugin for flake8
 License:        MIT

++++++ mccabe-0.5.3.tar.gz -> mccabe-0.6.1.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/mccabe-0.5.3/PKG-INFO new/mccabe-0.6.1/PKG-INFO
--- old/mccabe-0.5.3/PKG-INFO   2016-12-14 14:09:22.000000000 +0100
+++ new/mccabe-0.6.1/PKG-INFO   2017-01-26 23:13:05.000000000 +0100
@@ -1,6 +1,6 @@
 Metadata-Version: 1.1
 Name: mccabe
-Version: 0.5.3
+Version: 0.6.1
 Summary: McCabe checker, plugin for flake8
 Home-page: https://github.com/pycqa/mccabe
 Author: Ian Cordasco
@@ -73,6 +73,19 @@
         Changes
         -------
         
+        0.6.1 - 2017-01-26
+        ``````````````````
+        
+        * Fix signature for ``PathGraphingAstVisitor.default`` to match the 
signature
+          for ``ASTVisitor``
+        
+        0.6.0 - 2017-01-23
+        ``````````````````
+        
+        * Add support for Python 3.6
+        
+        * Fix handling for missing statement types
+        
         0.5.3 - 2016-12-14
         ``````````````````
         
@@ -158,5 +171,6 @@
 Classifier: Programming Language :: Python :: 3.3
 Classifier: Programming Language :: Python :: 3.4
 Classifier: Programming Language :: Python :: 3.5
+Classifier: Programming Language :: Python :: 3.6
 Classifier: Topic :: Software Development :: Libraries :: Python Modules
 Classifier: Topic :: Software Development :: Quality Assurance
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/mccabe-0.5.3/README.rst new/mccabe-0.6.1/README.rst
--- old/mccabe-0.5.3/README.rst 2016-12-14 14:07:04.000000000 +0100
+++ new/mccabe-0.6.1/README.rst 2017-01-26 23:11:16.000000000 +0100
@@ -65,6 +65,19 @@
 Changes
 -------
 
+0.6.1 - 2017-01-26
+``````````````````
+
+* Fix signature for ``PathGraphingAstVisitor.default`` to match the signature
+  for ``ASTVisitor``
+
+0.6.0 - 2017-01-23
+``````````````````
+
+* Add support for Python 3.6
+
+* Fix handling for missing statement types
+
 0.5.3 - 2016-12-14
 ``````````````````
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/mccabe-0.5.3/mccabe.egg-info/PKG-INFO 
new/mccabe-0.6.1/mccabe.egg-info/PKG-INFO
--- old/mccabe-0.5.3/mccabe.egg-info/PKG-INFO   2016-12-14 14:09:21.000000000 
+0100
+++ new/mccabe-0.6.1/mccabe.egg-info/PKG-INFO   2017-01-26 23:13:05.000000000 
+0100
@@ -1,6 +1,6 @@
 Metadata-Version: 1.1
 Name: mccabe
-Version: 0.5.3
+Version: 0.6.1
 Summary: McCabe checker, plugin for flake8
 Home-page: https://github.com/pycqa/mccabe
 Author: Ian Cordasco
@@ -73,6 +73,19 @@
         Changes
         -------
         
+        0.6.1 - 2017-01-26
+        ``````````````````
+        
+        * Fix signature for ``PathGraphingAstVisitor.default`` to match the 
signature
+          for ``ASTVisitor``
+        
+        0.6.0 - 2017-01-23
+        ``````````````````
+        
+        * Add support for Python 3.6
+        
+        * Fix handling for missing statement types
+        
         0.5.3 - 2016-12-14
         ``````````````````
         
@@ -158,5 +171,6 @@
 Classifier: Programming Language :: Python :: 3.3
 Classifier: Programming Language :: Python :: 3.4
 Classifier: Programming Language :: Python :: 3.5
+Classifier: Programming Language :: Python :: 3.6
 Classifier: Topic :: Software Development :: Libraries :: Python Modules
 Classifier: Topic :: Software Development :: Quality Assurance
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/mccabe-0.5.3/mccabe.py new/mccabe-0.6.1/mccabe.py
--- old/mccabe-0.5.3/mccabe.py  2016-12-14 14:07:11.000000000 +0100
+++ new/mccabe-0.6.1/mccabe.py  2017-01-26 23:10:14.000000000 +0100
@@ -16,7 +16,7 @@
 except ImportError:   # Python 2.5
     from flake8.util import ast, iter_child_nodes
 
-__version__ = '0.5.3'
+__version__ = '0.6.1'
 
 
 class ASTVisitor(object):
@@ -160,10 +160,11 @@
         name = "Stmt %d" % lineno
         self.appendPathNode(name)
 
-    visitAssert = visitAssign = visitAugAssign = visitDelete = visitPrint = \
-        visitRaise = visitYield = visitImport = visitCall = visitSubscript = \
-        visitPass = visitContinue = visitBreak = visitGlobal = visitReturn = \
-        visitAwait = visitSimpleStatement
+    def default(self, node, *args):
+        if isinstance(node, ast.stmt):
+            self.visitSimpleStatement(node)
+        else:
+            super(PathGraphingAstVisitor, self).default(node, *args)
 
     def visitLoop(self, node):
         name = "Loop %d" % node.lineno
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/mccabe-0.5.3/setup.cfg new/mccabe-0.6.1/setup.cfg
--- old/mccabe-0.5.3/setup.cfg  2016-12-14 14:09:22.000000000 +0100
+++ new/mccabe-0.6.1/setup.cfg  2017-01-26 23:13:05.000000000 +0100
@@ -7,5 +7,4 @@
 [egg_info]
 tag_build = 
 tag_date = 0
-tag_svn_revision = 0
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/mccabe-0.5.3/setup.py new/mccabe-0.6.1/setup.py
--- old/mccabe-0.5.3/setup.py   2016-02-19 23:50:33.000000000 +0100
+++ new/mccabe-0.6.1/setup.py   2017-01-23 13:24:16.000000000 +0100
@@ -53,6 +53,7 @@
         'Programming Language :: Python :: 3.3',
         'Programming Language :: Python :: 3.4',
         'Programming Language :: Python :: 3.5',
+        'Programming Language :: Python :: 3.6',
         'Topic :: Software Development :: Libraries :: Python Modules',
         'Topic :: Software Development :: Quality Assurance',
     ],
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/mccabe-0.5.3/test_mccabe.py 
new/mccabe-0.6.1/test_mccabe.py
--- old/mccabe-0.5.3/test_mccabe.py     2016-02-19 23:50:33.000000000 +0100
+++ new/mccabe-0.6.1/test_mccabe.py     2017-01-23 13:24:16.000000000 +0100
@@ -16,6 +16,12 @@
 trivial = 'def f(): pass'
 
 
+expr_as_statement = '''\
+def f():
+    """docstring"""
+'''
+
+
 sequential = """\
 def f(n):
     k = n + 4
@@ -99,6 +105,11 @@
         pass
 """
 
+annotated_assign = """\
+def f():
+    x: Any = None
+"""
+
 
 def get_complexity_number(snippet, strio, max=0):
     """Get the complexity number from the printed string."""
@@ -176,6 +187,10 @@
         printed_message = self.strio.getvalue()
         self.assertEqual(printed_message, "")
 
+    def test_expr_as_statement(self):
+        complexity = get_complexity_number(expr_as_statement, self.strio)
+        self.assertEqual(complexity, 1)
+
     def test_try_else(self):
         self.assert_complexity(try_else, 4)
 
@@ -186,6 +201,14 @@
         complexity = get_complexity_number(async_keywords, self.strio)
         self.assertEqual(complexity, 3)
 
+    @pytest.mark.skipif(
+        sys.version_info < (3, 6),
+        reason="Annotated assignments are only valid on Python 3.6+",
+    )
+    def test_annotated_assignment(self):
+        complexity = get_complexity_number(annotated_assign, self.strio)
+        self.assertEqual(complexity, 1)
+
 
 class RegressionTests(unittest.TestCase):
     def setUp(self):


Reply via email to