[Python-modules-commits] [astroid] 01/06: Import astroid_1.5.3.orig.tar.gz

Sandro Tosi morph at moszumanska.debian.org
Fri Dec 1 00:33:20 UTC 2017


This is an automated email from the git hooks/post-receive script.

morph pushed a commit to branch master
in repository astroid.

commit 91aee8e58a3f2cfa61b07a7bdc123df1459e82c9
Author: Sandro Tosi <morph at debian.org>
Date:   Thu Nov 30 19:16:05 2017 -0500

    Import astroid_1.5.3.orig.tar.gz
---
 ChangeLog                                          |  406 ++-
 PKG-INFO                                           |   33 +-
 README.rst                                         |   29 +-
 astroid.egg-info/PKG-INFO                          |   33 +-
 astroid.egg-info/SOURCES.txt                       |   64 +-
 astroid.egg-info/requires.txt                      |    9 +-
 astroid/__init__.py                                |   61 +-
 astroid/__pkginfo__.py                             |   59 +-
 astroid/arguments.py                               |  120 +-
 astroid/as_string.py                               |  173 +-
 astroid/astpeephole.py                             |   28 +-
 astroid/bases.py                                   |  636 ++---
 astroid/brain/brain_builtin_inference.py           |  230 +-
 astroid/brain/brain_collections.py                 |   43 +
 astroid/brain/brain_dateutil.py                    |   36 +-
 astroid/brain/brain_fstrings.py                    |   61 +
 astroid/brain/brain_functools.py                   |   75 +
 astroid/brain/brain_gi.py                          |   18 +-
 astroid/brain/brain_hashlib.py                     |   40 +
 astroid/brain/brain_io.py                          |   43 +
 astroid/brain/brain_mechanize.py                   |    5 +
 astroid/brain/brain_multiprocessing.py             |  104 +
 astroid/brain/brain_namedtuple_enum.py             |  233 ++
 astroid/brain/brain_nose.py                        |   24 +-
 astroid/brain/brain_numpy.py                       |   22 +-
 astroid/brain/brain_pkg_resources.py               |   70 +
 astroid/brain/brain_pytest.py                      |    6 +
 astroid/brain/brain_qt.py                          |   21 +-
 astroid/brain/brain_re.py                          |   34 +
 astroid/brain/brain_six.py                         |   30 +-
 astroid/brain/brain_ssl.py                         |    5 +
 astroid/brain/brain_stdlib.py                      |  473 ----
 astroid/brain/brain_subprocess.py                  |   94 +
 astroid/brain/brain_threading.py                   |   26 +
 astroid/brain/brain_typing.py                      |   89 +
 astroid/builder.py                                 |  270 +-
 astroid/context.py                                 |   37 +-
 astroid/decorators.py                              |  116 +-
 astroid/exceptions.py                              |  216 +-
 astroid/helpers.py                                 |  173 ++
 astroid/inference.py                               |  719 ++++-
 astroid/interpreter/__init__.py                    |    0
 astroid/interpreter/_import/__init__.py            |    0
 astroid/interpreter/_import/spec.py                |  287 ++
 astroid/interpreter/_import/util.py                |   12 +
 astroid/interpreter/dunder_lookup.py               |   81 +
 astroid/interpreter/objectmodel.py                 |  632 +++++
 astroid/manager.py                                 |  143 +-
 astroid/mixins.py                                  |   42 +-
 astroid/modutils.py                                |  322 +--
 astroid/node_classes.py                            | 1365 +++++++--
 astroid/nodes.py                                   |   32 +-
 astroid/objects.py                                 |  206 +-
 astroid/protocols.py                               |  490 ++--
 astroid/raw_building.py                            |  212 +-
 astroid/rebuilder.py                               | 1219 ++++----
 astroid/scoped_nodes.py                            |  888 +++---
 astroid/test_utils.py                              |  208 +-
 astroid/tests/resources.py                         |   27 +-
 .../testdata/python2/data/clientmodule_test.py     |   32 -
 .../namespace_pep_420/submodule.py                 |    1 +
 .../testdata/python2/data/foogle/fax/__init__.py   |    0
 .../tests/testdata/python2/data/foogle/fax/a.py    |    1 +
 .../testdata/python2/data/invalid_encoding.py      |    1 +
 .../python2/data/namespace_pep_420/module.py       |    1 +
 astroid/tests/testdata/python2/data/notall.py      |    2 +-
 .../tests/testdata/python2/data/notamodule/file.py |    0
 .../data/path_pkg_resources_1/package/__init__.py  |    1 +
 .../data/path_pkg_resources_1/package/foo.py       |    0
 .../data/path_pkg_resources_2/package/__init__.py  |    1 +
 .../data/path_pkg_resources_2/package/bar.py       |    0
 .../data/path_pkg_resources_3/package/__init__.py  |    1 +
 .../data/path_pkg_resources_3/package/baz.py       |    0
 .../data/path_pkgutil_1/package/__init__.py        |    2 +
 .../python2/data/path_pkgutil_1/package/foo.py     |    0
 .../data/path_pkgutil_2/package/__init__.py        |    2 +
 .../python2/data/path_pkgutil_2/package/bar.py     |    0
 .../data/path_pkgutil_3/package/__init__.py        |    2 +
 .../python2/data/path_pkgutil_3/package/baz.py     |    0
 .../testdata/python2/data/suppliermodule_test.py   |   13 -
 astroid/tests/testdata/python2/data/tmp__init__.py |    0
 .../testdata/python3/data/clientmodule_test.py     |   32 -
 .../namespace_pep_420/submodule.py                 |    1 +
 .../testdata/python3/data/foogle/fax/__init__.py   |    0
 .../tests/testdata/python3/data/foogle/fax/a.py    |    1 +
 .../testdata/python3/data/invalid_encoding.py      |    1 +
 astroid/tests/testdata/python3/data/module2.py     |    1 +
 .../python3/data/namespace_pep_420/module.py       |    1 +
 .../tests/testdata/python3/data/notamodule/file.py |    0
 .../data/path_pkg_resources_1/package/__init__.py  |    1 +
 .../data/path_pkg_resources_1/package/foo.py       |    0
 .../data/path_pkg_resources_2/package/__init__.py  |    1 +
 .../data/path_pkg_resources_2/package/bar.py       |    0
 .../data/path_pkg_resources_3/package/__init__.py  |    1 +
 .../data/path_pkg_resources_3/package/baz.py       |    0
 .../data/path_pkgutil_1/package/__init__.py        |    2 +
 .../python3/data/path_pkgutil_1/package/foo.py     |    0
 .../data/path_pkgutil_2/package/__init__.py        |    2 +
 .../python3/data/path_pkgutil_2/package/bar.py     |    0
 .../data/path_pkgutil_3/package/__init__.py        |    2 +
 .../python3/data/path_pkgutil_3/package/baz.py     |    0
 .../testdata/python3/data/suppliermodule_test.py   |   13 -
 astroid/tests/testdata/python3/data/tmp__init__.py |    0
 astroid/tests/unittest_brain.py                    |  340 ++-
 astroid/tests/unittest_builder.py                  |  100 +-
 astroid/tests/unittest_helpers.py                  |  256 ++
 astroid/tests/unittest_inference.py                | 2976 +++++++++++++++++---
 astroid/tests/unittest_lookup.py                   |   50 +-
 astroid/tests/unittest_manager.py                  |  167 +-
 astroid/tests/unittest_modutils.py                 |  137 +-
 astroid/tests/unittest_nodes.py                    |  240 +-
 astroid/tests/unittest_object_model.py             |  611 ++++
 astroid/tests/unittest_objects.py                  | 1035 ++++---
 astroid/tests/unittest_peephole.py                 |   22 +-
 astroid/tests/unittest_protocols.py                |   54 +-
 astroid/tests/unittest_python3.py                  |  144 +-
 astroid/tests/unittest_raw_building.py             |   14 +-
 astroid/tests/unittest_regrtest.py                 |  153 +-
 astroid/tests/unittest_scoped_nodes.py             |  349 ++-
 astroid/tests/unittest_transforms.py               |  479 ++--
 astroid/tests/unittest_utils.py                    |   30 +-
 astroid/transforms.py                              |   26 +-
 astroid/util.py                                    |  145 +-
 setup.cfg                                          |    1 -
 setup.py                                           |   25 +-
 tox.ini                                            |   76 +-
 126 files changed, 12965 insertions(+), 5714 deletions(-)

diff --git a/ChangeLog b/ChangeLog
index 80c08c0..7440194 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,25 +1,61 @@
 Change log for the astroid package (used to be astng)
 =====================================================
 
-2016-12-18 -- 1.4.9
+2017-06-03 -- 1.5.3
 
-    * Cast __path__ to a list in _module_file
+    * enum34 dependency is forced to be at least version 1.1.3. Fixes spurious
+    bug related to enum classes being falsy in boolean context, which caused
+    _Inconsistent Hierarchy_ `RuntimeError` in `singledispatch` module.
 
-      _path__ can be an '_frozen_importlib_external._NamespacePath'
-      object for a namespace module (declared by setuptools) with python 3.5+
-      This should prevent a crash ocurring when working with namespace packages.
+    See links below for details:
+    - http://bugs.python.org/issue26748
+    - https://bitbucket.org/ambv/singledispatch/issues/8/inconsistent-hierarchy-with-enum
+    - https://bitbucket.org/stoneleaf/enum34/commits/da50803651ab644e6fce66ebc85562f1117c344b
 
-    * Add support for pytest 3.0.
+    * Do not raise an exception when uninferable value is unpacked in ``with`` statement.
 
-2016-07-27 -- 1.4.8
+    * Lock objects from ``threading`` module are now correctly recognised
+      as context managers.
+
+2017-04-17 -- 1.5.2
+
+   * Basic support for the class form of typing.NamedTuple
+
+   * mro() can be computed for classes with old style classes in the hierarchy
+
+
+2017-04-13 -- 1.5.0
+
+    * Arguments node gained a new attribute, ``kwonlyargs_annotations``
+
+      This new attribute holds the annotations for the keyword-only
+      arguments.
+      
+    * `namedtuple` inference now understands `rename` keyword argument
+
+    * Classes can now know their definition-time arguments.
+
+      Classes can support keyword arguments, which are passed when
+      a class is constructed using ``__new__``.
+
+    * Add support for inferring typing.NamedTuple.
+
+    * ClassDef now supports __getitem__ inference through the metaclass.
+
+    * getitem() method accepts nodes now, instead of Python objects.
+
+    * Add support for explicit namespace packages, created with pkg_resources.
+
+    * Add brain tips for _io.TextIOWrapper's buffer and raw attributes.
 
     * Add `returns` into the proper order in FunctionDef._astroid_fields
 
       The order is important, since it determines the last child,
       which in turn determines the last line number of a scoped node.
 
+    * Add brain tips for functools.lru_cache.
 
-2016-07-07 -- 1.4.7
+    * New function, astroid.extract_node, exported out from astroid.test_utils.
 
     * Stop saving assignment locals in ExceptHandlers, when the context is a store.
 
@@ -28,16 +64,62 @@ Change log for the astroid package (used to be astng)
       could result in a local save for IndexError as KeyError, resulting in potential unexpected
       inferences. Since we don't lose a lot, this syntax gets prohibited.
 
-2016-06-06 -- 1.4.6
-
     * Fix a crash which occurred when the class of a namedtuple could not be inferred.
 
+    * Add support for implicit namespace packages (PEP 420)
+
+      This change involves a couple of modifications. First, we're relying on a
+      spec finder protocol, inspired by importlib's ModuleSpec, for finding where
+      a file or package is, using importlib's PathFinder as well, which enable
+      us to discover namespace packages as well.
+      This discovery is the center piece of the namespace package support,
+      the other part being the construction of a dummy Module node whenever
+      a namespace package root directory is requested during astroid's import
+      references.
+
+    * Introduce a special attributes model
+
+      Through this model, astroid starts knowing special attributes of certain Python objects,
+      such as functions, classes, super objects and so on. This was previously possible before,
+      but now the lookup and the attributes themselves are separated into a new module,
+      objectmodel.py, which describes, in a more comprehensive way, the data model of each
+      object.
+
+    * Exceptions have their own object model
+
+      Some of exceptions's attributes, such as .args and .message,
+      can't be inferred correctly since they are descriptors that get
+      transformed into the proper objects at runtime. This can cause issues
+      with the static analysis, since they are inferred as different than
+      what's expected. Now when we're creating instances of exceptions,
+      we're inferring a special object that knows how to transform those
+      runtime attributes into the proper objects via a custom object model.
+      Closes issue #81
+
+    * dict.values, dict.keys and dict.items are properly
+      inferred to their corresponding type, which also
+      includes the proper containers for Python 3.
+
+    * Fix a crash which occurred when a method had a same name as a builtin object,
+      decorated at the same time by that builtin object ( a property for instance)
+
+    * The inference can handle the case where the attribute is accessed through a subclass
+      of a base class and the attribute is defined at the base class's level,
+      by taking in consideration a redefinition in the subclass.
+
+      This should fix https://github.com/PyCQA/pylint/issues/432
+
+    * Calling lambda methods (defined at class level) can be understood.
+
+    * Don't take in consideration invalid assignments, especially when __slots__
+      declaration forbids them.
+      
+      Close issue #332
+
     * Functional form of enums support accessing values through __call__.
 
     * Brain tips for the ssl library.
 
-2016-03-21 -- 1.4.5
-
     * decoratornames() does not leak InferenceError anymore.
 
     * wildcard_imported_names() got replaced by _public_names()
@@ -53,9 +135,6 @@ Change log for the astroid package (used to be astng)
 
       The method is private in 1.4.X.
 
-
-2016-01-15 -- 1.4.4
-
     * unpack_infer raises InferenceError if it can't operate
       with the given sequences of nodes.
 
@@ -73,16 +152,14 @@ Change log for the astroid package (used to be astng)
       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,
-      by specifiying proper returns.
-
-    * Standard library modules are properly detected by is_standard_module.
+    * Add support for inference on threading.Lock
 
-      This should fix issues such as https://github.com/PyCQA/pylint/issues/725.
+      As a matter of fact, astroid can infer on threading.RLock,
+      threading.Semaphore, but can't do it on threading.Lock (because it comes
+      from an extension module).
 
-2015-12-21 -- 1.4.2
+    * pkg_resources brain tips are a bit more specific,
+      by specifying proper returns.
 
     * The slots() method conflates all the slots from the ancestors
       into a list of current and parent slots.
@@ -91,9 +168,30 @@ Change log for the astroid package (used to be astng)
       they get inherited, as long as each parent defines a __slots__
       entry.
 
+    * Some nodes got a new attribute, 'ctx', which tells in which context
+      the said node was used.
+
+      The possible values for the contexts are `Load` ('a'), `Del`
+      ('del a'), `Store` ('a = 4') and the nodes that got the new
+      attribute are Starred, Subscript, List and Tuple. Closes issue #267.
+
+    * relative_to_absolute_name or methods calling it will now raise
+      TooManyLevelsError when a relative import was trying to
+      access something beyond the top-level package.     
+
+    * AstroidBuildingException is now AstroidBuildingError. The first
+      name will exist until astroid 2.0.
+
+    * Add two new exceptions, AstroidImportError and AstroidSyntaxError.
+      They are subclasses of AstroidBuildingException and are raised when
+      a module can't be imported from various reasons.
+      Also do_import_module lets the errors to bubble up without converting
+      them to InferenceError. This particular conversion happens only
+      during the inference.
+
     * Revert to using printf-style formatting in as_string, in order
       to avoid a potential problem with encodings when using .format.
-      Closes issue #273.
+      Closes issue #273. Patch by notsqrt.
 
     * assigned_stmts methods have the same signature from now on.
       
@@ -101,10 +199,20 @@ Change log for the astroid package (used to be astng)
       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.
-    
 
-2015-11-29 -- 1.4.1
+    * Fix metaclass detection, when multiple keyword arguments
+      are used in class definition.
+
+    * Add support for annotated variable assignments (PEP 526)
+
+    * Starred expressions are now inferred correctly for tuple,
+      list, set, and dictionary literals.
+
+    * Support for asynchronous comprehensions introduced in Python 3.6.
+
+      Fixes #399. See PEP530 for details.
 
+2015-11-29 -- 1.4.1
 
     * Add support for handling Uninferable nodes when calling as_string
 
@@ -120,30 +228,45 @@ Change log for the astroid package (used to be astng)
 2015-11-29 -- 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.
 
+    * astroid.builder.AstroidBuilder.string_build and
+      astroid.builder.AstroidBuilder.file_build are now raising
+      AstroidBuildingException when the parsing of the string raises
+      a SyntaxError.
+
     * 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.
+    * Add some fixes which enhances the Jython support.
+      The fix mostly includes updates to modutils, which is
+      modified in order to properly lookup paths from live objects,
+      which ends in $py.class, not pyc as for Python 2,       
+      Closes issue #83.
 
     * The Generator objects inferred with `infer_call_result`
       from functions have as parent the function from which they
       are returned.
 
+    * 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.
+
     * Understand partially the 3-argument form of `type`.
       The only change is that astroid understands members
       passed in as dictionaries as the third argument.
 
+    * .slots() will return an empty list for classes with empty slots.
+      Previously it returned None, which is the same value for
+      classes without slots at all. This was changed in order
+      to better reflect what's actually happening.
+
     * Improve the inference of Getattr nodes when dealing with
       abstract properties from the abc module.
 
@@ -199,6 +322,83 @@ Change log for the astroid package (used to be astng)
       that all of them will have __getattr__ and __getattribute__ present and it
       is wrong to consider that those methods were actually implemented.
 
+    * Add basic support for understanding context managers.
+
+      Currently, there's no way to understand whatever __enter__ returns in a
+      context manager and what it is binded using the ``as`` keyword. With these changes,
+      we can understand ``bar`` in ``with foo() as bar``, which will be the result of __enter__.
+
+    * Add a new type of node, called *inference objects*. Inference objects are similar with
+      AST nodes, but they can be obtained only after inference, so they can't be found
+      inside the original AST tree. Their purpose is to handle at astroid level
+      some operations which can't be handled when using brain transforms.
+      For instance, the first object added is FrozenSet, which can be manipulated
+      at astroid's level (inferred, itered etc). Code such as this 'frozenset((1,2))'
+      will not return an Instance of frozenset, without having access to its
+      content, but a new objects.FrozenSet, which can be used just as a nodes.Set.
+
+    * Add a new *inference object* called Super, which also adds support for understanding
+      super calls. astroid understands the zero-argument form of super, specific to
+      Python 3, where the interpreter fills itself the arguments of the call. Also, we
+      are understanding the 2-argument form of super, both for bounded lookups
+      (super(X, instance)) as well as for unbounded lookups (super(X, Y)),
+      having as well support for validating that the object-or-type is a subtype
+      of the first argument. The unbounded form of super (one argument) is not
+      understood, since it's useless in practice and should be removed from
+      Python's specification. Closes issue #89.
+
+    * Add inference support for getattr builtin. Now getattr builtins are
+      properly understood. Closes issue #103.
+
+    * Add inference support for hasattr builtin. Closes issue #102.
+
+    * Add 'assert_equals' method in nose.tools's brain plugin.
+
+    * Don't leak StopIteration when inferring invalid UnaryOps (+[], +None etc.).
+
+    * Improve the inference of UnaryOperands.
+
+      When inferring unary operands, astroid looks up the return value
+      of __pos__, __neg__ and __invert__ to determine the inferred value
+      of ``~node``, ``+node`` or ``-node``.
+
+    * Improve the inference of six.moves, especially when using `from ... import ...`
+      syntax. Also, we added a new fail import hook for six.moves, which fixes the
+      import-error false positive from pylint. Closes issue #107.
+
+    * Make the first steps towards detecting type errors for unary and binary
+      operations.
+
+      In exceptions, one object was added for holding information about a possible
+      UnaryOp TypeError, object called `UnaryOperationError`. Even though the name
+      suggests it's an exception, it's actually not one. When inferring UnaryOps,
+      we use this special object to mark a possible TypeError,
+      object which can be interpreted by pylint in order to emit a new warning.
+      We are also exposing a new method for UnaryOps, called `type_errors`,
+      which returns a list of UnaryOperationsError.
+
+    * A new method was added to the AST nodes, 'bool_value'. It is used to deduce
+      the value of a node when used in a boolean context, which is useful
+      for both inference, as well as for data flow analysis, where we are interested
+      in what branches will be followed when the program will be executed.
+      `bool_value` returns True, False or YES, if the node's boolean value can't
+      be deduced. The method is used when inferring the unary operand `not`.
+      Thus, `not something` will result in calling `something.bool_value` and
+      negating the result, if it is a boolean.
+
+    * Add inference support for boolean operations (`and` and `not`).
+
+    * Add inference support for the builtin `callable`.
+
+    * astroid.inspector was moved to pylint.pyreverse, since
+      it is the only known client of this module. No other change
+      was made to the exported API.
+
+    * astroid.utils.ASTWalker and astroid.utils.LocalsVisitor
+      were moved to pylint.pyreverse.utils.
+
+    * Add inference support for the builtin `bool`.
+
     * Add `igetattr` method to scoped_nodes.Function.
 
     * Add support for Python 3.5's MatMul operation: see PEP 465 for more
@@ -208,38 +408,53 @@ Change log for the astroid package (used to be astng)
       builtins module. Previously trying to infer the Name(NotImplemented)
       returned an YES object.
 
-    * Add proper grammatical names for `infered` and `ass_type` methods,
-      namely `inferred` and `assign_type`.
+    * Add astroid.helpers, a module of various useful utilities which don't
+      belong yet into other components. Added *object_type*, a function
+      which can be used to obtain the type of almost any astroid object,
+      similar to how the builtin *type* works.
 
-      The old methods will raise PendingDeprecationWarning, being slated
-      for removal in astroid 2.0.
+    * Understand the one-argument form of the builtin *type*.
 
-    * Add new AST names in order to be similar to the ones
-      from the builtin ast module.
+      This uses the recently added *astroid.helpers.object_type* in order to
+      retrieve the Python type of the first argument of the call.
 
-      With this change, Getattr becomes Attributes, Backquote becomes
-      Repr, Class is ClassDef, Function is FunctionDef,  Discard is Expr,
-      CallFunc is Call, From is ImportFrom, AssName is AssignName
-      and AssAttr is AssignAttr. The old names are maintained for backwards
-      compatibility and they are interchangeable, in the sense that using
-      Discard will use Expr under the hood and the implemented visit_discard
-      in checkers will be called with Expr nodes instead. The AST does not
-      contain the old nodes, only the interoperability between them hides this
-      fact. Recommandations to move to the new nodes are emitted accordingly,
-      the old names will be removed in astroid 2.0.
+    * Add helpers.is_supertype and helpers.is_subtype, two functions for
+      checking if an object is a super/sub type of another.
 
+    * Improve the inference of binary arithmetic operations (normal
+      and augmented).
+
+    * Add support for retrieving TypeErrors for binary arithmetic operations.
+
+      The change is similar to what was added for UnaryOps: a new method
+      called *type_errors* for both AugAssign and BinOp, which can be used
+      to retrieve type errors occurred during inference. Also, a new
+      exception object was added, BinaryOperationError.
+
+    * Lambdas found at class level, which have a `self` argument, are considered
+      BoundMethods when accessing them from instances of their class.
+
+    * Add support for multiplication of tuples and lists with instances
+      which provides an __index__ returning-int method.
+
+    * Add support for indexing containers with instances which provides
+      an __index__ returning-int method.
 
     * Star unpacking in assignments returns properly a list,
       not the individual components. Closes issue #138.
-    * Lambdas found at class level, which have a `self` argument, are considered
+
     * Add annotation support for function.as_string(). Closes issue #37.
 
     * Add support for indexing bytes on Python 3.
-      BoundMethods when accessing them from instances of their class.
 
     * Add support for inferring subscript on instances, which will 
       use __getitem__. Closes issue #124.
 
+    * Add support for pkg_resources.declare_namespaces.
+
+    * Move pyreverse specific modules and functionality back into pyreverse
+      (astroid.manager.Project, astroid.manager.Manager.project_from_files).
+
     * Understand metaclasses added with six.add_metaclass decorator. Closes issue #129.
 
     * Add a new convenience API, `astroid.parse`, which can be used to retrieve
@@ -252,7 +467,14 @@ Change log for the astroid package (used to be astng)
       in a non-package will finally result in an import-error on Pylint's side.
       Until now relative_only was ignored, leading to the import of `something`,
       if it was globally available.
-     
+
+    * Add get_wrapping_class API to scoped_nodes, which can be used to
+      retrieve the class that wraps a node.
+
+    * Class.getattr looks by default in the implicit and the explicit metaclasses,
+      which is `type` on Python 3.
+
+      Closes issue #114.
 
     * There's a new separate step for transforms.
 
@@ -278,7 +500,48 @@ Change log for the astroid package (used to be astng)
             AstroidBuilder._data_build.
 
       Closes issue #116.
+    
+    * Class._explicit_metaclass is now a public API, in the form of
+      Class.declared_metaclass.
+
+      Class.mro remains the de facto method for retrieving the metaclass
+      of a class, which will also do an evaluation of what declared_metaclass
+      returns.
 
+    * Understand slices of tuples, lists, strings and instances with support
+      for slices.
+
+      Closes issue #137.
+
+    * Add proper grammatical names for `infered` and `ass_type` methods,
+      namely `inferred` and `assign_type`.
+
+      The old methods will raise PendingDeprecationWarning, being slated
+      for removal in astroid 2.0.
+
+    * Add new AST names in order to be similar to the ones
+      from the builtin ast module.
+
+      With this change, Getattr becomes Attributes, Backquote becomes
+      Repr, Class is ClassDef, Function is FunctionDef,  Discard is Expr,
+      CallFunc is Call, From is ImportFrom, AssName is AssignName
+      and AssAttr is AssignAttr. The old names are maintained for backwards
+      compatibility and they are interchangeable, in the sense that using
+      Discard will use Expr under the hood and the implemented visit_discard
+      in checkers will be called with Expr nodes instead. The AST does not
+      contain the old nodes, only the interoperability between them hides this
+      fact. Recommendations to move to the new nodes are emitted accordingly,
+      the old names will be removed in astroid 2.0.
+
+    * Add support for understanding class creation using `type.__new__(mcs, name, bases, attrs)``
+
+      Until now, inferring this kind of calls resulted in Instances, not in classes,
+      since astroid didn't understand that the presence of the metaclass in the call
+      leads to a class creating, not to an instance creation.
+
+    * Understand the `slice` builtin. Closes issue #184.
+
+    * Add brain tips for numpy.core, which should fix Pylint's #453.
 
     * Add a new node, DictUnpack, which is used to represent the unpacking
       of a dictionary into another dictionary, using PEP 448 specific syntax
@@ -288,40 +551,9 @@ Change log for the astroid package (used to be astng)
       since it just uses None to represent this kind of operation,
       which seems conceptually wrong, due to the fact the AST contains
       non-AST nodes. Closes issue #206.
-
-    * Add a new type of node, called *inference objects*. Inference objects are similar with
-      AST nodes, but they can be obtained only after inference, so they can't be found
-      inside the AST tree. Their purpose is to handle at astroid level
-      some operations which can't be handled when using brain transforms.
-      For instance, the first object added is FrozenSet, which can be manipulated
-      at astroid's level (inferred, itered etc). Code such as this 'frozenset((1,2))'
-      will not return an Instance of frozenset, without having access to its
-      content, but a new objects.FrozenSet, which can be used just as a nodes.Set.
-
-
-    * Add a new *inference object* called Super, which also adds support for understanding
-      super calls. astroid understands the zero-argument form of super, specific to
-      Python 3, where the interpreter fills itself the arguments of the call. Also, we
-      are understanding the 2-argument form of super, both for bounded lookups
-      (super(X, instance)) as well as for unbounded lookups (super(X, Y)),
-      having as well support for validating that the object-or-type is a subtype
-      of the first argument. The unbounded form of super (one argument) is not
-      understood, since it's useless in practice and should be removed from
-      Python's specification. Closes issue #89.
-
-    * astroid.utils.ASTWalker and astroid.utils.LocalsVisitor
-      were moved to pylint.pyreverse.utils.
      
-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 ...`
-      syntax. Also, we added a new fail import hook for six.moves, which fixes the
-      import-error false positive from pylint. Closes issue #107.
-    
 2015-03-14 -- 1.3.6
 
     * Class.slots raises NotImplementedError for old style classes.
@@ -418,7 +650,7 @@ Change log for the astroid package (used to be astng)
 
 2014-11-20 -- 1.3.0
 
-    * Fix a maximum recursion error occured during the inference,
+    * Fix a maximum recursion error occurred during the inference,
       where statements with the same name weren't filtered properly.
       Closes pylint issue #295.
 
@@ -519,7 +751,7 @@ Change log for the astroid package (used to be astng)
       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"
+    * Fix names grabbed using wildcard import in "absolute import mode"
       (ie with absolute_import activated from the __future__ or with
       python 3). Fix pylint issue #58.
 
@@ -669,7 +901,7 @@ Change log for the astroid package (used to be astng)
     * #74746: should return empty module when __main__ is imported (patch by
       google)
 
-    * #74748: getitem protocal return constant value instead of a Const node
+    * #74748: getitem protocol return constant value instead of a Const node
       (patch by google)
 
     * #77188: support lgc.decorators.classproperty
@@ -686,7 +918,7 @@ Change log for the astroid package (used to be astng)
 
     * #70497: Crash on AttributeError: 'NoneType' object has no attribute '_infer_name'
 
-    * #70381: IndendationError in import causes crash
+    * #70381: IndentationError in import causes crash
 
     * #70565: absolute imports treated as relative (patch by Jacek Konieczny)
 
@@ -749,7 +981,7 @@ Change log for the astroid package (used to be astng)
 
 2010-09-10  --  0.20.2
     * fix astng building bug: we've to set module.package flag at the node
-      creation time otherwise we'll miss this information when infering relative
+      creation time otherwise we'll miss this information when inferring relative
       import during the build process (this should fix for instance some problems
       with numpy)
 
diff --git a/PKG-INFO b/PKG-INFO
index a428e92..d39ac04 100644
--- a/PKG-INFO
+++ b/PKG-INFO
@@ -1,18 +1,30 @@
 Metadata-Version: 1.1
 Name: astroid
-Version: 1.4.9
+Version: 1.5.3
 Summary: A abstract syntax tree for Python with inference support.
 Home-page: https://github.com/PyCQA/astroid
 Author: Python Code Quality Authority
 Author-email: code-quality at python.org
 License: LGPL
-Description: .. image:: https://drone.io/bitbucket.org/logilab/astroid/status.png
-            :alt: drone.io Build Status
-            :target: https://drone.io/bitbucket.org/logilab/astroid
-        
-        Astroid
+Description: Astroid
         =======
         
+        .. image:: https://travis-ci.org/PyCQA/astroid.svg?branch=master
+            :target: https://travis-ci.org/PyCQA/astroid
+        
+        .. image:: https://ci.appveyor.com/api/projects/status/co3u42kunguhbh6l/branch/master?svg=true
+            :alt: AppVeyor Build Status
+            :target: https://ci.appveyor.com/project/PCManticore/astroid
+        
+        .. image:: https://coveralls.io/repos/github/PyCQA/astroid/badge.svg?branch=master
+            :target: https://coveralls.io/github/PyCQA/astroid?branch=master
+        
+        .. image:: https://readthedocs.org/projects/astroid/badge/?version=latest
+            :target: http://astroid.readthedocs.io/en/latest/?badge=latest
+            :alt: Documentation Status
+        
+        
+        
         What's this?
         ------------
         
@@ -29,15 +41,6 @@ Description: .. image:: https://drone.io/bitbucket.org/logilab/astroid/status.pn
         scopes.  Furthermore, astroid builds partial trees by inspecting living
         objects.
         
-        Main modules are:
-        
-        * `bases`, `node_classses` and `scoped_nodes` contain the classes for the
-          different type of nodes of the tree.
-        
-        * the `manager` contains a high level object to get astroid trees from
-          source files and living objects. It maintains a cache of previously
-          constructed tree for quick access.
-        
         
         Installation
         ------------
diff --git a/README.rst b/README.rst
index b19aca8..5e2f629 100644
--- a/README.rst
+++ b/README.rst
@@ -1,10 +1,22 @@
-.. image:: https://drone.io/bitbucket.org/logilab/astroid/status.png
-    :alt: drone.io Build Status
-    :target: https://drone.io/bitbucket.org/logilab/astroid
-
 Astroid
 =======
 
+.. image:: https://travis-ci.org/PyCQA/astroid.svg?branch=master
+    :target: https://travis-ci.org/PyCQA/astroid
+
+.. image:: https://ci.appveyor.com/api/projects/status/co3u42kunguhbh6l/branch/master?svg=true
+    :alt: AppVeyor Build Status
+    :target: https://ci.appveyor.com/project/PCManticore/astroid
+
+.. image:: https://coveralls.io/repos/github/PyCQA/astroid/badge.svg?branch=master
+    :target: https://coveralls.io/github/PyCQA/astroid?branch=master
+
+.. image:: https://readthedocs.org/projects/astroid/badge/?version=latest
+    :target: http://astroid.readthedocs.io/en/latest/?badge=latest
+    :alt: Documentation Status
+
+
+
 What's this?
 ------------
 
@@ -21,15 +33,6 @@ usages.  They include some support for static inference and local name
 scopes.  Furthermore, astroid builds partial trees by inspecting living
 objects.
 
-Main modules are:
-
-* `bases`, `node_classses` and `scoped_nodes` contain the classes for the
-  different type of nodes of the tree.
-
-* the `manager` contains a high level object to get astroid trees from
-  source files and living objects. It maintains a cache of previously
-  constructed tree for quick access.
-
 
 Installation
 ------------
diff --git a/astroid.egg-info/PKG-INFO b/astroid.egg-info/PKG-INFO
index a428e92..d39ac04 100644
--- a/astroid.egg-info/PKG-INFO
+++ b/astroid.egg-info/PKG-INFO
@@ -1,18 +1,30 @@
 Metadata-Version: 1.1
 Name: astroid
-Version: 1.4.9
+Version: 1.5.3
 Summary: A abstract syntax tree for Python with inference support.
 Home-page: https://github.com/PyCQA/astroid
 Author: Python Code Quality Authority
 Author-email: code-quality at python.org
 License: LGPL
-Description: .. image:: https://drone.io/bitbucket.org/logilab/astroid/status.png
-            :alt: drone.io Build Status
-            :target: https://drone.io/bitbucket.org/logilab/astroid
-        
-        Astroid
+Description: Astroid
         =======
         
+        .. image:: https://travis-ci.org/PyCQA/astroid.svg?branch=master
+            :target: https://travis-ci.org/PyCQA/astroid
+        
+        .. image:: https://ci.appveyor.com/api/projects/status/co3u42kunguhbh6l/branch/master?svg=true
+            :alt: AppVeyor Build Status
+            :target: https://ci.appveyor.com/project/PCManticore/astroid
+        
+        .. image:: https://coveralls.io/repos/github/PyCQA/astroid/badge.svg?branch=master
+            :target: https://coveralls.io/github/PyCQA/astroid?branch=master
+        
+        .. image:: https://readthedocs.org/projects/astroid/badge/?version=latest
+            :target: http://astroid.readthedocs.io/en/latest/?badge=latest
+            :alt: Documentation Status
+        
+        
+        
         What's this?
         ------------
         
@@ -29,15 +41,6 @@ Description: .. image:: https://drone.io/bitbucket.org/logilab/astroid/status.pn
         scopes.  Furthermore, astroid builds partial trees by inspecting living
         objects.
         
-        Main modules are:
-        
-        * `bases`, `node_classses` and `scoped_nodes` contain the classes for the
-          different type of nodes of the tree.
-        
-        * the `manager` contains a high level object to get astroid trees from
-          source files and living objects. It maintains a cache of previously
-          constructed tree for quick access.
-        
         
         Installation
         ------------
diff --git a/astroid.egg-info/SOURCES.txt b/astroid.egg-info/SOURCES.txt
index 93cdf6d..b9ea18a 100644
--- a/astroid.egg-info/SOURCES.txt
+++ b/astroid.egg-info/SOURCES.txt
@@ -16,6 +16,7 @@ astroid/builder.py
 astroid/context.py
 astroid/decorators.py
 astroid/exceptions.py
+astroid/helpers.py
 astroid/inference.py
 astroid/manager.py
 astroid/mixins.py
@@ -36,25 +37,44 @@ astroid.egg-info/dependency_links.txt
 astroid.egg-info/requires.txt
 astroid.egg-info/top_level.txt
 astroid/brain/brain_builtin_inference.py
+astroid/brain/brain_collections.py
 astroid/brain/brain_dateutil.py
+astroid/brain/brain_fstrings.py
+astroid/brain/brain_functools.py
 astroid/brain/brain_gi.py
+astroid/brain/brain_hashlib.py
+astroid/brain/brain_io.py
 astroid/brain/brain_mechanize.py
+astroid/brain/brain_multiprocessing.py
+astroid/brain/brain_namedtuple_enum.py
 astroid/brain/brain_nose.py
 astroid/brain/brain_numpy.py
+astroid/brain/brain_pkg_resources.py
 astroid/brain/brain_pytest.py
 astroid/brain/brain_qt.py
+astroid/brain/brain_re.py
 astroid/brain/brain_six.py
 astroid/brain/brain_ssl.py
-astroid/brain/brain_stdlib.py
+astroid/brain/brain_subprocess.py
+astroid/brain/brain_threading.py
+astroid/brain/brain_typing.py
+astroid/interpreter/__init__.py
+astroid/interpreter/dunder_lookup.py
+astroid/interpreter/objectmodel.py
+astroid/interpreter/_import/__init__.py
+astroid/interpreter/_import/spec.py
+astroid/interpreter/_import/util.py
 astroid/tests/__init__.py
 astroid/tests/resources.py
 astroid/tests/unittest_brain.py
 astroid/tests/unittest_builder.py
+astroid/tests/unittest_helpers.py
 astroid/tests/unittest_inference.py
 astroid/tests/unittest_lookup.py
 astroid/tests/unittest_manager.py
 astroid/tests/unittest_modutils.py
 astroid/tests/unittest_nodes.py
+astroid/tests/unittest_object_model.py
 astroid/tests/unittest_objects.py
 astroid/tests/unittest_peephole.py
 astroid/tests/unittest_protocols.py
@@ -69,10 +89,10 @@ astroid/tests/testdata/python2/data/MyPyPa-0.1.0-py2.5.zip
 astroid/tests/testdata/python2/data/__init__.py
 astroid/tests/testdata/python2/data/absimport.py
 astroid/tests/testdata/python2/data/all.py
-astroid/tests/testdata/python2/data/clientmodule_test.py
 astroid/tests/testdata/python2/data/descriptor_crash.py
 astroid/tests/testdata/python2/data/email.py
 astroid/tests/testdata/python2/data/format.py
+astroid/tests/testdata/python2/data/invalid_encoding.py
 astroid/tests/testdata/python2/data/joined_strings.py
 astroid/tests/testdata/python2/data/module.py
 astroid/tests/testdata/python2/data/module2.py
@@ -80,7 +100,7 @@ astroid/tests/testdata/python2/data/noendingnewline.py
 astroid/tests/testdata/python2/data/nonregr.py
 astroid/tests/testdata/python2/data/notall.py
 astroid/tests/testdata/python2/data/recursion.py
-astroid/tests/testdata/python2/data/suppliermodule_test.py
+astroid/tests/testdata/python2/data/tmp__init__.py
 astroid/tests/testdata/python2/data/SSL1/Connection1.py
 astroid/tests/testdata/python2/data/SSL1/__init__.py
 astroid/tests/testdata/python2/data/absimp/__init__.py
@@ -88,21 +108,38 @@ astroid/tests/testdata/python2/data/absimp/string.py
 astroid/tests/testdata/python2/data/absimp/sidepackage/__init__.py
 astroid/tests/testdata/python2/data/appl/__init__.py
 astroid/tests/testdata/python2/data/appl/myConnection.py
+astroid/tests/testdata/python2/data/contribute_to_namespace/namespace_pep_420/submodule.py
 astroid/tests/testdata/python2/data/find_test/__init__.py
 astroid/tests/testdata/python2/data/find_test/module.py
 astroid/tests/testdata/python2/data/find_test/module2.py
 astroid/tests/testdata/python2/data/find_test/noendingnewline.py
 astroid/tests/testdata/python2/data/find_test/nonregr.py
+astroid/tests/testdata/python2/data/foogle/fax/__init__.py
+astroid/tests/testdata/python2/data/foogle/fax/a.py
 astroid/tests/testdata/python2/data/lmfp/__init__.py
 astroid/tests/testdata/python2/data/lmfp/foo.py
 astroid/tests/testdata/python2/data/module1abs/__init__.py
 astroid/tests/testdata/python2/data/module1abs/core.py
+astroid/tests/testdata/python2/data/namespace_pep_420/module.py
+astroid/tests/testdata/python2/data/notamodule/file.py
 astroid/tests/testdata/python2/data/package/__init__.py
 astroid/tests/testdata/python2/data/package/absimport.py
 astroid/tests/testdata/python2/data/package/hello.py
 astroid/tests/testdata/python2/data/package/import_package_subpackage_module.py
 astroid/tests/testdata/python2/data/package/subpackage/__init__.py
 astroid/tests/testdata/python2/data/package/subpackage/module.py
+astroid/tests/testdata/python2/data/path_pkg_resources_1/package/__init__.py
+astroid/tests/testdata/python2/data/path_pkg_resources_1/package/foo.py
+astroid/tests/testdata/python2/data/path_pkg_resources_2/package/__init__.py
+astroid/tests/testdata/python2/data/path_pkg_resources_2/package/bar.py
+astroid/tests/testdata/python2/data/path_pkg_resources_3/package/__init__.py
+astroid/tests/testdata/python2/data/path_pkg_resources_3/package/baz.py
+astroid/tests/testdata/python2/data/path_pkgutil_1/package/__init__.py
+astroid/tests/testdata/python2/data/path_pkgutil_1/package/foo.py
+astroid/tests/testdata/python2/data/path_pkgutil_2/package/__init__.py
+astroid/tests/testdata/python2/data/path_pkgutil_2/package/bar.py
+astroid/tests/testdata/python2/data/path_pkgutil_3/package/__init__.py
+astroid/tests/testdata/python2/data/path_pkgutil_3/package/baz.py
 astroid/tests/testdata/python2/data/unicode_package/__init__.py
 astroid/tests/testdata/python2/data/unicode_package/core/__init__.py
... 24178 lines suppressed ...

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/python-modules/packages/astroid.git



More information about the Python-modules-commits mailing list