Hello community,

here is the log from the commit of package python-Genshi for openSUSE:Factory 
checked in at 2019-05-05 21:18:47
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-Genshi (Old)
 and      /work/SRC/openSUSE:Factory/.python-Genshi.new.5148 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-Genshi"

Sun May  5 21:18:47 2019 rev:16 rq:699370 version:0.7.2

Changes:
--------
--- /work/SRC/openSUSE:Factory/python-Genshi/python-Genshi.changes      
2019-03-08 13:28:28.698992983 +0100
+++ /work/SRC/openSUSE:Factory/.python-Genshi.new.5148/python-Genshi.changes    
2019-05-05 21:18:48.840851337 +0200
@@ -1,0 +2,6 @@
+Mon Apr 29 07:58:50 UTC 2019 - Tomáš Chvátal <[email protected]>
+
+- Update to 0.7.2:
+  * Add support for Python 3.8.
+
+-------------------------------------------------------------------

Old:
----
  Genshi-0.7.1.tar.gz

New:
----
  Genshi-0.7.2.tar.gz

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

Other differences:
------------------
++++++ python-Genshi.spec ++++++
--- /var/tmp/diff_new_pack.nllQ7x/_old  2019-05-05 21:18:50.080854715 +0200
+++ /var/tmp/diff_new_pack.nllQ7x/_new  2019-05-05 21:18:50.108854791 +0200
@@ -19,7 +19,7 @@
 %{?!python_module:%define python_module() python-%{**} python3-%{**}}
 %define oldpython python
 Name:           python-Genshi
-Version:        0.7.1
+Version:        0.7.2
 Release:        0
 Summary:        A toolkit for generation of output for the web
 License:        BSD-3-Clause

++++++ Genshi-0.7.1.tar.gz -> Genshi-0.7.2.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/Genshi-0.7.1/ChangeLog new/Genshi-0.7.2/ChangeLog
--- old/Genshi-0.7.1/ChangeLog  2018-09-01 20:55:02.000000000 +0200
+++ new/Genshi-0.7.2/ChangeLog  2019-04-27 22:26:09.000000000 +0200
@@ -1,5 +1,12 @@
+Version 0.7.2
+https://github.com/edgewall/genshi/releases/tag/0.7.2
+(Apr 27 2019, from branches/stable/0.7.x)
+
+ * Add support for Python 3.8.
+
+
 Version 0.7.1
-https://github.com/edgewall/genshi/tags/0.7.1/
+https://github.com/edgewall/genshi/releases/tag/0.7.1
 (Sep 1 2018, from branches/stable/0.7.x)
 
  * Add support for Python 3.5, 3.6 and 3.7.
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/Genshi-0.7.1/Genshi.egg-info/PKG-INFO 
new/Genshi-0.7.2/Genshi.egg-info/PKG-INFO
--- old/Genshi-0.7.1/Genshi.egg-info/PKG-INFO   2018-09-01 21:09:21.000000000 
+0200
+++ new/Genshi-0.7.2/Genshi.egg-info/PKG-INFO   2019-04-27 22:26:38.000000000 
+0200
@@ -1,6 +1,6 @@
 Metadata-Version: 2.1
 Name: Genshi
-Version: 0.7.1
+Version: 0.7.2
 Summary: A toolkit for generation of output for the web
 Home-page: http://genshi.edgewall.org/
 Author: Edgewall Software
@@ -25,5 +25,5 @@
 Classifier: Topic :: Software Development :: Libraries :: Python Modules
 Classifier: Topic :: Text Processing :: Markup :: HTML
 Classifier: Topic :: Text Processing :: Markup :: XML
-Provides-Extra: i18n
 Provides-Extra: plugin
+Provides-Extra: i18n
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/Genshi-0.7.1/PKG-INFO new/Genshi-0.7.2/PKG-INFO
--- old/Genshi-0.7.1/PKG-INFO   2018-09-01 21:09:21.000000000 +0200
+++ new/Genshi-0.7.2/PKG-INFO   2019-04-27 22:26:39.000000000 +0200
@@ -1,6 +1,6 @@
 Metadata-Version: 2.1
 Name: Genshi
-Version: 0.7.1
+Version: 0.7.2
 Summary: A toolkit for generation of output for the web
 Home-page: http://genshi.edgewall.org/
 Author: Edgewall Software
@@ -25,5 +25,5 @@
 Classifier: Topic :: Software Development :: Libraries :: Python Modules
 Classifier: Topic :: Text Processing :: Markup :: HTML
 Classifier: Topic :: Text Processing :: Markup :: XML
-Provides-Extra: i18n
 Provides-Extra: plugin
+Provides-Extra: i18n
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/Genshi-0.7.1/genshi/__init__.py 
new/Genshi-0.7.2/genshi/__init__.py
--- old/Genshi-0.7.1/genshi/__init__.py 2018-09-01 20:55:02.000000000 +0200
+++ new/Genshi-0.7.2/genshi/__init__.py 2019-04-27 22:26:09.000000000 +0200
@@ -20,7 +20,7 @@
 """
 
 __docformat__ = 'restructuredtext en'
-__version__ = '0.7.1'
+__version__ = '0.7.2'
 
 from genshi.core import *
 from genshi.input import ParseError, XML, HTML
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/Genshi-0.7.1/genshi/compat.py 
new/Genshi-0.7.2/genshi/compat.py
--- old/Genshi-0.7.1/genshi/compat.py   2018-07-03 17:10:34.000000000 +0200
+++ new/Genshi-0.7.2/genshi/compat.py   2019-04-27 22:26:09.000000000 +0200
@@ -13,6 +13,7 @@
 
 """Various Python version compatibility classes and functions."""
 
+import _ast
 import sys
 from types import CodeType
 
@@ -96,6 +97,18 @@
                         code.co_varnames, filename, name, lineno,
                         code.co_lnotab, (), ())
 
+
+# In Python 3.8, Str and Ellipsis was replaced by Constant
+
+try:
+    _ast_Ellipsis = _ast.Ellipsis
+    _ast_Str = _ast.Str
+    _ast_Str_value = lambda obj: obj.s
+except AttributeError:
+    _ast_Ellipsis = _ast_Str = _ast.Constant
+    _ast_Str_value = lambda obj: obj.value
+
+
 # Compatibility fallback implementations for Python < 2.6
 
 try:
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/Genshi-0.7.1/genshi/filters/i18n.py 
new/Genshi-0.7.2/genshi/filters/i18n.py
--- old/Genshi-0.7.1/genshi/filters/i18n.py     2018-07-05 17:10:22.000000000 
+0200
+++ new/Genshi-0.7.2/genshi/filters/i18n.py     2019-04-27 22:26:09.000000000 
+0200
@@ -33,7 +33,7 @@
 from genshi.template.base import DirectiveFactory, EXPR, SUB, _apply_directives
 from genshi.template.directives import Directive, StripDirective
 from genshi.template.markup import MarkupTemplate, EXEC
-from genshi.compat import IS_PYTHON2
+from genshi.compat import IS_PYTHON2, _ast_Str, _ast_Str_value
 
 __all__ = ['Translator', 'extract']
 __docformat__ = 'restructuredtext en'
@@ -1187,10 +1187,11 @@
                 and node.func.id in gettext_functions:
             strings = []
             def _add(arg):
-                if isinstance(arg, _ast.Str) and isinstance(arg.s, unicode):
-                    strings.append(arg.s)
-                elif isinstance(arg, _ast.Str):
-                    strings.append(unicode(arg.s, 'utf-8'))
+                if isinstance(arg, _ast_Str) \
+                        and isinstance(_ast_Str_value(arg), unicode):
+                    strings.append(_ast_Str_value(arg))
+                elif isinstance(arg, _ast_Str):
+                    strings.append(unicode(_ast_Str_value(arg), 'utf-8'))
                 elif arg:
                     strings.append(None)
             [_add(arg) for arg in node.args]
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/Genshi-0.7.1/genshi/template/astutil.py 
new/Genshi-0.7.2/genshi/template/astutil.py
--- old/Genshi-0.7.1/genshi/template/astutil.py 2018-07-05 17:10:22.000000000 
+0200
+++ new/Genshi-0.7.2/genshi/template/astutil.py 2019-04-27 22:26:09.000000000 
+0200
@@ -21,7 +21,7 @@
     def parse(source, mode):
         return compile(source, '', mode, _ast.PyCF_ONLY_AST)
 
-from genshi.compat import IS_PYTHON2, isstring
+from genshi.compat import IS_PYTHON2, isstring, _ast_Ellipsis
 
 __docformat__ = 'restructuredtext en'
 
@@ -705,6 +705,10 @@
     def visit_Str(self, node):
         self._write(repr(node.s))
 
+    # Constant(object value)
+    def visit_Constant(self, node):
+        self._write(repr(node.value))
+
     if not IS_PYTHON2:
         # Bytes(bytes s)
         def visit_Bytes(self, node):
@@ -721,7 +725,7 @@
         self.visit(node.value)
         self._write('[')
         def _process_slice(node):
-            if isinstance(node, _ast.Ellipsis):
+            if isinstance(node, _ast_Ellipsis):
                 self._write('...')
             elif isinstance(node, _ast.Slice):
                 if getattr(node, 'lower', 'None'):
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/Genshi-0.7.1/genshi/template/eval.py 
new/Genshi-0.7.2/genshi/template/eval.py
--- old/Genshi-0.7.1/genshi/template/eval.py    2018-07-05 17:10:22.000000000 
+0200
+++ new/Genshi-0.7.2/genshi/template/eval.py    2019-04-27 22:26:09.000000000 
+0200
@@ -25,7 +25,7 @@
 from genshi.util import flatten
 
 from genshi.compat import get_code_params, build_code_chunk, isstring, \
-                          IS_PYTHON2
+                          IS_PYTHON2, _ast_Str
 
 __all__ = ['Code', 'Expression', 'Suite', 'LenientLookup', 'StrictLookup',
            'Undefined', 'UndefinedError']
@@ -531,7 +531,7 @@
             try: # If the string is ASCII, return a `str` object
                 node.s.decode('ascii')
             except ValueError: # Otherwise return a `unicode` object
-                return _new(_ast.Str, node.s.decode('utf-8'))
+                return _new(_ast_Str, node.s.decode('utf-8'))
         return node
 
     def visit_ClassDef(self, node):
@@ -556,7 +556,7 @@
                 node = _new(_ast.Expr, _new(_ast.Call,
                     _new(_ast.Name, '_star_import_patch'), [
                         _new(_ast.Name, '__data__'),
-                        _new(_ast.Str, node.module)
+                        _new(_ast_Str, node.module)
                     ], (), ()))
             return node
         if len(self.locals) > 1:
@@ -613,7 +613,7 @@
             # Otherwise, translate the name ref into a context lookup
             name = _new(_ast.Name, '_lookup_name', _ast.Load())
             namearg = _new(_ast.Name, '__data__', _ast.Load())
-            strarg = _new(_ast.Str, node.id)
+            strarg = _new(_ast_Str, node.id)
             node = _new(_ast.Call, name, [namearg, strarg], [])
         elif isinstance(node.ctx, _ast.Store):
             if len(self.locals) > 1:
@@ -632,7 +632,7 @@
             return ASTTransformer.visit_Attribute(self, node)
 
         func = _new(_ast.Name, '_lookup_attr', _ast.Load())
-        args = [self.visit(node.value), _new(_ast.Str, node.attr)]
+        args = [self.visit(node.value), _new(_ast_Str, node.attr)]
         return _new(_ast.Call, func, args, [])
 
     def visit_Subscript(self, node):
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/Genshi-0.7.1/setup.py new/Genshi-0.7.2/setup.py
--- old/Genshi-0.7.1/setup.py   2018-09-01 20:55:02.000000000 +0200
+++ new/Genshi-0.7.2/setup.py   2019-04-27 22:26:09.000000000 +0200
@@ -115,7 +115,7 @@
 
 setup(
     name = 'Genshi',
-    version = '0.7.1',
+    version = '0.7.2',
     description = 'A toolkit for generation of output for the web',
     long_description = \
 """Genshi is a Python library that provides an integrated set of


Reply via email to