Hello community,

here is the log from the commit of package python3-raven for openSUSE:Factory 
checked in at 2016-07-15 12:50:54
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python3-raven (Old)
 and      /work/SRC/openSUSE:Factory/.python3-raven.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python3-raven"

Changes:
--------
--- /work/SRC/openSUSE:Factory/python3-raven/python3-raven.changes      
2016-05-30 09:58:40.000000000 +0200
+++ /work/SRC/openSUSE:Factory/.python3-raven.new/python3-raven.changes 
2016-07-15 12:51:05.000000000 +0200
@@ -1,0 +2,19 @@
+Thu Jul  7 15:51:41 UTC 2016 - a...@gmx.de
+
+- update to version 5.22.0:
+  * Fixed template reporting not working for certain versions of
+    Django.
+
+-------------------------------------------------------------------
+Sun Jul  3 16:47:39 UTC 2016 - a...@gmx.de
+
+- update to version 5.21.0:
+  * Add formatted attribute to message events
+  * Fill in empty filename if django fails to give one for template
+    information on newer Django versions with disabled debug mode.
+
+- changes from version 5.20.0:
+  * fixed an error that could cause certain SQL queries to fail to
+    record as breadcrumbs if no parameters were supplied.
+
+-------------------------------------------------------------------

Old:
----
  raven-5.19.0.tar.gz

New:
----
  raven-5.22.0.tar.gz

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

Other differences:
------------------
++++++ python3-raven.spec ++++++
--- /var/tmp/diff_new_pack.neWDuT/_old  2016-07-15 12:51:07.000000000 +0200
+++ /var/tmp/diff_new_pack.neWDuT/_new  2016-07-15 12:51:07.000000000 +0200
@@ -17,7 +17,7 @@
 
 
 Name:           python3-raven
-Version:        5.19.0
+Version:        5.22.0
 Release:        0
 Url:            https://pypi.python.org/pypi/raven
 Summary:        A client for Sentry

++++++ raven-5.19.0.tar.gz -> raven-5.22.0.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/raven-5.19.0/PKG-INFO new/raven-5.22.0/PKG-INFO
--- old/raven-5.19.0/PKG-INFO   2016-05-27 18:55:30.000000000 +0200
+++ new/raven-5.22.0/PKG-INFO   2016-07-07 16:28:31.000000000 +0200
@@ -1,6 +1,6 @@
 Metadata-Version: 1.1
 Name: raven
-Version: 5.19.0
+Version: 5.22.0
 Summary: Raven is a client for Sentry (https://getsentry.com)
 Home-page: https://github.com/getsentry/raven-python
 Author: Sentry
@@ -14,7 +14,7 @@
         full out-of-the-box support for many of the popular frameworks, 
including
         `Django <djangoproject.com>`_, `Flask <http://flask.pocoo.org/>`_, and 
`Pylons
         <http://www.pylonsproject.org/>`_. Raven also includes drop-in support 
for any
-        `WSGI <http://wsgi.readthedocs.org/>`_-compatible web application.
+        `WSGI <https://wsgi.readthedocs.io/>`_-compatible web application.
         
 Platform: UNKNOWN
 Classifier: Intended Audience :: Developers
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/raven-5.19.0/raven/contrib/django/client.py 
new/raven-5.22.0/raven/contrib/django/client.py
--- old/raven-5.19.0/raven/contrib/django/client.py     2016-05-27 
18:24:21.000000000 +0200
+++ new/raven-5.22.0/raven/contrib/django/client.py     2016-05-30 
23:02:06.000000000 +0200
@@ -51,8 +51,11 @@
 
     if isinstance(params, dict):
         conv = _FormatConverter(params)
-        sql = sql % conv
-        params = conv.params
+        if params:
+            sql = sql % conv
+            params = conv.params
+        else:
+            params = ()
 
     for param in params or ():
         if param is None:
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/raven-5.19.0/raven/contrib/django/utils.py 
new/raven-5.22.0/raven/contrib/django/utils.py
--- old/raven-5.19.0/raven/contrib/django/utils.py      2016-01-13 
22:50:24.000000000 +0100
+++ new/raven-5.22.0/raven/contrib/django/utils.py      2016-07-07 
16:23:37.000000000 +0200
@@ -22,6 +22,16 @@
 
 
 def get_data_from_template(source, debug=None):
+    def _remove_numbers(items):
+        rv = []
+        for item in items:
+            # Some debug info from django has tuples in the form (lineno,
+            # code) instead of just the code there.
+            if isinstance(item, (list, tuple)) and len(item) == 2:
+                item = item[1]
+            rv.append(item)
+        return rv
+
     if debug is not None:
         start = debug['start']
         end = debug['end']
@@ -47,9 +57,12 @@
     else:
         raise TypeError('Source or debug needed')
 
-    pre_context = source_lines[max(lineno - 3, 0):lineno]
-    post_context = source_lines[(lineno + 1):(lineno + 4)]
-    context_line = source_lines[lineno]
+    if filename is None:
+        filename = '<unknown filename>'
+
+    pre_context = _remove_numbers(source_lines[max(lineno - 3, 0):lineno])
+    post_context = _remove_numbers(source_lines[(lineno + 1):(lineno + 4)])
+    context_line = _remove_numbers([source_lines[lineno]])[0]
 
     return {
         'template': {
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/raven-5.19.0/raven/events.py 
new/raven-5.22.0/raven/events.py
--- old/raven-5.19.0/raven/events.py    2015-11-19 20:14:55.000000000 +0100
+++ new/raven-5.22.0/raven/events.py    2016-06-16 14:57:25.000000000 +0200
@@ -106,6 +106,7 @@
             self.name: {
                 'message': message,
                 'params': self.transform(params),
+                'formatted': formatted,
             },
         }
         if 'message' not in data:
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/raven-5.19.0/raven/transport/threaded.py 
new/raven-5.22.0/raven/transport/threaded.py
--- old/raven-5.19.0/raven/transport/threaded.py        2016-05-03 
00:35:28.000000000 +0200
+++ new/raven-5.22.0/raven/transport/threaded.py        2016-07-07 
16:15:41.000000000 +0200
@@ -117,7 +117,7 @@
         self._lock.acquire()
         try:
             if not self.is_alive():
-                self._thread = threading.Thread(target=self._target)
+                self._thread = threading.Thread(target=self._target, 
name="raven.AsyncWorker")
                 self._thread.setDaemon(True)
                 self._thread.start()
                 self._thread_for_pid = os.getpid()
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/raven-5.19.0/raven/utils/stacks.py 
new/raven-5.22.0/raven/utils/stacks.py
--- old/raven-5.19.0/raven/utils/stacks.py      2016-05-27 18:24:21.000000000 
+0200
+++ new/raven-5.22.0/raven/utils/stacks.py      2016-07-07 16:15:41.000000000 
+0200
@@ -62,15 +62,24 @@
     upper_bound = min(lineno + 1 + context_lines, len(source))
 
     try:
-        pre_context = [line.strip('\r\n') for line in 
source[lower_bound:lineno]]
+        pre_context = [
+            line.strip('\r\n')
+            for line in source[lower_bound:lineno]
+        ]
         context_line = source[lineno].strip('\r\n')
-        post_context = [line.strip('\r\n') for line in
-                        source[(lineno + 1):upper_bound]]
+        post_context = [
+            line.strip('\r\n')
+            for line in source[(lineno + 1):upper_bound]
+        ]
     except IndexError:
         # the file may have changed since it was loaded into memory
         return None, None, None
 
-    return pre_context, context_line, post_context
+    return (
+        slim_string(pre_context),
+        slim_string(context_line),
+        slim_string(post_context)
+    )
 
 
 def label_from_frame(frame):
@@ -243,6 +252,14 @@
     return frames
 
 
+def slim_string(value, length=512):
+    if not value:
+        return value
+    if len(value) > length:
+        return value[:length - 3] + '...'
+    return value[:length]
+
+
 def get_stack_info(frames, transformer=transform, capture_locals=True,
                    frame_allowance=25):
     """
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/raven-5.19.0/raven.egg-info/PKG-INFO 
new/raven-5.22.0/raven.egg-info/PKG-INFO
--- old/raven-5.19.0/raven.egg-info/PKG-INFO    2016-05-27 18:55:29.000000000 
+0200
+++ new/raven-5.22.0/raven.egg-info/PKG-INFO    2016-07-07 16:28:30.000000000 
+0200
@@ -1,6 +1,6 @@
 Metadata-Version: 1.1
 Name: raven
-Version: 5.19.0
+Version: 5.22.0
 Summary: Raven is a client for Sentry (https://getsentry.com)
 Home-page: https://github.com/getsentry/raven-python
 Author: Sentry
@@ -14,7 +14,7 @@
         full out-of-the-box support for many of the popular frameworks, 
including
         `Django <djangoproject.com>`_, `Flask <http://flask.pocoo.org/>`_, and 
`Pylons
         <http://www.pylonsproject.org/>`_. Raven also includes drop-in support 
for any
-        `WSGI <http://wsgi.readthedocs.org/>`_-compatible web application.
+        `WSGI <https://wsgi.readthedocs.io/>`_-compatible web application.
         
 Platform: UNKNOWN
 Classifier: Intended Audience :: Developers
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/raven-5.19.0/setup.py new/raven-5.22.0/setup.py
--- old/raven-5.19.0/setup.py   2016-05-27 18:37:52.000000000 +0200
+++ new/raven-5.22.0/setup.py   2016-07-07 16:27:50.000000000 +0200
@@ -7,7 +7,7 @@
 full out-of-the-box support for many of the popular frameworks, including
 `Django <djangoproject.com>`_, `Flask <http://flask.pocoo.org/>`_, and `Pylons
 <http://www.pylonsproject.org/>`_. Raven also includes drop-in support for any
-`WSGI <http://wsgi.readthedocs.org/>`_-compatible web application.
+`WSGI <https://wsgi.readthedocs.io/>`_-compatible web application.
 """
 
 # Hack to prevent stupid "TypeError: 'NoneType' object is not callable" error
@@ -97,7 +97,7 @@
 
 setup(
     name='raven',
-    version='5.19.0',
+    version='5.22.0',
     author='Sentry',
     author_email='he...@getsentry.com',
     url='https://github.com/getsentry/raven-python',
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/raven-5.19.0/tests/transport/tests.py 
new/raven-5.22.0/tests/transport/tests.py
--- old/raven-5.19.0/tests/transport/tests.py   2015-09-29 23:43:22.000000000 
+0200
+++ new/raven-5.22.0/tests/transport/tests.py   2016-06-16 14:57:25.000000000 
+0200
@@ -77,7 +77,11 @@
         msg = c.build_msg('raven.events.Message', message='foo', date=d)
         expected = {
             'project': '1',
-            'sentry.interfaces.Message': {'message': 'foo', 'params': ()},
+            'sentry.interfaces.Message': {
+                'message': 'foo',
+                'params': (),
+                'formatted': None,
+            },
             'server_name': 'test_server',
             'level': 40,
             'tags': {},


Reply via email to