commit python-astroid for openSUSE:Factory
Hello community, here is the log from the commit of package python-astroid for openSUSE:Factory checked in at 2020-06-26 21:44:15 Comparing /work/SRC/openSUSE:Factory/python-astroid (Old) and /work/SRC/openSUSE:Factory/.python-astroid.new.3060 (New) Package is "python-astroid" Fri Jun 26 21:44:15 2020 rev:25 rq:816653 version:2.4.2 Changes: --- /work/SRC/openSUSE:Factory/python-astroid/python-astroid.changes 2020-06-21 19:03:05.572361467 +0200 +++ /work/SRC/openSUSE:Factory/.python-astroid.new.3060/python-astroid.changes 2020-06-26 21:44:26.381638311 +0200 @@ -1,0 +2,6 @@ +Tue Jun 23 16:52:52 UTC 2020 - Matej Cepl + +- Add part_rm_dep_imp.patch to replace missing `imp` package + (gh#PyCQA/astroid#686). + +--- New: part_rm_dep_imp.patch Other differences: -- ++ python-astroid.spec ++ --- /var/tmp/diff_new_pack.a7kvMd/_old 2020-06-26 21:44:27.057640474 +0200 +++ /var/tmp/diff_new_pack.a7kvMd/_new 2020-06-26 21:44:27.061640487 +0200 @@ -26,6 +26,8 @@ URL:https://github.com/pycqa/astroid Source: https://files.pythonhosted.org/packages/source/a/astroid/astroid-%{version}.tar.gz Patch0: unpin-deps.patch +# PATCH-FIX-UPSTREAM part_rm_dep_imp.patch gh#PyCQA/astroid#686 mc...@suse.com +Patch1: part_rm_dep_imp.patch BuildRequires: %{python_module lazy-object-proxy >= 1.4} BuildRequires: %{python_module pytest-runner} BuildRequires: %{python_module pytest} @@ -59,7 +61,7 @@ %prep %setup -q -n astroid-%{version} -%patch0 -p1 +%autopatch -p1 %build %python_build ++ part_rm_dep_imp.patch ++ >From 389fbcfd675b914f53617a0de04f1184bd915fce Mon Sep 17 00:00:00 2001 From: Derek Gustafson Date: Wed, 17 Jul 2019 22:19:47 -0400 Subject: [PATCH] Partially remove dependency on imp. --- astroid/brain/brain_six.py| 2 +- astroid/interpreter/_import/spec.py | 89 +++ astroid/modutils.py | 27 -- astroid/scoped_nodes.py | 1 + .../tests/testdata/python2/data/nonregr.py| 4 +- .../tests/testdata/python3/data/nonregr.py| 4 +- astroid/tests/unittest_brain.py | 6 +- astroid/tests/unittest_modutils.py| 17 8 files changed, 97 insertions(+), 53 deletions(-) --- a/astroid/interpreter/_import/spec.py +++ b/astroid/interpreter/_import/spec.py @@ -12,17 +12,13 @@ import abc import collections import distutils import enum -import imp import os import sys import zipimport -try: -import importlib.machinery +import importlib.machinery -_HAS_MACHINERY = True -except ImportError: -_HAS_MACHINERY = False +_HAS_MACHINERY = True try: from functools import lru_cache @@ -37,22 +33,6 @@ ModuleType = enum.Enum( "PY_CODERESOURCE PY_COMPILED PY_FROZEN PY_RESOURCE " "PY_SOURCE PY_ZIPMODULE PY_NAMESPACE", ) -_ImpTypes = { -imp.C_BUILTIN: ModuleType.C_BUILTIN, -imp.C_EXTENSION: ModuleType.C_EXTENSION, -imp.PKG_DIRECTORY: ModuleType.PKG_DIRECTORY, -imp.PY_COMPILED: ModuleType.PY_COMPILED, -imp.PY_FROZEN: ModuleType.PY_FROZEN, -imp.PY_SOURCE: ModuleType.PY_SOURCE, -} -if hasattr(imp, "PY_RESOURCE"): -_ImpTypes[imp.PY_RESOURCE] = ModuleType.PY_RESOURCE -if hasattr(imp, "PY_CODERESOURCE"): -_ImpTypes[imp.PY_CODERESOURCE] = ModuleType.PY_CODERESOURCE - - -def _imp_type_to_module_type(imp_type): -return _ImpTypes[imp_type] _ModuleSpec = collections.namedtuple( @@ -118,23 +98,62 @@ class ImpFinder(Finder): """A finder based on the imp module.""" def find_module(self, modname, module_parts, processed, submodule_path): +if not isinstance(modname, str): +raise TypeError("'modname' must be a str, not {}".format(type(modname))) if submodule_path is not None: submodule_path = list(submodule_path) -try: -stream, mp_filename, mp_desc = imp.find_module(modname, submodule_path) -except ImportError: -return None - -# Close resources. -if stream: -stream.close() - -return ModuleSpec( -name=modname, -location=mp_filename, -module_type=_imp_type_to_module_type(mp_desc[2]), +else: +try: +loader = importlib.util.find_spec(modname) +if loader: +if loader.loader is importlib.machinery.BuiltinImporter: +return ModuleSpec( +name=modname, +location=None, +module_type=ModuleType.C_BUILTIN, +) +
commit python-astroid for openSUSE:Factory
Hello community, here is the log from the commit of package python-astroid for openSUSE:Factory checked in at 2020-06-21 18:51:50 Comparing /work/SRC/openSUSE:Factory/python-astroid (Old) and /work/SRC/openSUSE:Factory/.python-astroid.new.3606 (New) Package is "python-astroid" Sun Jun 21 18:51:50 2020 rev:24 rq:814800 version:2.4.2 Changes: --- /work/SRC/openSUSE:Factory/python-astroid/python-astroid.changes 2020-05-28 09:08:01.859827058 +0200 +++ /work/SRC/openSUSE:Factory/.python-astroid.new.3606/python-astroid.changes 2020-06-21 19:03:05.572361467 +0200 @@ -1,0 +2,7 @@ +Tue Jun 16 02:59:27 UTC 2020 - Steve Kowalik + +- Update to 2.4.2: + * `FunctionDef.is_generator` properly handles `yield` nodes in `While` tests + * Properly construct the arguments of infered property descriptors + +--- Old: astroid-2.4.1.tar.gz New: astroid-2.4.2.tar.gz Other differences: -- ++ python-astroid.spec ++ --- /var/tmp/diff_new_pack.9jyqeN/_old 2020-06-21 19:03:05.988362818 +0200 +++ /var/tmp/diff_new_pack.9jyqeN/_new 2020-06-21 19:03:05.992362831 +0200 @@ -19,7 +19,7 @@ %define skip_python2 1 %{?!python_module:%define python_module() python-%{**} python3-%{**}} Name: python-astroid -Version:2.4.1 +Version:2.4.2 Release:0 Summary:Representation of Python source as an AST for pylint License:LGPL-2.1-or-later ++ astroid-2.4.1.tar.gz -> astroid-2.4.2.tar.gz ++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/astroid-2.4.1/ChangeLog new/astroid-2.4.2/ChangeLog --- old/astroid-2.4.1/ChangeLog 2020-05-05 09:43:24.0 +0200 +++ new/astroid-2.4.2/ChangeLog 2020-06-08 08:51:41.0 +0200 @@ -2,6 +2,19 @@ astroid's ChangeLog === +What's New in astroid 2.4.2? + +Release Date: 2020-06-08 + +* `FunctionDef.is_generator` properly handles `yield` nodes in `While` tests + + Close PyCQA/pylint#3519 + +* Properly construct the arguments of infered property descriptors + + Close PyCQA/pylint#3648 + + What's New in astroid 2.4.1? Release Date: 2020-05-05 diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/astroid-2.4.1/PKG-INFO new/astroid-2.4.2/PKG-INFO --- old/astroid-2.4.1/PKG-INFO 2020-05-05 09:44:53.0 +0200 +++ new/astroid-2.4.2/PKG-INFO 2020-06-08 08:53:04.0 +0200 @@ -1,6 +1,6 @@ Metadata-Version: 1.2 Name: astroid -Version: 2.4.1 +Version: 2.4.2 Summary: An abstract syntax tree for Python with inference support. Home-page: https://github.com/PyCQA/astroid Author: Python Code Quality Authority diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/astroid-2.4.1/astroid/__pkginfo__.py new/astroid-2.4.2/astroid/__pkginfo__.py --- old/astroid-2.4.1/astroid/__pkginfo__.py2020-05-05 09:43:24.0 +0200 +++ new/astroid-2.4.2/astroid/__pkginfo__.py2020-06-08 08:51:41.0 +0200 @@ -21,7 +21,7 @@ """astroid packaging information""" -version = "2.4.1" +version = "2.4.2" numversion = tuple(int(elem) for elem in version.split(".") if elem.isdigit()) extras_require = {} diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/astroid-2.4.1/astroid/bases.py new/astroid-2.4.2/astroid/bases.py --- old/astroid-2.4.1/astroid/bases.py 2020-05-05 09:43:24.0 +0200 +++ new/astroid-2.4.2/astroid/bases.py 2020-06-08 08:51:41.0 +0200 @@ -486,7 +486,7 @@ if new_cls: return iter((new_cls,)) -return super(BoundMethod, self).infer_call_result(caller, context) +return super().infer_call_result(caller, context) def bool_value(self, context=None): return True diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/astroid-2.4.1/astroid/builder.py new/astroid-2.4.2/astroid/builder.py --- old/astroid-2.4.1/astroid/builder.py2020-05-05 09:43:24.0 +0200 +++ new/astroid-2.4.2/astroid/builder.py2020-06-08 08:51:41.0 +0200 @@ -77,7 +77,7 @@ # pylint: disable=redefined-outer-name def __init__(self, manager=None, apply_transforms=True): -super(AstroidBuilder, self).__init__() +super().__init__() self._manager = manager or MANAGER self._apply_transforms = apply_transforms diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/astroid-2.4.1/astroid/exceptions.py new/astroid-2.4.2/astroid/exceptions.py --- old/astroid-2.4.1
commit python-astroid for openSUSE:Factory
Hello community, here is the log from the commit of package python-astroid for openSUSE:Factory checked in at 2020-05-28 09:08:00 Comparing /work/SRC/openSUSE:Factory/python-astroid (Old) and /work/SRC/openSUSE:Factory/.python-astroid.new.3606 (New) Package is "python-astroid" Thu May 28 09:08:00 2020 rev:23 rq:807183 version:2.4.1 Changes: --- /work/SRC/openSUSE:Factory/python-astroid/python-astroid.changes 2019-11-22 10:24:31.621289422 +0100 +++ /work/SRC/openSUSE:Factory/.python-astroid.new.3606/python-astroid.changes 2020-05-28 09:08:01.859827058 +0200 @@ -1,0 +2,50 @@ +Thu May 7 04:36:24 UTC 2020 - Steve Kowalik + +- Update to 2.4.1: + * Handle the case where the raw builder fails to retrieve the ``__all__`` attribute + * Restructure the AST parsing heuristic to always pick the same module + * Changed setup.py to work with [distlib](https://pypi.org/project/distlib) + * Do not crash with SyntaxError when parsing namedtuples with invalid label + * Protect against ``infer_call_result`` failing with `InferenceError` in `Super.getattr()` + * Expose a ast_from_string method in AstroidManager, which will accept + * ``BoundMethod.implicit_parameters`` returns a proper value for ``__new__`` + * Allow slots added dynamically to a class to still be inferred + * Allow `FunctionDef.getattr` to look into both instance attrs and special attributes + * Infer qualified ``classmethod`` as a classmethod. + * Prevent a recursion error to happen when inferring the declared metaclass of a class + * Raise ``AttributeInferenceError`` when ``getattr()`` receives an empty name + * Prevent a recursion error for self reference variables and `type()` calls. + * Do not infer the first argument of a staticmethod in a metaclass as the class itself + * ``NodeNG.bool_value()`` gained an optional ``context`` parameter + * Pass a context argument to ``astroid.Arguments`` to prevent recursion errors + * Better inference of class and static methods decorated with custom methods + * Reverse the order of decorators for `infer_subscript` + * Prevent a recursion error when inferring self-referential variables without definition + * Numpy `datetime64.astype` return value is inferred as a `ndarray`. + * Skip non ``Assign`` and ``AnnAssign`` nodes from enum reinterpretation + * Numpy ``ndarray`` attributes ``imag`` and ``real`` are now inferred as ``ndarray``. + * Added a call to ``register_transform`` for all functions of the ``brain_numpy_core_multiarray`` + * Use the parent of the node when inferring aug assign nodes instead of the statement + * Added some functions to the ``brain_numpy_core_umath`` module + * Added some functions of the ``numpy.core.multiarray`` module + * All the ``numpy ufunc`` functions derived now from a common class that + * ``nodes.Const.itered`` returns a list of ``Const`` nodes, not strings + * The ``shape`` attribute of a ``numpy ndarray`` is now a ``ndarray`` + * Don't ignore special methods when inspecting gi classes + * Added transform for ``scipy.gaussian`` + * Add suport for inferring properties. + * Added a brain for ``responses`` + * Allow inferring positional only arguments. + * Retry parsing a module that has invalid type comments + * Scope the inference to the current bound node when inferring instances of classes + * Add support for inferring exception instances in all contexts + * Add more supported parameters to ``subprocess.check_output`` + * Infer args unpacking of ``self`` + * Clean up setup.py + * Handle StopIteration error in infer_int. + * Can access per argument type comments for positional only and keyword only arguments. + * Relax upper bound on `wrapt` + * Properly analyze CFFI compiled extensions. +- Refresh unpin-deps.patch + +--- Old: astroid-2.3.3.tar.gz New: astroid-2.4.1.tar.gz Other differences: -- ++ python-astroid.spec ++ --- /var/tmp/diff_new_pack.ODnzl0/_old 2020-05-28 09:08:02.999830476 +0200 +++ /var/tmp/diff_new_pack.ODnzl0/_new 2020-05-28 09:08:03.003830489 +0200 @@ -1,7 +1,7 @@ # # spec file for package python-astroid # -# Copyright (c) 2019 SUSE LLC. +# Copyright (c) 2020 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -19,7 +19,7 @@ %define skip_python2 1 %{?!python_module:%define python_module() python-%{**} python3-%{**}} Name: python-astroid -Version:2.3.3 +Version:2.4.1 Release:0 Summary:Representation of Python source as an AST for pylint License:LGPL-2.1-or-later ++ astroid-2.3.3.tar.gz
commit python-astroid for openSUSE:Factory
Hello community, here is the log from the commit of package python-astroid for openSUSE:Factory checked in at 2019-11-22 10:24:28 Comparing /work/SRC/openSUSE:Factory/python-astroid (Old) and /work/SRC/openSUSE:Factory/.python-astroid.new.26869 (New) Package is "python-astroid" Fri Nov 22 10:24:28 2019 rev:22 rq:748640 version:2.3.3 Changes: --- /work/SRC/openSUSE:Factory/python-astroid/python-astroid.changes 2019-11-04 17:13:54.564742068 +0100 +++ /work/SRC/openSUSE:Factory/.python-astroid.new.26869/python-astroid.changes 2019-11-22 10:24:31.621289422 +0100 @@ -1,0 +2,7 @@ +Thu Nov 14 11:24:24 CET 2019 - Matej Cepl + +- Update to 2.3.3: + * Update six version to 1.13. +- Update unpin-deps.patch + +--- Old: astroid-2.3.2.tar.gz New: astroid-2.3.3.tar.gz Other differences: -- ++ python-astroid.spec ++ --- /var/tmp/diff_new_pack.02BIz2/_old 2019-11-22 10:24:33.137288975 +0100 +++ /var/tmp/diff_new_pack.02BIz2/_new 2019-11-22 10:24:33.145288972 +0100 @@ -1,7 +1,7 @@ # # spec file for package python-astroid # -# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2019 SUSE LLC. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -19,7 +19,7 @@ %define skip_python2 1 %{?!python_module:%define python_module() python-%{**} python3-%{**}} Name: python-astroid -Version:2.3.2 +Version:2.3.3 Release:0 Summary:Representation of Python source as an AST for pylint License:LGPL-2.1-or-later ++ astroid-2.3.2.tar.gz -> astroid-2.3.3.tar.gz ++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/astroid-2.3.2/ChangeLog new/astroid-2.3.3/ChangeLog --- old/astroid-2.3.2/ChangeLog 2019-10-18 11:16:13.0 +0200 +++ new/astroid-2.3.3/ChangeLog 2019-11-06 19:41:21.0 +0100 @@ -2,6 +2,13 @@ astroid's ChangeLog === +What's New in astroid 2.3.3? + +Release Date: 2019-11-06 + +* Relaxed `six` dependency. + + What's New in astroid 2.3.2? Release Date: 2019-10-18 diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/astroid-2.3.2/PKG-INFO new/astroid-2.3.3/PKG-INFO --- old/astroid-2.3.2/PKG-INFO 2019-10-18 11:17:53.0 +0200 +++ new/astroid-2.3.3/PKG-INFO 2019-11-06 19:42:59.0 +0100 @@ -1,6 +1,6 @@ Metadata-Version: 1.2 Name: astroid -Version: 2.3.2 +Version: 2.3.3 Summary: An abstract syntax tree for Python with inference support. Home-page: https://github.com/PyCQA/astroid Author: Python Code Quality Authority diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/astroid-2.3.2/astroid/__pkginfo__.py new/astroid-2.3.3/astroid/__pkginfo__.py --- old/astroid-2.3.2/astroid/__pkginfo__.py2019-10-18 11:16:13.0 +0200 +++ new/astroid-2.3.3/astroid/__pkginfo__.py2019-11-06 19:41:21.0 +0100 @@ -17,13 +17,13 @@ """astroid packaging information""" -version = "2.3.2" +version = "2.3.3" numversion = tuple(int(elem) for elem in version.split(".") if elem.isdigit()) extras_require = {} install_requires = [ "lazy_object_proxy==1.4.*", -"six==1.12", +"six~=1.12", "wrapt==1.11.*", 'typed-ast>=1.4.0,<1.5;implementation_name== "cpython" and python_version<"3.8"', ] diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/astroid-2.3.2/astroid.egg-info/PKG-INFO new/astroid-2.3.3/astroid.egg-info/PKG-INFO --- old/astroid-2.3.2/astroid.egg-info/PKG-INFO 2019-10-18 11:17:53.0 +0200 +++ new/astroid-2.3.3/astroid.egg-info/PKG-INFO 2019-11-06 19:42:59.0 +0100 @@ -1,6 +1,6 @@ Metadata-Version: 1.2 Name: astroid -Version: 2.3.2 +Version: 2.3.3 Summary: An abstract syntax tree for Python with inference support. Home-page: https://github.com/PyCQA/astroid Author: Python Code Quality Authority diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/astroid-2.3.2/astroid.egg-info/requires.txt new/astroid-2.3.3/astroid.egg-info/requires.txt --- old/astroid-2.3.2/astroid.egg-info/requires.txt 2019-10-18 11:17:53.0 +0200 +++ new/astroid-2.3.3/astroid.egg-info/requires.txt 2019-11-06 19:42:59.0 +0100 @@ -1,5 +1,5 @@ lazy_object_proxy==1.4.* -six==1.12 +six~=1.12 wrapt==1.11.* [:implementation_name == "cpython" and python_version < "3.8"] ++ unpin-deps.patch ++ --- /var/tmp/diff_new_pack.02BIz2/_old 2019-1
commit python-astroid for openSUSE:Factory
Hello community, here is the log from the commit of package python-astroid for openSUSE:Factory checked in at 2019-11-04 17:13:51 Comparing /work/SRC/openSUSE:Factory/python-astroid (Old) and /work/SRC/openSUSE:Factory/.python-astroid.new.2990 (New) Package is "python-astroid" Mon Nov 4 17:13:51 2019 rev:21 rq:744674 version:2.3.2 Changes: --- /work/SRC/openSUSE:Factory/python-astroid/python-astroid.changes 2019-10-10 11:51:10.691682255 +0200 +++ /work/SRC/openSUSE:Factory/.python-astroid.new.2990/python-astroid.changes 2019-11-04 17:13:54.564742068 +0100 @@ -1,0 +2,7 @@ +Fri Nov 1 08:34:46 UTC 2019 - Tomáš Chvátal + +- Update to 2.3.2: + * All type comments have as parent the corresponding `astroid` node + * Pass an inference context to `metaclass()` when inferring an object type + +--- Old: astroid-2.3.1.tar.gz New: astroid-2.3.2.tar.gz Other differences: -- ++ python-astroid.spec ++ --- /var/tmp/diff_new_pack.JF6rTB/_old 2019-11-04 17:13:55.312742867 +0100 +++ /var/tmp/diff_new_pack.JF6rTB/_new 2019-11-04 17:13:55.312742867 +0100 @@ -19,7 +19,7 @@ %define skip_python2 1 %{?!python_module:%define python_module() python-%{**} python3-%{**}} Name: python-astroid -Version:2.3.1 +Version:2.3.2 Release:0 Summary:Representation of Python source as an AST for pylint License:LGPL-2.1-or-later ++ astroid-2.3.1.tar.gz -> astroid-2.3.2.tar.gz ++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/astroid-2.3.1/ChangeLog new/astroid-2.3.2/ChangeLog --- old/astroid-2.3.1/ChangeLog 2019-09-30 10:04:18.0 +0200 +++ new/astroid-2.3.2/ChangeLog 2019-10-18 11:16:13.0 +0200 @@ -2,6 +2,28 @@ astroid's ChangeLog === +What's New in astroid 2.3.2? + +Release Date: 2019-10-18 + +* All type comments have as parent the corresponding `astroid` node + + Until now they had as parent the builtin `ast` node which meant + we were operating with primitive objects instead of our own. + + Close PyCQA/pylint#3174 + + +* Pass an inference context to `metaclass()` when inferring an object type + + This should prevent a bunch of recursion errors happening in pylint. + Also refactor the inference of `IfExp` nodes to use separate contexts + for each potential branch. + + Close PyCQA/pylint#3152 + Close PyCQA/pylint#3159 + + What's New in astroid 2.3.1? Release Date: 2019-09-30 diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/astroid-2.3.1/PKG-INFO new/astroid-2.3.2/PKG-INFO --- old/astroid-2.3.1/PKG-INFO 2019-09-30 10:06:04.0 +0200 +++ new/astroid-2.3.2/PKG-INFO 2019-10-18 11:17:53.0 +0200 @@ -1,6 +1,6 @@ Metadata-Version: 1.2 Name: astroid -Version: 2.3.1 +Version: 2.3.2 Summary: An abstract syntax tree for Python with inference support. Home-page: https://github.com/PyCQA/astroid Author: Python Code Quality Authority diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/astroid-2.3.1/astroid/__pkginfo__.py new/astroid-2.3.2/astroid/__pkginfo__.py --- old/astroid-2.3.1/astroid/__pkginfo__.py2019-09-30 10:04:18.0 +0200 +++ new/astroid-2.3.2/astroid/__pkginfo__.py2019-10-18 11:16:13.0 +0200 @@ -17,7 +17,7 @@ """astroid packaging information""" -version = "2.3.1" +version = "2.3.2" numversion = tuple(int(elem) for elem in version.split(".") if elem.isdigit()) extras_require = {} diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/astroid-2.3.1/astroid/bases.py new/astroid-2.3.2/astroid/bases.py --- old/astroid-2.3.1/astroid/bases.py 2019-09-30 10:04:18.0 +0200 +++ new/astroid-2.3.2/astroid/bases.py 2019-10-18 11:16:13.0 +0200 @@ -404,6 +404,7 @@ a subtype of ``type``, the name needs to be a string, the bases needs to be a tuple of classes """ +# pylint: disable=import-outside-toplevel; circular import from astroid import node_classes # Verify the metaclass diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/astroid-2.3.1/astroid/helpers.py new/astroid-2.3.2/astroid/helpers.py --- old/astroid-2.3.1/astroid/helpers.py2019-09-30 10:04:18.0 +0200 +++ new/astroid-2.3.2/astroid/helpers.py2019-10-18 11:16:13.0 +0200 @@ -52,7 +52,7 @@ for inferred in node.infer(context=context): if isinstance(inferred, scoped_nodes.ClassDef): if inferred.ne
commit python-astroid for openSUSE:Factory
Hello community, here is the log from the commit of package python-astroid for openSUSE:Factory checked in at 2019-10-10 11:51:05 Comparing /work/SRC/openSUSE:Factory/python-astroid (Old) and /work/SRC/openSUSE:Factory/.python-astroid.new.2352 (New) Package is "python-astroid" Thu Oct 10 11:51:05 2019 rev:20 rq:734939 version:2.3.1 Changes: --- /work/SRC/openSUSE:Factory/python-astroid/python-astroid.changes 2019-03-29 20:37:04.798627118 +0100 +++ /work/SRC/openSUSE:Factory/.python-astroid.new.2352/python-astroid.changes 2019-10-10 11:51:10.691682255 +0200 @@ -1,0 +2,18 @@ +Fri Oct 4 08:24:37 UTC 2019 - Tomáš Chvátal + +- Add patch to not use pinned dependencies and to work in our distro: + * unpin-deps.patch + +--- +Thu Oct 3 14:07:26 UTC 2019 - Marketa Calabkova + +- Update to 2.3.1 + * A transform for the builtin `dataclasses` module was added. + * Add a brain tip for ``subprocess.check_output`` + * Remove NodeNG.nearest method because of lack of usage in astroid and pylint. + * Allow importing wheel files. + * Dropped support for Python 3.4. + * Add support for Python 3.8's `NamedExpr` nodes, which is part of assignment expressions. + * ...and more. + +--- Old: astroid-2.2.5.tar.gz New: astroid-2.3.1.tar.gz unpin-deps.patch Other differences: -- ++ python-astroid.spec ++ --- /var/tmp/diff_new_pack.OwMJSa/_old 2019-10-10 11:51:11.443680258 +0200 +++ /var/tmp/diff_new_pack.OwMJSa/_new 2019-10-10 11:51:11.447680248 +0200 @@ -19,28 +19,28 @@ %define skip_python2 1 %{?!python_module:%define python_module() python-%{**} python3-%{**}} Name: python-astroid -Version:2.2.5 +Version:2.3.1 Release:0 Summary:Representation of Python source as an AST for pylint License:LGPL-2.1-or-later -Group: Development/Libraries/Python URL:https://github.com/pycqa/astroid Source: https://files.pythonhosted.org/packages/source/a/astroid/astroid-%{version}.tar.gz -BuildRequires: %{python_module lazy-object-proxy} +Patch0: unpin-deps.patch +BuildRequires: %{python_module lazy-object-proxy >= 1.4} BuildRequires: %{python_module pytest-runner} BuildRequires: %{python_module pytest} BuildRequires: %{python_module setuptools} -BuildRequires: %{python_module six} -BuildRequires: %{python_module wrapt} +BuildRequires: %{python_module six >= 1.12} +BuildRequires: %{python_module wrapt >= 1.11} BuildRequires: fdupes BuildRequires: python-rpm-macros -Requires: python-lazy-object-proxy -Requires: python-six -Requires: python-wrapt +Requires: python-lazy-object-proxy >= 1.4 +Requires: python-six >= 1.12 +Requires: python-wrapt >= 1.11 BuildArch: noarch -%if 0%{?suse_version} < 1500 -BuildRequires: %{python_module typing} -Requires: python-typing +%if 0%{?suse_version} <= 1500 +BuildRequires: %{python_module typed-ast} +Requires: python-typed-ast %endif %python_subpackages @@ -59,6 +59,7 @@ %prep %setup -q -n astroid-%{version} +%patch0 -p1 %build %python_build @@ -68,7 +69,7 @@ %python_expand %fdupes %{buildroot}%{$python_sitelib} %check -%python_expand PYTHONPATH=%{buildroot}%{$python_sitelib} py.test-%{$python_bin_suffix} -v +%pytest %files %{python_files} %license COPYING COPYING.LESSER ++ astroid-2.2.5.tar.gz -> astroid-2.3.1.tar.gz ++ 7092 lines of diff (skipped) ++ unpin-deps.patch ++ Index: astroid-2.3.1/astroid/__pkginfo__.py === --- astroid-2.3.1.orig/astroid/__pkginfo__.py +++ astroid-2.3.1/astroid/__pkginfo__.py @@ -22,10 +22,10 @@ numversion = tuple(int(elem) for elem in extras_require = {} install_requires = [ -"lazy_object_proxy==1.4.*", -"six==1.12", -"wrapt==1.11.*", -'typed-ast>=1.4.0,<1.5;implementation_name== "cpython" and python_version<"3.8"', +"lazy_object_proxy>=1.4", +"six>=1.12", +"wrapt>=1.11", +'typed-ast>=1.4.0;implementation_name== "cpython" and python_version<"3.7"', ] # pylint: disable=redefined-builtin; why license is a builtin anyway?
commit python-astroid for openSUSE:Factory
Hello community, here is the log from the commit of package python-astroid for openSUSE:Factory checked in at 2019-03-29 20:37:03 Comparing /work/SRC/openSUSE:Factory/python-astroid (Old) and /work/SRC/openSUSE:Factory/.python-astroid.new.25356 (New) Package is "python-astroid" Fri Mar 29 20:37:03 2019 rev:19 rq:687619 version:2.2.5 Changes: --- /work/SRC/openSUSE:Factory/python-astroid/python-astroid.changes 2019-03-08 11:01:23.744540859 +0100 +++ /work/SRC/openSUSE:Factory/.python-astroid.new.25356/python-astroid.changes 2019-03-29 20:37:04.798627118 +0100 @@ -1,0 +2,6 @@ +Mon Mar 11 09:46:52 UTC 2019 - Tomáš Chvátal + +- Update to 2.2.5: + * The last except handler wins when inferring variables bound in an except handler. + +--- @@ -4 +10 @@ -- Update to 2.2.1: +- Update to 2.2.4: Old: astroid-2.2.4.tar.gz New: astroid-2.2.5.tar.gz Other differences: -- ++ python-astroid.spec ++ --- /var/tmp/diff_new_pack.qakI7X/_old 2019-03-29 20:37:05.334627416 +0100 +++ /var/tmp/diff_new_pack.qakI7X/_new 2019-03-29 20:37:05.342627420 +0100 @@ -19,7 +19,7 @@ %define skip_python2 1 %{?!python_module:%define python_module() python-%{**} python3-%{**}} Name: python-astroid -Version:2.2.4 +Version:2.2.5 Release:0 Summary:Representation of Python source as an AST for pylint License:LGPL-2.1-or-later ++ astroid-2.2.4.tar.gz -> astroid-2.2.5.tar.gz ++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/astroid-2.2.4/ChangeLog new/astroid-2.2.5/ChangeLog --- old/astroid-2.2.4/ChangeLog 2019-03-05 10:54:36.0 +0100 +++ new/astroid-2.2.5/ChangeLog 2019-03-08 17:57:47.0 +0100 @@ -2,6 +2,14 @@ astroid's ChangeLog === +What's New in astroid 2.2.5? + +Release Date: 2019-03-08 + +* The last except handler wins when inferring variables bound in an except handler. + + Close PyCQA/pylint#2777, PyCQA/pylint#2802 + What's New in astroid 2.2.4? Release Date: 2019-03-05 @@ -42,6 +50,10 @@ Close PyCQA/pylint#2776 +* The last except handler wins when inferring variables bound in an except handler. + + Close PyCQA/pylint#2777 + What's New in astroid 2.2.0? Release Date: 2019-02-27 diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/astroid-2.2.4/PKG-INFO new/astroid-2.2.5/PKG-INFO --- old/astroid-2.2.4/PKG-INFO 2019-03-05 10:56:04.0 +0100 +++ new/astroid-2.2.5/PKG-INFO 2019-03-08 17:59:17.0 +0100 @@ -1,6 +1,6 @@ Metadata-Version: 1.2 Name: astroid -Version: 2.2.4 +Version: 2.2.5 Summary: An abstract syntax tree for Python with inference support. Home-page: https://github.com/PyCQA/astroid Author: Python Code Quality Authority diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/astroid-2.2.4/astroid/__pkginfo__.py new/astroid-2.2.5/astroid/__pkginfo__.py --- old/astroid-2.2.4/astroid/__pkginfo__.py2019-03-05 10:54:36.0 +0100 +++ new/astroid-2.2.5/astroid/__pkginfo__.py2019-03-08 17:57:47.0 +0100 @@ -21,7 +21,7 @@ modname = "astroid" -version = "2.2.4" +version = "2.2.5" numversion = tuple(int(elem) for elem in version.split(".") if elem.isdigit()) extras_require = {} diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/astroid-2.2.4/astroid/node_classes.py new/astroid-2.2.5/astroid/node_classes.py --- old/astroid-2.2.4/astroid/node_classes.py 2019-03-05 10:54:36.0 +0100 +++ new/astroid-2.2.5/astroid/node_classes.py 2019-03-08 17:57:47.0 +0100 @@ -1096,6 +1096,18 @@ context = contextmod.InferenceContext() return bases._infer_stmts(stmts, context, frame) +def _get_filtered_node_statements(self, nodes): +statements = [(node, node.statement()) for node in nodes] +# Next we check if we have ExceptHandlers that are parent +# of the underlying variable, in which case the last one survives +if len(statements) > 1 and all( +isinstance(stmt, ExceptHandler) for _, stmt in statements +): +statements = [ +(node, stmt) for node, stmt in statements if stmt.parent_of(self) +] +return statements + def _filter_stmts(self, stmts, frame, offset): """Filter the given list of statements to remove ignorable statements. @@ -1149,10 +1161,12 @@ else: # disabling lineno filtering mylineno = 0 + _s
commit python-astroid for openSUSE:Factory
Hello community, here is the log from the commit of package python-astroid for openSUSE:Factory checked in at 2019-03-08 11:01:21 Comparing /work/SRC/openSUSE:Factory/python-astroid (Old) and /work/SRC/openSUSE:Factory/.python-astroid.new.28833 (New) Package is "python-astroid" Fri Mar 8 11:01:21 2019 rev:18 rq:682136 version:2.2.4 Changes: --- /work/SRC/openSUSE:Factory/python-astroid/python-astroid.changes 2019-01-03 18:04:19.548263170 +0100 +++ /work/SRC/openSUSE:Factory/.python-astroid.new.28833/python-astroid.changes 2019-03-08 11:01:23.744540859 +0100 @@ -1,0 +2,6 @@ +Wed Mar 6 12:27:13 UTC 2019 - Tomáš Chvátal + +- Update to 2.2.1: + * Many changes inside, see ChangeLog + +--- Old: astroid-2.1.0.tar.gz pytest.ini New: astroid-2.2.4.tar.gz Other differences: -- ++ python-astroid.spec ++ --- /var/tmp/diff_new_pack.iuJqQi/_old 2019-03-08 11:01:24.652540715 +0100 +++ /var/tmp/diff_new_pack.iuJqQi/_new 2019-03-08 11:01:24.656540714 +0100 @@ -1,7 +1,7 @@ # # spec file for package python-astroid # -# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -19,14 +19,13 @@ %define skip_python2 1 %{?!python_module:%define python_module() python-%{**} python3-%{**}} Name: python-astroid -Version:2.1.0 +Version:2.2.4 Release:0 Summary:Representation of Python source as an AST for pylint License:LGPL-2.1-or-later Group: Development/Libraries/Python URL:https://github.com/pycqa/astroid Source: https://files.pythonhosted.org/packages/source/a/astroid/astroid-%{version}.tar.gz -Source1:pytest.ini BuildRequires: %{python_module lazy-object-proxy} BuildRequires: %{python_module pytest-runner} BuildRequires: %{python_module pytest} @@ -60,9 +59,6 @@ %prep %setup -q -n astroid-%{version} -# FIXME: with next release verify again -# The numpy checks are broken on py3 completely -rm -f astroid/tests/unittest_brain_numpy.py %build %python_build @@ -72,8 +68,7 @@ %python_expand %fdupes %{buildroot}%{$python_sitelib} %check -cp %{SOURCE1} . -%python_exec -m pytest -s +%python_expand PYTHONPATH=%{buildroot}%{$python_sitelib} py.test-%{$python_bin_suffix} -v %files %{python_files} %license COPYING COPYING.LESSER ++ astroid-2.1.0.tar.gz -> astroid-2.2.4.tar.gz ++ 3041 lines of diff (skipped)
commit python-astroid for openSUSE:Factory
Hello community, here is the log from the commit of package python-astroid for openSUSE:Factory checked in at 2019-01-03 18:04:18 Comparing /work/SRC/openSUSE:Factory/python-astroid (Old) and /work/SRC/openSUSE:Factory/.python-astroid.new.28833 (New) Package is "python-astroid" Thu Jan 3 18:04:18 2019 rev:17 rq:662218 version:2.1.0 Changes: --- /work/SRC/openSUSE:Factory/python-astroid/python-astroid.changes 2018-12-14 20:46:31.257581106 +0100 +++ /work/SRC/openSUSE:Factory/.python-astroid.new.28833/python-astroid.changes 2019-01-03 18:04:19.548263170 +0100 @@ -1,0 +2,6 @@ +Mon Dec 31 08:59:36 UTC 2018 - Martin Pluskal + +- Correct conditional for older distros +- Update filelist to work on SLE-12 + +--- Other differences: -- ++ python-astroid.spec ++ --- /var/tmp/diff_new_pack.xopiQi/_old 2019-01-03 18:04:20.148262636 +0100 +++ /var/tmp/diff_new_pack.xopiQi/_new 2019-01-03 18:04:20.152262633 +0100 @@ -16,8 +16,8 @@ # -%{?!python_module:%define python_module() python-%{**} python3-%{**}} %define skip_python2 1 +%{?!python_module:%define python_module() python-%{**} python3-%{**}} Name: python-astroid Version:2.1.0 Release:0 @@ -39,7 +39,7 @@ Requires: python-six Requires: python-wrapt BuildArch: noarch -%if %{python3_version_nodots} < 35 +%if 0%{?suse_version} < 1500 BuildRequires: %{python_module typing} Requires: python-typing %endif @@ -78,7 +78,7 @@ %files %{python_files} %license COPYING COPYING.LESSER %doc ChangeLog README.rst -%{python_sitelib}/astroid/ -%{python_sitelib}/astroid-*.egg-info +%{python3_sitelib}/astroid/ +%{python3_sitelib}/astroid-*.egg-info %changelog
commit python-astroid for openSUSE:Factory
Hello community, here is the log from the commit of package python-astroid for openSUSE:Factory checked in at 2018-12-14 20:46:29 Comparing /work/SRC/openSUSE:Factory/python-astroid (Old) and /work/SRC/openSUSE:Factory/.python-astroid.new.28833 (New) Package is "python-astroid" Fri Dec 14 20:46:29 2018 rev:16 rq:655705 version:2.1.0 Changes: --- /work/SRC/openSUSE:Factory/python-astroid/python-astroid.changes 2018-09-26 14:53:32.791095637 +0200 +++ /work/SRC/openSUSE:Factory/.python-astroid.new.28833/python-astroid.changes 2018-12-14 20:46:31.257581106 +0100 @@ -1,0 +2,6 @@ +Thu Dec 6 14:39:34 UTC 2018 - Tomáš Chvátal + +- Version update to 2.1.0: + * Many changes around, see ChangeLog file + +--- Old: astroid-2.0.4.tar.gz New: astroid-2.1.0.tar.gz Other differences: -- ++ python-astroid.spec ++ --- /var/tmp/diff_new_pack.urWqkc/_old 2018-12-14 20:46:31.685580516 +0100 +++ /var/tmp/diff_new_pack.urWqkc/_new 2018-12-14 20:46:31.689580510 +0100 @@ -19,7 +19,7 @@ %{?!python_module:%define python_module() python-%{**} python3-%{**}} %define skip_python2 1 Name: python-astroid -Version:2.0.4 +Version:2.1.0 Release:0 Summary:Representation of Python source as an AST for pylint License:LGPL-2.1-or-later @@ -39,6 +39,10 @@ Requires: python-six Requires: python-wrapt BuildArch: noarch +%if %{python3_version_nodots} < 35 +BuildRequires: %{python_module typing} +Requires: python-typing +%endif %python_subpackages %description ++ astroid-2.0.4.tar.gz -> astroid-2.1.0.tar.gz ++ 28776 lines of diff (skipped)
commit python-astroid for openSUSE:Factory
Hello community, here is the log from the commit of package python-astroid for openSUSE:Factory checked in at 2018-09-26 14:53:31 Comparing /work/SRC/openSUSE:Factory/python-astroid (Old) and /work/SRC/openSUSE:Factory/.python-astroid.new (New) Package is "python-astroid" Wed Sep 26 14:53:31 2018 rev:15 rq:636609 version:2.0.4 Changes: --- /work/SRC/openSUSE:Factory/python-astroid/python-astroid.changes 2018-07-21 10:07:40.779205686 +0200 +++ /work/SRC/openSUSE:Factory/.python-astroid.new/python-astroid.changes 2018-09-26 14:53:32.791095637 +0200 @@ -1,0 +2,13 @@ +Tue Sep 18 08:46:02 UTC 2018 - Jan Engelhardt + +- Trim future goals and history lesson from description. + Use noun phrase in summary. + +--- +Fri Sep 14 15:01:23 UTC 2018 - Tomáš Chvátal + +- Version update to 2.0.4: + * only supports python3.0+ + * Many many changes see ChangeLog fixes + +--- Old: astroid-1.6.5.tar.gz New: astroid-2.0.4.tar.gz Other differences: -- ++ python-astroid.spec ++ --- /var/tmp/diff_new_pack.eKWV7l/_old 2018-09-26 14:53:33.387094723 +0200 +++ /var/tmp/diff_new_pack.eKWV7l/_new 2018-09-26 14:53:33.387094723 +0200 @@ -12,17 +12,16 @@ # license that conforms to the Open Source Definition (Version 1.9) # published by the Open Source Initiative. -# Please submit bugfixes or comments via http://bugs.opensuse.org/ +# Please submit bugfixes or comments via https://bugs.opensuse.org/ # %{?!python_module:%define python_module() python-%{**} python3-%{**}} -%define oldpython python -%bcond_without python2 +%define skip_python2 1 Name: python-astroid -Version:1.6.5 +Version:2.0.4 Release:0 -Summary:Rebuild a new abstract syntax tree from Python's ast +Summary:Representation of Python source as an AST for pylint License:LGPL-2.1-or-later Group: Development/Libraries/Python URL:https://github.com/pycqa/astroid @@ -40,24 +39,12 @@ Requires: python-six Requires: python-wrapt BuildArch: noarch -%if %{with python2} -BuildRequires: python2-backports.functools_lru_cache -BuildRequires: python2-enum34 -BuildRequires: python2-singledispatch -%endif -%ifpython2 -Requires: python-backports.functools_lru_cache -Requires: python-enum34 -Requires: python-singledispatch -%endif %python_subpackages %description -The aim of this module is to provide a common base representation of -python source code for projects such as pychecker, pyreverse, -pylint... Well, actually the development of this library is -essentially governed by pylint's needs. It used to be called -logilab-astng. +This module provides a common base representation of Python source code for +projects such as pychecker, pyreverse, pylint. The development of this library +is governed by pylint's needs. It provides a compatible representation which comes from the _ast module. It rebuilds the tree generated by the builtin _ast module by @@ -78,8 +65,6 @@ %install %python_install -# remove tests from install -%python_expand rm -rf %{buildroot}%{$python_sitelib}/astroid/tests %python_expand %fdupes %{buildroot}%{$python_sitelib} %check ++ astroid-1.6.5.tar.gz -> astroid-2.0.4.tar.gz ++ 15991 lines of diff (skipped)
commit python-astroid for openSUSE:Factory
Hello community, here is the log from the commit of package python-astroid for openSUSE:Factory checked in at 2018-07-21 10:07:38 Comparing /work/SRC/openSUSE:Factory/python-astroid (Old) and /work/SRC/openSUSE:Factory/.python-astroid.new (New) Package is "python-astroid" Sat Jul 21 10:07:38 2018 rev:14 rq:623122 version:1.6.5 Changes: --- /work/SRC/openSUSE:Factory/python-astroid/python-astroid.changes 2018-01-25 12:37:02.296473866 +0100 +++ /work/SRC/openSUSE:Factory/.python-astroid.new/python-astroid.changes 2018-07-21 10:07:40.779205686 +0200 @@ -1,0 +2,7 @@ +Mon Jul 16 11:53:57 UTC 2018 - tchva...@suse.com + +- Version update to 1.6.5: + * Many various bugfixes making the pylint tests pass + * For details see ChangeLog + +--- Old: astroid-1.6.1.tar.gz New: astroid-1.6.5.tar.gz Other differences: -- ++ python-astroid.spec ++ --- /var/tmp/diff_new_pack.puZpj8/_old 2018-07-21 10:07:41.555205509 +0200 +++ /var/tmp/diff_new_pack.puZpj8/_new 2018-07-21 10:07:41.555205509 +0200 @@ -18,19 +18,18 @@ %{?!python_module:%define python_module() python-%{**} python3-%{**}} %define oldpython python -# Disabled for now wrt issue https://github.com/PyCQA/astroid/issues/439 -%bcond_with test %bcond_without python2 Name: python-astroid -Version:1.6.1 +Version:1.6.5 Release:0 Summary:Rebuild a new abstract syntax tree from Python's ast -License:LGPL-2.1+ +License:LGPL-2.1-or-later Group: Development/Libraries/Python -Url:https://github.com/pycqa/astroid +URL:https://github.com/pycqa/astroid Source: https://files.pythonhosted.org/packages/source/a/astroid/astroid-%{version}.tar.gz Source1:pytest.ini BuildRequires: %{python_module lazy-object-proxy} +BuildRequires: %{python_module pytest-runner} BuildRequires: %{python_module pytest} BuildRequires: %{python_module setuptools} BuildRequires: %{python_module six} @@ -70,6 +69,9 @@ %prep %setup -q -n astroid-%{version} +# FIXME: with next release verify again +# The numpy checks are broken on py3 completely +rm -f astroid/tests/unittest_brain_numpy.py %build %python_build @@ -80,14 +82,13 @@ %python_expand rm -rf %{buildroot}%{$python_sitelib}/astroid/tests %python_expand %fdupes %{buildroot}%{$python_sitelib} -%if %{with test} %check cp %{SOURCE1} . %python_exec -m pytest -s -%endif %files %{python_files} -%doc COPYING COPYING.LESSER ChangeLog README.rst +%license COPYING COPYING.LESSER +%doc ChangeLog README.rst %{python_sitelib}/astroid/ %{python_sitelib}/astroid-*.egg-info ++ astroid-1.6.1.tar.gz -> astroid-1.6.5.tar.gz ++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/astroid-1.6.1/ChangeLog new/astroid-1.6.5/ChangeLog --- old/astroid-1.6.1/ChangeLog 2018-01-23 10:32:09.0 +0100 +++ new/astroid-1.6.5/ChangeLog 2018-06-06 17:01:12.0 +0200 @@ -1,6 +1,70 @@ Change log for the astroid package (used to be astng) = +2018-06-06 -- 1.6.5 + + * Don't propagate Uninferable objects when inferring BinOps + + Close PyCQA/pylint#2059 + + * Protect against passing lookup_class to non-class proxied objects + + In some cases the _proxied object points to another Instance, not to the + Class of an Instance node (usually this happens with enum and with our + hardcoded inference support for this library). Instead of getting a TypeError, + we check before if the _proxied matches what we expect. + + Found by #2080 + + +2018-05-15 -- 1.6.4 + + * Skip non-attrs specific attributes in attr wrapped classes. Close PyCQA/pylint#2055 + + * Add brain tip for numpy.sum. Close PyCQA/pylint#1558 + + * deque.rotate has a default parameter. Close PyCQA/pylint#2013 + +2018-04-05 -- 1.6.3 + + * Fixes nested namespace package import for old-style namespace packages + + * Use .path for inferring a module's __path__ attribute. Close #528 + + * Improve the six urllib functions for Python 2 by setting them as instance attributes + +Because they were at the class level, we were considering them BoundMethods, resulting +in a too-many-function-args error when calling these functions. +Close PyCQA/pylint#1965 + +2018-03-16 -- 1.6.2 + + * Fix submodule imports from six + + Close PYCQA/pylint#1640 + + * Enhancement of brain_numpy by adding different types from + numpy.core.numerictypes + + * Fix RecursionError for augmented assign + + Close #437, #447, #313, PyCQA/pylint#1642, PyCQA/pylint#1805, PyCQA/pylint#1854, PyCQA
commit python-astroid for openSUSE:Factory
Hello community, here is the log from the commit of package python-astroid for openSUSE:Factory checked in at 2018-01-25 12:37:01 Comparing /work/SRC/openSUSE:Factory/python-astroid (Old) and /work/SRC/openSUSE:Factory/.python-astroid.new (New) Package is "python-astroid" Thu Jan 25 12:37:01 2018 rev:13 rq:568846 version:1.6.1 Changes: --- /work/SRC/openSUSE:Factory/python-astroid/python-astroid.changes 2017-04-12 18:19:23.243051987 +0200 +++ /work/SRC/openSUSE:Factory/.python-astroid.new/python-astroid.changes 2018-01-25 12:37:02.296473866 +0100 @@ -1,0 +2,9 @@ +Wed Jan 24 09:56:25 UTC 2018 - tchva...@suse.com + +- Version update to 1.6.1: + * Various fixes for python3 + * Various pylint issues fixes + * For detailed log see ChangeLog +- Disable tests for now as they seem to fail, upstream knows + +--- Old: _service astroid-1.4.9.git.1489768950.31f21cd.tar.gz New: astroid-1.6.1.tar.gz Other differences: -- ++ python-astroid.spec ++ --- /var/tmp/diff_new_pack.0hFuS4/_old 2018-01-25 12:37:02.864447350 +0100 +++ /var/tmp/diff_new_pack.0hFuS4/_new 2018-01-25 12:37:02.868447164 +0100 @@ -1,7 +1,7 @@ # # spec file for package python-astroid # -# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -18,16 +18,17 @@ %{?!python_module:%define python_module() python-%{**} python3-%{**}} %define oldpython python +# Disabled for now wrt issue https://github.com/PyCQA/astroid/issues/439 +%bcond_with test +%bcond_without python2 Name: python-astroid -Version:1.4.9.git.1489768950.31f21cd +Version:1.6.1 Release:0 Summary:Rebuild a new abstract syntax tree from Python's ast License:LGPL-2.1+ Group: Development/Libraries/Python Url:https://github.com/pycqa/astroid -# replaced for github pre-release -#Source: https://files.pythonhosted.org/packages/source/a/astroid/astroid-%{version}.tar.gz -Source: astroid-%{version}.tar.gz +Source: https://files.pythonhosted.org/packages/source/a/astroid/astroid-%{version}.tar.gz Source1:pytest.ini BuildRequires: %{python_module lazy-object-proxy} BuildRequires: %{python_module pytest} @@ -36,19 +37,20 @@ BuildRequires: %{python_module wrapt} BuildRequires: fdupes BuildRequires: python-rpm-macros -BuildRequires: python2-backports.functools_lru_cache -BuildRequires: python2-enum34 -BuildRequires: python2-singledispatch Requires: python-lazy-object-proxy Requires: python-six Requires: python-wrapt +BuildArch: noarch +%if %{with python2} +BuildRequires: python2-backports.functools_lru_cache +BuildRequires: python2-enum34 +BuildRequires: python2-singledispatch +%endif %ifpython2 Requires: python-backports.functools_lru_cache Requires: python-enum34 Requires: python-singledispatch %endif -BuildRoot: %{_tmppath}/%{name}-%{version}-build -BuildArch: noarch %python_subpackages %description @@ -74,17 +76,19 @@ %install %python_install -%fdupes %{buildroot}%{_prefix} +# remove tests from install +%python_expand rm -rf %{buildroot}%{$python_sitelib}/astroid/tests +%python_expand %fdupes %{buildroot}%{$python_sitelib} +%if %{with test} %check -cp %{S:1} . +cp %{SOURCE1} . %python_exec -m pytest -s +%endif %files %{python_files} -%defattr(-,root,root,-) %doc COPYING COPYING.LESSER ChangeLog README.rst %{python_sitelib}/astroid/ -#%{python_sitelib}/astroid-%{version}-py*.egg-info %{python_sitelib}/astroid-*.egg-info %changelog ++ astroid-1.4.9.git.1489768950.31f21cd.tar.gz -> astroid-1.6.1.tar.gz ++ 10636 lines of diff (skipped)
commit python-astroid for openSUSE:Factory
Hello community, here is the log from the commit of package python-astroid for openSUSE:Factory checked in at 2017-04-12 17:31:55 Comparing /work/SRC/openSUSE:Factory/python-astroid (Old) and /work/SRC/openSUSE:Factory/.python-astroid.new (New) Package is "python-astroid" Wed Apr 12 17:31:55 2017 rev:12 rq:481993 version:1.4.9.git.1489768950.31f21cd Changes: --- /work/SRC/openSUSE:Factory/python-astroid/python-astroid.changes 2016-04-22 16:22:49.0 +0200 +++ /work/SRC/openSUSE:Factory/.python-astroid.new/python-astroid.changes 2017-04-12 18:19:23.243051987 +0200 @@ -1,0 +2,13 @@ +Mon Feb 27 14:05:03 UTC 2017 - jmate...@suse.com + +- update for singlespec +- update to 1.4.9 + * classes can now know their definition-time arguments + * getitem() now accepts node objects + * explicit namespace package support + * see more details in ChangeLog +- update to 2.0-pre-release git version for python 3.6 support + (boo#1026174) +- enable test suite for all pythons + +--- Old: astroid-1.4.4.tar.gz New: _service astroid-1.4.9.git.1489768950.31f21cd.tar.gz pytest.ini Other differences: -- ++ python-astroid.spec ++ --- /var/tmp/diff_new_pack.Y3HJaH/_old 2017-04-12 18:19:23.830968853 +0200 +++ /var/tmp/diff_new_pack.Y3HJaH/_new 2017-04-12 18:19:23.834968287 +0200 @@ -1,7 +1,7 @@ # # spec file for package python-astroid # -# Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -16,26 +16,40 @@ # +%{?!python_module:%define python_module() python-%{**} python3-%{**}} +%define oldpython python Name: python-astroid -Version:1.4.4 +Version:1.4.9.git.1489768950.31f21cd Release:0 -Url:https://github.com/pycqa/astroid Summary:Rebuild a new abstract syntax tree from Python's ast License:LGPL-2.1+ Group: Development/Libraries/Python -Source: https://pypi.python.org/packages/source/a/astroid/astroid-%{version}.tar.gz -BuildRoot: %{_tmppath}/%{name}-%{version}-build -BuildRequires: python-devel -BuildRequires: python-setuptools -BuildRequires: python-six +Url:https://github.com/pycqa/astroid +# replaced for github pre-release +#Source: https://files.pythonhosted.org/packages/source/a/astroid/astroid-%{version}.tar.gz +Source: astroid-%{version}.tar.gz +Source1:pytest.ini +BuildRequires: %{python_module lazy-object-proxy} +BuildRequires: %{python_module pytest} +BuildRequires: %{python_module setuptools} +BuildRequires: %{python_module six} +BuildRequires: %{python_module wrapt} +BuildRequires: fdupes +BuildRequires: python-rpm-macros +BuildRequires: python2-backports.functools_lru_cache +BuildRequires: python2-enum34 +BuildRequires: python2-singledispatch +Requires: python-lazy-object-proxy Requires: python-six -Requires: python-lazy_object_proxy Requires: python-wrapt -%if 0%{?suse_version} <= 1110 -%{!?python_sitelib: %global python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")} -%else -BuildArch: noarch +%ifpython2 +Requires: python-backports.functools_lru_cache +Requires: python-enum34 +Requires: python-singledispatch %endif +BuildRoot: %{_tmppath}/%{name}-%{version}-build +BuildArch: noarch +%python_subpackages %description The aim of this module is to provide a common base representation of @@ -53,18 +67,24 @@ objects. %prep -%setup -n astroid-%{version} +%setup -q -n astroid-%{version} %build -python setup.py build +%python_build %install -python setup.py install --prefix=%{_prefix} --root="%{buildroot}" +%python_install +%fdupes %{buildroot}%{_prefix} + +%check +cp %{S:1} . +%python_exec -m pytest -s -%files +%files %{python_files} %defattr(-,root,root,-) %doc COPYING COPYING.LESSER ChangeLog README.rst %{python_sitelib}/astroid/ -%{python_sitelib}/astroid-%{version}-py*.egg-info +#%{python_sitelib}/astroid-%{version}-py*.egg-info +%{python_sitelib}/astroid-*.egg-info %changelog ++ _service ++ git https://github.com/pycqa/astroid.git astroid 1.4.9.git gz *.tar ++ pytest.ini ++ [pytest] python_files = astroid/tests/unittest_*.py norecursedirs = _build.* build
commit python-astroid for openSUSE:Factory
Hello community, here is the log from the commit of package python-astroid for openSUSE:Factory checked in at 2016-04-22 16:22:43 Comparing /work/SRC/openSUSE:Factory/python-astroid (Old) and /work/SRC/openSUSE:Factory/.python-astroid.new (New) Package is "python-astroid" Changes: --- /work/SRC/openSUSE:Factory/python-astroid/python-astroid.changes 2016-01-13 22:46:15.0 +0100 +++ /work/SRC/openSUSE:Factory/.python-astroid.new/python-astroid.changes 2016-04-22 16:22:49.0 +0200 @@ -1,0 +2,11 @@ +Wed Feb 10 12:58:40 UTC 2016 - mich...@stroeder.com + +- Added missing dependencies on python-lazy_object_proxy + and python-wrapt +- Update to version 1.4.4 +* unpack_infer raises InferenceError if it can't operate + with the given sequences of nodes. +* Support accessing properties with super(). +* Enforce strong updates per frames. + +--- Old: astroid-1.4.3.tar.gz New: astroid-1.4.4.tar.gz Other differences: -- ++ python-astroid.spec ++ --- /var/tmp/diff_new_pack.PPEVrU/_old 2016-04-22 16:22:50.0 +0200 +++ /var/tmp/diff_new_pack.PPEVrU/_new 2016-04-22 16:22:50.0 +0200 @@ -17,7 +17,7 @@ Name: python-astroid -Version:1.4.3 +Version:1.4.4 Release:0 Url:https://github.com/pycqa/astroid Summary:Rebuild a new abstract syntax tree from Python's ast @@ -29,6 +29,8 @@ BuildRequires: python-setuptools BuildRequires: python-six Requires: python-six +Requires: python-lazy_object_proxy +Requires: python-wrapt %if 0%{?suse_version} <= 1110 %{!?python_sitelib: %global python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")} %else ++ astroid-1.4.3.tar.gz -> astroid-1.4.4.tar.gz ++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/astroid-1.4.3/ChangeLog new/astroid-1.4.4/ChangeLog --- old/astroid-1.4.3/ChangeLog 2015-12-24 16:03:30.0 +0100 +++ new/astroid-1.4.4/ChangeLog 2016-01-15 18:00:46.0 +0100 @@ -1,6 +1,25 @@ Change log for the astroid package (used to be astng) = +2016-01-15 -- 1.4.4 + +* unpack_infer raises InferenceError if it can't operate + with the given sequences of nodes. + +* Support accessing properties with super(). + +* Enforce strong updates per frames. + + When looking up a name in a scope, Scope.lookup will return + only the values which will be reachable after execution, as seen + in the following code: + + a = 1 + a = 2 + + In this case it doesn't make sense to return two values, but + only the last one. + 2015-12-24 -- 1.4.3 * pkg_resources brain tips are a bit more specific, diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/astroid-1.4.3/PKG-INFO new/astroid-1.4.4/PKG-INFO --- old/astroid-1.4.3/PKG-INFO 2015-12-24 16:13:30.0 +0100 +++ new/astroid-1.4.4/PKG-INFO 2016-01-15 18:12:28.0 +0100 @@ -1,6 +1,6 @@ Metadata-Version: 1.1 Name: astroid -Version: 1.4.3 +Version: 1.4.4 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.4.3/astroid/__pkginfo__.py new/astroid-1.4.4/astroid/__pkginfo__.py --- old/astroid-1.4.3/astroid/__pkginfo__.py2015-12-24 16:03:37.0 +0100 +++ new/astroid-1.4.4/astroid/__pkginfo__.py2016-01-15 18:00:51.0 +0100 @@ -20,7 +20,7 @@ modname = 'astroid' -numversion = (1, 4, 3) +numversion = (1, 4, 4) version = '.'.join([str(num) for num in numversion]) install_requires = ['six', 'lazy_object_proxy', 'wrapt'] diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/astroid-1.4.3/astroid/brain/brain_stdlib.py new/astroid-1.4.4/astroid/brain/brain_stdlib.py --- old/astroid-1.4.3/astroid/brain/brain_stdlib.py 2015-12-24 16:02:22.0 +0100 +++ new/astroid-1.4.4/astroid/brain/brain_stdlib.py 2016-01-15 18:00:20.0 +0100 @@ -156,6 +156,15 @@ def pkg_resources_transform(): return AstroidBuilder(MANAGER).string_build(''' +def require(*requirements): +return pkg_resources.working_set.require(*requirements) + +def run_script(requires, script_name): +return pkg_resources.working_set.run_script(requires, script_name) + +def iter_entry_points(group, name=None): +return pkg_resources.working_set.iter_entry_points(
commit python-astroid for openSUSE:Factory
Hello community, here is the log from the commit of package python-astroid for openSUSE:Factory checked in at 2016-01-13 22:46:12 Comparing /work/SRC/openSUSE:Factory/python-astroid (Old) and /work/SRC/openSUSE:Factory/.python-astroid.new (New) Package is "python-astroid" Changes: --- /work/SRC/openSUSE:Factory/python-astroid/python-astroid.changes 2015-03-18 13:05:39.0 +0100 +++ /work/SRC/openSUSE:Factory/.python-astroid.new/python-astroid.changes 2016-01-13 22:46:15.0 +0100 @@ -1,0 +2,196 @@ +Wed Jan 13 10:03:16 UTC 2016 - toddrme2...@gmail.com + +- Update to version 1.4.3 + * pkg_resources brain tips are a bit more specific, +by specifiying proper returns. + * Standard library modules are properly detected by is_standard_module. +This should fix issues such as https://github.com/PyCQA/pylint/issues/725. +- Update to version 1.4.2 + * The slots() method conflates all the slots from the ancestors +into a list of current and parent slots. +We're doing this because this is the right semantics of slots, +they get inherited, as long as each parent defines a __slots__ +entry. + * Revert to using printf-style formatting in as_string, in order +to avoid a potential problem with encodings when using .format. +Closes issue #273. + * assigned_stmts methods have the same signature from now on. +They used to have different signatures and each one made +assumptions about what could be passed to other implementations, +leading to various possible crashes when one or more arguments +weren't given. Closes issue #277. +- update to version 1.4.1: + * Add support for handling Uninferable nodes when calling as_string + +Some object, for instance List or Tuple can have, after inference, +Uninferable as their elements, happening when their components +weren't couldn't be inferred properly. This means that as_string +needs to cope with expecting Uninferable nodes part of the other +nodes coming for a string transformation. The patch adds a visit +method in AsString and "accept" on Yes / Uninferable nodes. +Closes issue #270. +- update to version 1.4.0: + * Class.getattr('__mro__') returns the actual MRO. Closes issue #128. + * The logilab-common dependency is not needed anymore as the needed code +was integrated into astroid. + * Add 'assert_equals' method in nose.tools's brain plugin. + * Generated enum member stubs now support IntEnum and multiple +base classes. + * Add brain tips for multiprocessing.Manager and +multiprocessing.managers.SyncManager. + * Add brain tips for multiprocessing post Python 3.4+, +where the module level functions are retrieved with getattr +from a context object, leading to many no-member errors +in Pylint. + * The Generator objects inferred with `infer_call_result` +from functions have as parent the function from which they +are returned. + * Understand partially the 3-argument form of `type`. +The only change is that astroid understands members +passed in as dictionaries as the third argument. + * Improve the inference of Getattr nodes when dealing with +abstract properties from the abc module. + +In astroid.bases.Instance._wrap_attr we had a detection +code for properties, which basically inferred whatever +a property returned, passing the results up the stack, +to the igetattr() method. It handled only the builtin property +but the new patch also handles a couple of other properties, +such as abc.abstractproperty. + * UnboundMethod.getattr calls the getattr of its _proxied object +and doesn't call super(...) anymore. + +It previously crashed, since the first ancestor in its mro was +bases.Proxy and bases.Proxy doesn't implement the .getattr method. +Closes issue #91. + * Don't hard fail when calling .mro() on a class which has +combined both newstyle and old style classes. The class +in question is actually newstyle (and the __mro__ can be +retrieved using Python). + +.mro() fallbacks to using .ancestors() in that case. + * Class.local_attr and Class.local_attr_ancestors uses internally +a mro lookup, using .mro() method, if they can. + +That means for newstyle classes, when trying to lookup a member +using one of these functions, the first one according to the +mro will be returned. This reflects nicely the reality, +but it can have as a drawback the fact that it is a behaviour +change (the previous behaviour was incorrect though). Also, +having bases which can return multiple values when inferred +will not work with the new approach, because .mro() only +retrieves the first value inferred from a base. + * Expose a implicit_metaclass() method in Class. This will return +a bui
commit python-astroid for openSUSE:Factory
Hello community, here is the log from the commit of package python-astroid for openSUSE:Factory checked in at 2015-03-18 13:05:34 Comparing /work/SRC/openSUSE:Factory/python-astroid (Old) and /work/SRC/openSUSE:Factory/.python-astroid.new (New) Package is "python-astroid" Changes: --- /work/SRC/openSUSE:Factory/python-astroid/python-astroid.changes 2015-02-18 20:36:46.0 +0100 +++ /work/SRC/openSUSE:Factory/.python-astroid.new/python-astroid.changes 2015-03-18 13:05:39.0 +0100 @@ -1,0 +2,32 @@ +Mon Mar 16 12:20:32 UTC 2015 - mci...@suse.cz + +- Update to 1.3.6: +* Class.slots raises NotImplementedError for old style classes. + Closes issue #67. +* Add a new option to AstroidManager, `optimize_ast`, which + controls if peephole optimizer should be enabled or not. + This prevents a regression, where the visit_binop method + wasn't called anymore with astroid 1.3.5, due to the differences + in the resulting AST. Closes issue #82. +* Add the ability to optimize small ast subtrees, + with the first use in the optimization of multiple + BinOp nodes. This removes recursivity in the rebuilder + when dealing with a lot of small strings joined by the + addition operator. Closes issue #59. +* Obtain the methods for the nose brain tip through an + unittest.TestCase instance. Closes Pylint issue #457. +* Fix a crash which occurred when a class was the ancestor + of itself. Closes issue #78. +* Improve the scope_lookup method for Classes regarding qualified + objects, with an attribute name exactly as one provided in the + class itself. + For example, a class containing an attribute 'first', + which was also an import and which had, as a base, a qualified name + or a Gettattr node, in the form 'module.first', then Pylint would + have inferred the `first` name as the function from the Class, + not the import. Closes Pylint issue #466. +* Implement the assigned_stmts operation for Starred nodes, + which was omitted when support for Python 3 was added in astroid. + Closes issue #36. + +--- Old: astroid-1.3.4.tar.gz New: astroid-1.3.6.tar.gz Other differences: -- ++ python-astroid.spec ++ --- /var/tmp/diff_new_pack.qE060v/_old 2015-03-18 13:05:40.0 +0100 +++ /var/tmp/diff_new_pack.qE060v/_new 2015-03-18 13:05:40.0 +0100 @@ -1,7 +1,7 @@ # # spec file for package python-astroid # -# Copyright (c) 2015 SUSE LINUX Products GmbH, Nuernberg, Germany. +# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -17,7 +17,7 @@ Name: python-astroid -Version:1.3.4 +Version:1.3.6 Release:0 Url:http://bitbucket.org/logilab/astroid Summary:Rebuild a new abstract syntax tree from Python's ast ++ astroid-1.3.4.tar.gz -> astroid-1.3.6.tar.gz ++ 3845 lines of diff (skipped) -- To unsubscribe, e-mail: opensuse-commit+unsubscr...@opensuse.org For additional commands, e-mail: opensuse-commit+h...@opensuse.org
commit python-astroid for openSUSE:Factory
Hello community, here is the log from the commit of package python-astroid for openSUSE:Factory checked in at 2015-02-18 20:36:45 Comparing /work/SRC/openSUSE:Factory/python-astroid (Old) and /work/SRC/openSUSE:Factory/.python-astroid.new (New) Package is "python-astroid" Changes: --- /work/SRC/openSUSE:Factory/python-astroid/python-astroid.changes 2014-12-08 16:56:49.0 +0100 +++ /work/SRC/openSUSE:Factory/.python-astroid.new/python-astroid.changes 2015-02-18 20:36:46.0 +0100 @@ -1,0 +2,29 @@ +Wed Feb 18 13:04:51 UTC 2015 - mci...@suse.cz + +- Update to 1.3.4: +* Get the first element from the method list when obtaining + the functions from nose.tools.trivial. Closes Pylint issue #448. +* Restore file_stream to a property, but deprecate it in favour of + the newly added method Module.stream. By using a method instead of a + property, it will be easier to properly close the file right + after it is used, which will ensure that no file descriptors are + leaked. Until now, due to the fact that a module was cached, + it was not possible to close the file_stream anywhere. + file_stream will start emitting PendingDeprecationWarnings in + astroid 1.4, DeprecationWarnings in astroid 1.5 and it will + be finally removed in astroid 1.6. +* Add inference tips for 'tuple', 'list', 'dict' and 'set' builtins. +* Add brain definition for most string and unicode methods +* Changed the API for Class.slots. It returns None when the class + doesn't define any slots. Previously, for both the cases where + the class didn't have slots defined and when it had an empty list + of slots, Class.slots returned an empty list. +* Add a new method to Class nodes, 'mro', for obtaining the + the method resolution order of the class. +* Add brain tips for six.moves. Closes issue #63. +* Improve the detection for functions decorated with decorators + which returns static or class methods. +* .slots() can contain unicode strings on Python 2. +* Add inference tips for nose.tools. + +--- Old: astroid-1.3.2.tar.gz New: astroid-1.3.4.tar.gz Other differences: -- ++ python-astroid.spec ++ --- /var/tmp/diff_new_pack.OgUGcB/_old 2015-02-18 20:36:48.0 +0100 +++ /var/tmp/diff_new_pack.OgUGcB/_new 2015-02-18 20:36:48.0 +0100 @@ -1,7 +1,7 @@ # # spec file for package python-astroid # -# Copyright (c) 2014 SUSE LINUX Products GmbH, Nuernberg, Germany. +# Copyright (c) 2015 SUSE LINUX Products GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -17,7 +17,7 @@ Name: python-astroid -Version:1.3.2 +Version:1.3.4 Release:0 Url:http://bitbucket.org/logilab/astroid Summary:Rebuild a new abstract syntax tree from Python's ast ++ astroid-1.3.2.tar.gz -> astroid-1.3.4.tar.gz ++ 3321 lines of diff (skipped) -- To unsubscribe, e-mail: opensuse-commit+unsubscr...@opensuse.org For additional commands, e-mail: opensuse-commit+h...@opensuse.org
commit python-astroid for openSUSE:Factory
Hello community, here is the log from the commit of package python-astroid for openSUSE:Factory checked in at 2014-12-08 16:56:56 Comparing /work/SRC/openSUSE:Factory/python-astroid (Old) and /work/SRC/openSUSE:Factory/.python-astroid.new (New) Package is "python-astroid" Changes: --- /work/SRC/openSUSE:Factory/python-astroid/python-astroid.changes 2014-11-24 11:09:13.0 +0100 +++ /work/SRC/openSUSE:Factory/.python-astroid.new/python-astroid.changes 2014-12-08 16:56:49.0 +0100 @@ -1,0 +2,11 @@ +Mon Dec 8 12:11:48 UTC 2014 - mci...@suse.cz + +- Update to 1.3.2: +* Fixed a crash with invalid subscript index. +* Implement proper base class semantics for Python 3, where + every class derives from object. +* Allow more fine-grained control over C extension loading + in the manager. +* Fixed a crash issue with the pytest brain module. + +--- Old: astroid-1.3.0.tar.gz New: astroid-1.3.2.tar.gz Other differences: -- ++ python-astroid.spec ++ --- /var/tmp/diff_new_pack.UccaTG/_old 2014-12-08 16:56:50.0 +0100 +++ /var/tmp/diff_new_pack.UccaTG/_new 2014-12-08 16:56:50.0 +0100 @@ -17,7 +17,7 @@ Name: python-astroid -Version:1.3.0 +Version:1.3.2 Release:0 Url:http://bitbucket.org/logilab/astroid Summary:Rebuild a new abstract syntax tree from Python's ast ++ astroid-1.3.0.tar.gz -> astroid-1.3.2.tar.gz ++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/astroid-1.3.0/ChangeLog new/astroid-1.3.2/ChangeLog --- old/astroid-1.3.0/ChangeLog 2014-11-20 21:52:51.0 +0100 +++ new/astroid-1.3.2/ChangeLog 2014-11-22 15:49:40.0 +0100 @@ -1,6 +1,20 @@ Change log for the astroid package (used to be astng) = +2014-11-22 -- 1.3.2 + +* Fixed a crash with invalid subscript index. + +* Implement proper base class semantics for Python 3, where + every class derives from object. + +* Allow more fine-grained control over C extension loading + in the manager. + +2014-11-21 -- 1.3.1 + +* Fixed a crash issue with the pytest brain module. + 2014-11-20 -- 1.3.0 * Fix a maximum recursion error occured during the inference, diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/astroid-1.3.0/PKG-INFO new/astroid-1.3.2/PKG-INFO --- old/astroid-1.3.0/PKG-INFO 2014-11-20 22:10:42.0 +0100 +++ new/astroid-1.3.2/PKG-INFO 2014-11-22 15:51:42.0 +0100 @@ -1,6 +1,6 @@ Metadata-Version: 1.1 Name: astroid -Version: 1.3.0 +Version: 1.3.2 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.0/astroid/__pkginfo__.py new/astroid-1.3.2/astroid/__pkginfo__.py --- old/astroid-1.3.0/astroid/__pkginfo__.py2014-11-20 21:52:22.0 +0100 +++ new/astroid-1.3.2/astroid/__pkginfo__.py2014-11-22 15:49:50.0 +0100 @@ -20,7 +20,7 @@ modname = 'astroid' -numversion = (1, 3, 0) +numversion = (1, 3, 2) version = '.'.join([str(num) for num in numversion]) install_requires = ['logilab-common >= 0.60.0', 'six'] diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/astroid-1.3.0/astroid/brain/py2pytest.py new/astroid-1.3.2/astroid/brain/py2pytest.py --- old/astroid-1.3.0/astroid/brain/py2pytest.py2014-11-15 16:58:32.0 +0100 +++ new/astroid-1.3.2/astroid/brain/py2pytest.py2014-11-21 22:37:51.0 +0100 @@ -5,7 +5,7 @@ def pytest_transform(): -fake = AstroidBuilder(MANAGER).string_build(''' +return AstroidBuilder(MANAGER).string_build(''' try: import _pytest.mark diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/astroid-1.3.0/astroid/brain/py2stdlib.py new/astroid-1.3.2/astroid/brain/py2stdlib.py --- old/astroid-1.3.0/astroid/brain/py2stdlib.py2014-11-20 21:52:22.0 +0100 +++ new/astroid-1.3.2/astroid/brain/py2stdlib.py2014-11-22 11:58:05.0 +0100 @@ -95,20 +95,20 @@ class %(name)s(object): def __init__(self, value=''): pass def digest(self): -return u'' +return %(digest)s def copy(self): return self def update(self, value): pass def hexdigest(self): -return u'' +return '' @property def name(self): return %(name)r ''' - algorithms = ('md5', 'sha1', 'sha224', 'sha2
commit python-astroid for openSUSE:Factory
Hello community, here is the log from the commit of package python-astroid for openSUSE:Factory checked in at 2014-11-24 11:08:58 Comparing /work/SRC/openSUSE:Factory/python-astroid (Old) and /work/SRC/openSUSE:Factory/.python-astroid.new (New) Package is "python-astroid" Changes: --- /work/SRC/openSUSE:Factory/python-astroid/python-astroid.changes 2014-11-05 15:55:48.0 +0100 +++ /work/SRC/openSUSE:Factory/.python-astroid.new/python-astroid.changes 2014-11-24 11:09:13.0 +0100 @@ -1,0 +2,34 @@ +Fri Nov 21 08:53:09 UTC 2014 - mci...@suse.cz + +- Update to 1.3.0: +* Fix a maximum recursion error occured during the inference, + where statements with the same name weren't filtered properly. + Closes pylint issue #295. +* Check that EmptyNode has an underlying object in + EmptyNode.has_underlying_object. +* Simplify the understanding of enum members. +* Fix an infinite loop with decorator call chain inference, + where the decorator returns itself. Closes issue #50. +* Various speed improvements. Patch by Alex Munroe. +* Add pytest brain plugin. Patch by Robbie Coomber. +* Support for Python versions < 2.7 has been dropped, and the + source has been made compatible with Python 2 and 3. Running + 2to3 on installation for Python 3 is not needed anymore. +* astroid now depends on six. +* modutils._module_file opens __init__.py in binary mode. + Closes issues #51 and #13. +* Only C extensions from trusted sources (the standard library) + are loaded into the examining Python process to build an AST + from the live module. +* Path names on case-insensitive filesystems are now properly + handled. This fixes the stdlib detection code on Windows. +* Metaclass-generating functions like six.with_metaclass + are now supported via some explicit detection code. +* astroid.register_module_extender has been added to generalize + the support for module extenders as used by many brain plugins. +* brain plugins can now register hooks to handle failed imports, + as done by the gobject-introspection plugin. +* The modules have been moved to a separate package directory, + `setup.py develop` now works correctly. + +--- Old: astroid-1.2.1.zip New: astroid-1.3.0.tar.gz Other differences: -- ++ python-astroid.spec ++ --- /var/tmp/diff_new_pack.yEAJfL/_old 2014-11-24 11:09:15.0 +0100 +++ /var/tmp/diff_new_pack.yEAJfL/_new 2014-11-24 11:09:15.0 +0100 @@ -17,18 +17,21 @@ Name: python-astroid -Version:1.2.1 +Version:1.3.0 Release:0 Url:http://bitbucket.org/logilab/astroid Summary:Rebuild a new abstract syntax tree from Python's ast License:LGPL-2.1+ Group: Development/Libraries/Python -Source: https://pypi.python.org/packages/source/a/astroid/astroid-%{version}.zip +Source: https://pypi.python.org/packages/source/a/astroid/astroid-%{version}.tar.gz BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildRequires: python-devel BuildRequires: python-logilab-common +BuildRequires: python-setuptools +BuildRequires: python-six BuildRequires: unzip Requires: python-logilab-common +Requires: python-six %if 0%{?suse_version} %py_requires %if 0%{?suse_version} > 1110 -- To unsubscribe, e-mail: opensuse-commit+unsubscr...@opensuse.org For additional commands, e-mail: opensuse-commit+h...@opensuse.org
commit python-astroid for openSUSE:Factory
Hello community, here is the log from the commit of package python-astroid for openSUSE:Factory checked in at 2014-11-05 15:55:05 Comparing /work/SRC/openSUSE:Factory/python-astroid (Old) and /work/SRC/openSUSE:Factory/.python-astroid.new (New) Package is "python-astroid" Changes: --- /work/SRC/openSUSE:Factory/python-astroid/python-astroid.changes 2014-08-13 17:08:27.0 +0200 +++ /work/SRC/openSUSE:Factory/.python-astroid.new/python-astroid.changes 2014-11-05 15:55:48.0 +0100 @@ -1,0 +2,24 @@ +Tue Nov 4 16:24:17 UTC 2014 - mci...@suse.cz + +- Update to 1.2.1: +* Fix a crash occurred when inferring decorator call chain. + Closes issue #42. +* Set the parent of vararg and kwarg nodes when inferring them. + Closes issue #43. +* namedtuple inference knows about '_fields' attribute. +* enum members knows about the methods from the enum class. +* Name inference will lookup in the parent function + of the current scope, in case searching in the current scope + fails. +* Inference of the functional form of the enums takes into + consideration the various inputs that enums accepts. +* The inference engine handles binary operations (add, mul etc.) + between instances. +* Fix an infinite loop in the inference, by returning a copy + of instance attributes, when calling 'instance_attr'. + Closes issue #34 (patch by Emile Anclin). +* Don't crash when trying to infer unbound object.__new__ call. + Closes issue #11. +- Use upstream zip for packaging as .tar.gz is no longer provided + +--- Old: astroid-1.2.0.tar.gz New: astroid-1.2.1.zip Other differences: -- ++ python-astroid.spec ++ --- /var/tmp/diff_new_pack.2k25wE/_old 2014-11-05 15:55:49.0 +0100 +++ /var/tmp/diff_new_pack.2k25wE/_new 2014-11-05 15:55:49.0 +0100 @@ -17,16 +17,17 @@ Name: python-astroid -Version:1.2.0 +Version:1.2.1 Release:0 Url:http://bitbucket.org/logilab/astroid Summary:Rebuild a new abstract syntax tree from Python's ast License:LGPL-2.1+ Group: Development/Libraries/Python -Source: https://pypi.python.org/packages/source/a/astroid/astroid-%{version}.tar.gz +Source: https://pypi.python.org/packages/source/a/astroid/astroid-%{version}.zip BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildRequires: python-devel BuildRequires: python-logilab-common +BuildRequires: unzip Requires: python-logilab-common %if 0%{?suse_version} %py_requires -- To unsubscribe, e-mail: opensuse-commit+unsubscr...@opensuse.org For additional commands, e-mail: opensuse-commit+h...@opensuse.org
commit python-astroid for openSUSE:Factory
Hello community, here is the log from the commit of package python-astroid for openSUSE:Factory checked in at 2014-08-13 17:08:16 Comparing /work/SRC/openSUSE:Factory/python-astroid (Old) and /work/SRC/openSUSE:Factory/.python-astroid.new (New) Package is "python-astroid" Changes: --- /work/SRC/openSUSE:Factory/python-astroid/python-astroid.changes 2014-07-24 01:16:15.0 +0200 +++ /work/SRC/openSUSE:Factory/.python-astroid.new/python-astroid.changes 2014-08-13 17:08:27.0 +0200 @@ -1,0 +2,27 @@ +Tue Aug 12 09:24:19 UTC 2014 - mci...@suse.com + +- Update to 1.2.0 +* Function nodes can detect decorator call chain and see if they are + decorated with builtin descriptors (`classmethod` and `staticmethod`). +* infer_call_result called on a subtype of the builtin type will now + return a new `Class` rather than an `Instance`. +* `Class.metaclass()` now handles module-level __metaclass__ declaration + on python 2, and no longer looks at the __metaclass__ class attribute on + python 3. +* Function nodes can detect if they are decorated with subclasses + of builtin descriptors when determining their type + (`classmethod` and `staticmethod`). +* Add `slots` method to `Class` nodes, for retrieving + the list of valid slots it defines. +* Expose function annotation to astroid: `Arguments` node + exposes 'varargannotation', 'kwargannotation' and 'annotations' + attributes, while `Function` node has the 'returns' attribute. +* Backported most of the logilab.common.modutils module there, as + most things there are for pylint/astroid only and we want to be + able to fix them without requiring a new logilab.common release +* Fix names grabed using wildcard import in "absolute import mode" + (ie with absolute_import activated from the __future__ or with + python 3). Fix pylint issue #58. +* Add support in pylint-brain for understanding enum classes. + +--- Old: astroid-1.1.1.tar.gz New: astroid-1.2.0.tar.gz Other differences: -- ++ python-astroid.spec ++ --- /var/tmp/diff_new_pack.vswezs/_old 2014-08-13 17:08:28.0 +0200 +++ /var/tmp/diff_new_pack.vswezs/_new 2014-08-13 17:08:28.0 +0200 @@ -17,7 +17,7 @@ Name: python-astroid -Version:1.1.1 +Version:1.2.0 Release:0 Url:http://bitbucket.org/logilab/astroid Summary:Rebuild a new abstract syntax tree from Python's ast ++ astroid-1.1.1.tar.gz -> astroid-1.2.0.tar.gz ++ 3511 lines of diff (skipped) -- To unsubscribe, e-mail: opensuse-commit+unsubscr...@opensuse.org For additional commands, e-mail: opensuse-commit+h...@opensuse.org
commit python-astroid for openSUSE:Factory
Hello community, here is the log from the commit of package python-astroid for openSUSE:Factory checked in at 2014-07-23 22:07:02 Comparing /work/SRC/openSUSE:Factory/python-astroid (Old) and /work/SRC/openSUSE:Factory/.python-astroid.new (New) Package is "python-astroid" Changes: --- /work/SRC/openSUSE:Factory/python-astroid/python-astroid.changes 2013-12-03 10:31:40.0 +0100 +++ /work/SRC/openSUSE:Factory/.python-astroid.new/python-astroid.changes 2014-07-24 01:16:15.0 +0200 @@ -1,0 +2,24 @@ +Thu Jul 10 13:12:12 UTC 2014 - toddrme2...@gmail.com + +- Update to 1.1.1 +* `Class.metaclass()` looks in ancestors when the current class + does not define explicitly a metaclass. +* Do not cache modules if a module with the same qname is already + known, and only return cached modules if both name and filepath + match. Fixes pylint Bitbucket issue #136. +- Update to 1.1.0 +* All class nodes are marked as new style classes for Py3k. +* Add a `metaclass` function to `Class` nodes to + retrieve their metaclass. +* Add a new YieldFrom node. +* Add support for inferring arguments to namedtuple invocations. +* Make sure that objects returned for namedtuple + inference have parents. +* Don't crash when inferring nodes from `with` clauses + with multiple context managers. Closes #18. +* Don't crash when a class has some __call__ method that is not + inferable. Closes #17. +* Unwrap instances found in `.ancestors()`, by using their _proxied + class. + +--- Old: astroid-1.0.1.tar.gz New: astroid-1.1.1.tar.gz Other differences: -- ++ python-astroid.spec ++ --- /var/tmp/diff_new_pack.d0FeaM/_old 2014-07-24 01:16:17.0 +0200 +++ /var/tmp/diff_new_pack.d0FeaM/_new 2014-07-24 01:16:17.0 +0200 @@ -1,7 +1,7 @@ # # spec file for package python-astroid # -# Copyright (c) 2013 SUSE LINUX Products GmbH, Nuernberg, Germany. +# Copyright (c) 2014 SUSE LINUX Products GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -17,7 +17,7 @@ Name: python-astroid -Version:1.0.1 +Version:1.1.1 Release:0 Url:http://bitbucket.org/logilab/astroid Summary:Rebuild a new abstract syntax tree from Python's ast ++ astroid-1.0.1.tar.gz -> astroid-1.1.1.tar.gz ++ 2131 lines of diff (skipped) -- To unsubscribe, e-mail: opensuse-commit+unsubscr...@opensuse.org For additional commands, e-mail: opensuse-commit+h...@opensuse.org
commit python-astroid for openSUSE:Factory
Hello community, here is the log from the commit of package python-astroid for openSUSE:Factory checked in at 2013-12-03 10:31:39 Comparing /work/SRC/openSUSE:Factory/python-astroid (Old) and /work/SRC/openSUSE:Factory/.python-astroid.new (New) Package is "python-astroid" Changes: New Changes file: --- /dev/null 2013-11-25 01:44:08.036031256 +0100 +++ /work/SRC/openSUSE:Factory/.python-astroid.new/python-astroid.changes 2013-12-03 10:31:40.0 +0100 @@ -0,0 +1,315 @@ +--- +Thu Nov 28 14:30:25 UTC 2013 - toddrme2...@gmail.com + +- Rename to python-astroid to match new upstream name. +- Initial version 1.0.1 + +--- +Wed Jun 19 14:26:57 UTC 2013 - speili...@suse.com + +- Use upstream URL + +--- +Fri May 31 09:26:07 UTC 2013 - dmuel...@suse.com + +- update to 0.24.3: + * #124360 [py3.3]: Don't crash on 'yield from' nodes + * #123062 [pylint-brain]: Use correct names for keywords for urlparse + * #123056 [pylint-brain]: Add missing methods for hashlib + * #123068: Fix inference for generator methods to correctly handle yields + * #123068: Make sure .as_string() returns valid code for yields in + expressions. + * #47957: Set literals are now correctly treated as inference leaves. + * #123074: Add support for inference of subscript operations on dict + literals. + * pylint-brain: more subprocess.Popen faking (see #46273) + * #109562 [jython]: java modules have no __doc__, causing crash + * #120646 [py3]: fix for python3.3 _ast changes which may cause crash + * #109988 [py3]: test fixes + * #106191: fix __future__ absolute import w/ From node + * #50395: fix function fromlineno when some decorator is splited on + multiple lines (patch by Mark Gius) + * #92362: fix pyreverse crash on relative import + * #104041: fix crash 'module object has no file_encoding attribute' + * #4294 (pylint-brain): bad inference on mechanize.Browser.open + * #46273 (pylint-brain): bad inference subprocess.Popen.communicate + +--- +Thu Apr 26 08:36:47 UTC 2012 - toddrme2...@gmail.com + +- Add python 3 package +- Change license to LGPL 2.1+ + +--- +Sat Feb 18 16:21:22 UTC 2012 - tog...@opensuse.org + +- update to version 0.23.1 + * #62295: avoid "OSError: Too many open files" by moving +.file_stream as a Module property opening the file only when +needed + * Lambda nodes should have a `name` attribute + * only call transformers if modname specified + + +--- +Thu Oct 6 08:48:58 CEST 2011 - dmuel...@suse.de + +- make it build on old distros + +--- +Sun Sep 25 12:33:28 UTC 2011 - sasc...@gmx.de + +- Don't remove logilab/__init__.py on SLE, where it is not existing. + +--- +Wed Sep 21 10:06:07 UTC 2011 - sasc...@suse.de + +- Update to version 0.22.0: + * added column offset information on nodes (patch by fawce) + * #70497: Crash on AttributeError: 'NoneType' object has no attribute '_infer_name' + * #70381: IndendationError in import causes crash + * #70565: absolute imports treated as relative (patch by Jacek Konieczny) + * #70494: fix file encoding detection with python2.x + * py3k: __builtin__ module renamed to builtins, we should consider this to properly +build ast for builtin objects +- Run testsuite +- Removed outdated stuff from spec file (%clean section, authors, ...) +- Set license to GPL-2.0+ (SPDX style) + +--- +Tue Apr 12 16:00:03 CEST 2011 - h...@urpla.net + +- update to 0.21.1: +* python3: handle file encoding; fix a lot of tests +* fix #52006: "True" and "False" can be assigned as variable in Python2x +* fix #8847: pylint doesn't understand function attributes at all +* fix #8774: iterator / generator / next method + +--- +Fri Jan 7 12:00:19 CET 2011 - h...@urpla.net + +- update to 0.21.0: +* python3.x: first python3.x release +* fix #37105: Crash on AttributeError: 'NoneType' object has no attribute '_infer_name' +* python2.4: drop python < 2.4 support + + - 0.20.4: + +* fix #37868 #37665 #33638 #37909: import problems with absolute_import_activated +* fix #8969: false positive when importing from zip-safe eggs +* fix #46131: minimal class decorator support +* minimal python2.7 support (dict and set comp