[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#856357: marked as done (unblock: python-mccabe/0.5.3-1)



Your message dated Tue, 28 Feb 2017 17:16:19 +0000
with message-id <E1cilNr-0007is-WF@respighi.debian.org>
and subject line unblock python-mccabe
has caused the Debian Bug report #856357,
regarding unblock: python-mccabe/0.5.3-1
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact owner@bugs.debian.org
immediately.)


-- 
856357: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=856357
Debian Bug Tracking System
Contact owner@bugs.debian.org with problems
--- Begin Message ---
Package: release.debian.org
Severity: normal
User: release.debian.org@packages.debian.org
Usertags: unblock

I uploaded small update (subminor version change) of python-mccabe to
sid which fixies bug in output report:
* Report actual column number of violation instead of the start of the
line

Kindly asking to unblock this migration.

Thank you.

unblock python-mccabe/0.5.3-1

-- System Information:
Debian Release: 9.0
  APT prefers unstable
  APT policy: (500, 'unstable'), (500, 'testing'), (500, 'stable'), (1, 'experimental')
Architecture: amd64 (x86_64)

Kernel: Linux 4.9.0-2-amd64 (SMP w/2 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
diffstat for python-mccabe-0.5.2 python-mccabe-0.5.3

 PKG-INFO                 |    7 ++++++-
 README.rst               |    5 +++++
 debian/.git-dpm          |   14 +++++++-------
 debian/changelog         |    7 +++++++
 mccabe.egg-info/PKG-INFO |    7 ++++++-
 mccabe.py                |   13 +++++++------
 6 files changed, 38 insertions(+), 15 deletions(-)

diff -Nru python-mccabe-0.5.2/debian/changelog python-mccabe-0.5.3/debian/changelog
--- python-mccabe-0.5.2/debian/changelog	2016-08-07 22:45:20.000000000 +0200
+++ python-mccabe-0.5.3/debian/changelog	2017-02-21 10:49:28.000000000 +0100
@@ -1,3 +1,10 @@
+python-mccabe (0.5.3-1) unstable; urgency=medium
+
+  * Team upload.
+  * New upstream release
+
+ -- Ondřej Nový <onovy@debian.org>  Tue, 21 Feb 2017 10:49:28 +0100
+
 python-mccabe (0.5.2-2) unstable; urgency=medium
 
   * Team upload.
diff -Nru python-mccabe-0.5.2/debian/.git-dpm python-mccabe-0.5.3/debian/.git-dpm
--- python-mccabe-0.5.2/debian/.git-dpm	2016-08-07 22:28:16.000000000 +0200
+++ python-mccabe-0.5.3/debian/.git-dpm	2017-02-21 10:49:28.000000000 +0100
@@ -1,11 +1,11 @@
 # see git-dpm(1) from git-dpm package
-80fa828b637fd83b885732ce7484607e649e43f2
-80fa828b637fd83b885732ce7484607e649e43f2
-80fa828b637fd83b885732ce7484607e649e43f2
-80fa828b637fd83b885732ce7484607e649e43f2
-python-mccabe_0.5.2.orig.tar.gz
-14c5b2794cae2a723cdf4ce520c4e0d8cae62986
-8366
+f32cd0ac41a7614914a1a8eb7267ca3990af0a16
+f32cd0ac41a7614914a1a8eb7267ca3990af0a16
+f32cd0ac41a7614914a1a8eb7267ca3990af0a16
+f32cd0ac41a7614914a1a8eb7267ca3990af0a16
+python-mccabe_0.5.3.orig.tar.gz
+d638c0720f7b87feae6577294ca48d4dc41946c6
+8460
 debianTag="debian/%e%v"
 patchedTag="patched/%e%v"
 upstreamTag="upstream/%e%u"
diff -Nru python-mccabe-0.5.2/mccabe.egg-info/PKG-INFO python-mccabe-0.5.3/mccabe.egg-info/PKG-INFO
--- python-mccabe-0.5.2/mccabe.egg-info/PKG-INFO	2016-07-31 21:05:53.000000000 +0200
+++ python-mccabe-0.5.3/mccabe.egg-info/PKG-INFO	2016-12-14 14:09:21.000000000 +0100
@@ -1,6 +1,6 @@
 Metadata-Version: 1.1
 Name: mccabe
-Version: 0.5.2
+Version: 0.5.3
 Summary: McCabe checker, plugin for flake8
 Home-page: https://github.com/pycqa/mccabe
 Author: Ian Cordasco
@@ -73,6 +73,11 @@
         Changes
         -------
         
+        0.5.3 - 2016-12-14
+        ``````````````````
+        
+        * Report actual column number of violation instead of the start of the line
+        
         0.5.2 - 2016-07-31
         ``````````````````
         
diff -Nru python-mccabe-0.5.2/mccabe.py python-mccabe-0.5.3/mccabe.py
--- python-mccabe-0.5.2/mccabe.py	2016-07-31 21:04:50.000000000 +0200
+++ python-mccabe-0.5.3/mccabe.py	2016-12-14 14:07:11.000000000 +0100
@@ -16,7 +16,7 @@
 except ImportError:   # Python 2.5
     from flake8.util import ast, iter_child_nodes
 
-__version__ = '0.5.2'
+__version__ = '0.5.3'
 
 
 class ASTVisitor(object):
@@ -61,10 +61,11 @@
 
 
 class PathGraph(object):
-    def __init__(self, name, entity, lineno):
+    def __init__(self, name, entity, lineno, column=0):
         self.name = name
         self.entity = entity
         self.lineno = lineno
+        self.column = column
         self.nodes = defaultdict(list)
 
     def connect(self, n1, n2):
@@ -116,7 +117,7 @@
         else:
             entity = node.name
 
-        name = '%d:1: %r' % (node.lineno, entity)
+        name = '%d:%d: %r' % (node.lineno, node.col_offset, entity)
 
         if self.graph is not None:
             # closure
@@ -128,7 +129,7 @@
             self.graph.connect(pathnode, bottom)
             self.tail = bottom
         else:
-            self.graph = PathGraph(name, entity, node.lineno)
+            self.graph = PathGraph(name, entity, node.lineno, node.col_offset)
             pathnode = PathNode(name)
             self.tail = pathnode
             self.dispatch_list(node.body)
@@ -178,7 +179,7 @@
         """create the subgraphs representing any `if` and `for` statements"""
         if self.graph is None:
             # global loop
-            self.graph = PathGraph(name, name, node.lineno)
+            self.graph = PathGraph(name, name, node.lineno, node.col_offset)
             pathnode = PathNode(name)
             self._subgraph_parse(node, pathnode, extra_blocks)
             self.graphs["%s%s" % (self.classname, name)] = self.graph
@@ -265,7 +266,7 @@
         for graph in visitor.graphs.values():
             if graph.complexity() > self.max_complexity:
                 text = self._error_tmpl % (graph.entity, graph.complexity())
-                yield graph.lineno, 0, text, type(self)
+                yield graph.lineno, graph.column, text, type(self)
 
 
 def get_code_complexity(code, threshold=7, filename='stdin'):
diff -Nru python-mccabe-0.5.2/PKG-INFO python-mccabe-0.5.3/PKG-INFO
--- python-mccabe-0.5.2/PKG-INFO	2016-07-31 21:05:53.000000000 +0200
+++ python-mccabe-0.5.3/PKG-INFO	2016-12-14 14:09:22.000000000 +0100
@@ -1,6 +1,6 @@
 Metadata-Version: 1.1
 Name: mccabe
-Version: 0.5.2
+Version: 0.5.3
 Summary: McCabe checker, plugin for flake8
 Home-page: https://github.com/pycqa/mccabe
 Author: Ian Cordasco
@@ -73,6 +73,11 @@
         Changes
         -------
         
+        0.5.3 - 2016-12-14
+        ``````````````````
+        
+        * Report actual column number of violation instead of the start of the line
+        
         0.5.2 - 2016-07-31
         ``````````````````
         
diff -Nru python-mccabe-0.5.2/README.rst python-mccabe-0.5.3/README.rst
--- python-mccabe-0.5.2/README.rst	2016-07-31 21:04:39.000000000 +0200
+++ python-mccabe-0.5.3/README.rst	2016-12-14 14:07:04.000000000 +0100
@@ -65,6 +65,11 @@
 Changes
 -------
 
+0.5.3 - 2016-12-14
+``````````````````
+
+* Report actual column number of violation instead of the start of the line
+
 0.5.2 - 2016-07-31
 ``````````````````
 

--- End Message ---
--- Begin Message ---
Unblocked.

--- End Message ---

Reply to: