Hello community,

here is the log from the commit of package python3-astroid for openSUSE:Factory 
checked in at 2015-11-02 12:55:50
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python3-astroid (Old)
 and      /work/SRC/openSUSE:Factory/.python3-astroid.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python3-astroid"

Changes:
--------
--- /work/SRC/openSUSE:Factory/python3-astroid/python3-astroid.changes  
2015-08-02 22:46:11.000000000 +0200
+++ /work/SRC/openSUSE:Factory/.python3-astroid.new/python3-astroid.changes     
2015-11-02 12:55:51.000000000 +0100
@@ -1,0 +2,6 @@
+Sun Nov  1 18:20:58 UTC 2015 - a...@gmx.de
+
+- update to version 1.3.8:
+  * Backport of  40e3176, which fixes issue #84.
+
+-------------------------------------------------------------------

Old:
----
  astroid-1.3.7.tar.gz

New:
----
  astroid-1.3.8.tar.gz

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

Other differences:
------------------
++++++ python3-astroid.spec ++++++
--- /var/tmp/diff_new_pack.8rHLVk/_old  2015-11-02 12:55:51.000000000 +0100
+++ /var/tmp/diff_new_pack.8rHLVk/_new  2015-11-02 12:55:51.000000000 +0100
@@ -17,7 +17,7 @@
 
 
 Name:           python3-astroid
-Version:        1.3.7
+Version:        1.3.8
 Release:        0
 Url:            http://bitbucket.org/logilab/astroid
 Summary:        Rebuild a new abstract syntax tree from Python's ast

++++++ astroid-1.3.7.tar.gz -> astroid-1.3.8.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/astroid-1.3.7/ChangeLog new/astroid-1.3.8/ChangeLog
--- old/astroid-1.3.7/ChangeLog 2015-07-27 17:07:47.000000000 +0200
+++ new/astroid-1.3.8/ChangeLog 2015-08-02 21:37:44.000000000 +0200
@@ -1,6 +1,10 @@
 Change log for the astroid package (used to be astng)
 =====================================================
 
+2015-08-02 -- 1.3.8
+
+    * Backport of  40e3176, which fixes issue #84.
+
 2015-07-27 -- 1.3.7
 
     * Improve the inference of six.moves, especially when using `from ... 
import ...`
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/astroid-1.3.7/PKG-INFO new/astroid-1.3.8/PKG-INFO
--- old/astroid-1.3.7/PKG-INFO  2015-07-27 17:33:11.000000000 +0200
+++ new/astroid-1.3.8/PKG-INFO  2015-08-02 22:40:06.000000000 +0200
@@ -1,6 +1,6 @@
 Metadata-Version: 1.1
 Name: astroid
-Version: 1.3.7
+Version: 1.3.8
 Summary: A abstract syntax tree for Python with inference support.
 Home-page: http://bitbucket.org/logilab/astroid
 Author: Logilab
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/astroid-1.3.7/astroid/__pkginfo__.py 
new/astroid-1.3.8/astroid/__pkginfo__.py
--- old/astroid-1.3.7/astroid/__pkginfo__.py    2015-07-27 17:17:12.000000000 
+0200
+++ new/astroid-1.3.8/astroid/__pkginfo__.py    2015-08-02 21:37:10.000000000 
+0200
@@ -20,10 +20,10 @@
 
 modname = 'astroid'
 
-numversion = (1, 3, 7)
+numversion = (1, 3, 8)
 version = '.'.join([str(num) for num in numversion])
 
-install_requires = ['logilab-common<=0.63.0', 'six']
+install_requires = ['logilab-common>=0.63.0', 'six']
 
 license = 'LGPL'
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/astroid-1.3.7/astroid/scoped_nodes.py 
new/astroid-1.3.8/astroid/scoped_nodes.py
--- old/astroid-1.3.7/astroid/scoped_nodes.py   2015-07-27 16:47:38.000000000 
+0200
+++ new/astroid-1.3.8/astroid/scoped_nodes.py   2015-08-02 21:35:55.000000000 
+0200
@@ -822,7 +822,8 @@
                 c = Class('temporary_class', None)
                 c.hide = True
                 c.parent = self
-                c.bases = [next(b.infer(context)) for b in caller.args[1:]]
+                bases = [next(b.infer(context)) for b in caller.args[1:]]
+                c.bases = [base for base in bases if base != YES]
                 c._metaclass = metaclass
                 yield c
                 return
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/astroid-1.3.7/astroid/tests/unittest_regrtest.py 
new/astroid-1.3.8/astroid/tests/unittest_regrtest.py
--- old/astroid-1.3.7/astroid/tests/unittest_regrtest.py        2015-07-27 
16:47:38.000000000 +0200
+++ new/astroid-1.3.8/astroid/tests/unittest_regrtest.py        2015-08-02 
22:37:37.000000000 +0200
@@ -19,11 +19,14 @@
 import unittest
 import textwrap
 
+import six
+
 from astroid import MANAGER, Instance, nodes
+from astroid.bases import BUILTINS
 from astroid.builder import AstroidBuilder
 from astroid.raw_building import build_module
 from astroid.manager import AstroidManager
-from astroid.test_utils import require_version
+from astroid.test_utils import require_version, extract_node
 from astroid.tests import resources
 
 class NonRegressionTests(resources.AstroidCacheSetupMixin,
@@ -241,6 +244,30 @@
         ancestors = list(klass.ancestors())
         self.assertEqual(ancestors[0].qname(), 'string.Template')
 
+    def test_ancestors_yes_in_bases(self):
+        # Test for issue https://bitbucket.org/logilab/astroid/issue/84
+        # This used to crash astroid with a TypeError, because an YES
+        # node was present in the bases
+        node = extract_node("""
+        def with_metaclass(meta, *bases):
+            class metaclass(meta):
+                def __new__(cls, name, this_bases, d):
+                    return meta(name, bases, d)
+        return type.__new__(metaclass, 'temporary_class', (), {})
+
+        import lala
+
+        class A(with_metaclass(object, lala.lala)): #@
+            pass
+        """)
+        ancestors = list(node.ancestors())
+        if six.PY3:
+            self.assertEqual(len(ancestors), 1)
+            self.assertEqual(ancestors[0].qname(),
+                             "{}.object".format(BUILTINS))
+        else:
+            self.assertEqual(len(ancestors), 0)
+
 
 class Whatever(object):
     a = property(lambda x: x, lambda x: x)
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/astroid-1.3.7/astroid.egg-info/PKG-INFO 
new/astroid-1.3.8/astroid.egg-info/PKG-INFO
--- old/astroid-1.3.7/astroid.egg-info/PKG-INFO 2015-07-27 17:33:04.000000000 
+0200
+++ new/astroid-1.3.8/astroid.egg-info/PKG-INFO 2015-08-02 22:40:00.000000000 
+0200
@@ -1,6 +1,6 @@
 Metadata-Version: 1.1
 Name: astroid
-Version: 1.3.7
+Version: 1.3.8
 Summary: A abstract syntax tree for Python with inference support.
 Home-page: http://bitbucket.org/logilab/astroid
 Author: Logilab
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/astroid-1.3.7/astroid.egg-info/requires.txt 
new/astroid-1.3.8/astroid.egg-info/requires.txt
--- old/astroid-1.3.7/astroid.egg-info/requires.txt     2015-07-27 
17:33:04.000000000 +0200
+++ new/astroid-1.3.8/astroid.egg-info/requires.txt     2015-08-02 
22:40:00.000000000 +0200
@@ -1,2 +1,2 @@
-logilab-common<=0.63.0
+logilab-common>=0.63.0
 six


Reply via email to