From f422f5db3b066131a4f2ae73b453dd3eeec0fa18e01f8ef31c93c9bd9b8755aa Mon Sep 17 00:00:00 2001 From: Denisart Benjamin Date: Tue, 12 Aug 2014 10:49:54 +0000 Subject: [PATCH] Accepting request 244298 from home:Nijel:branches:devel:languages:python - 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. OBS-URL: https://build.opensuse.org/request/show/244298 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-astroid?expand=0&rev=6 --- astroid-1.1.1.tar.gz | 3 --- astroid-1.2.0.tar.gz | 3 +++ python-astroid.changes | 27 +++++++++++++++++++++++++++ python-astroid.spec | 2 +- 4 files changed, 31 insertions(+), 4 deletions(-) delete mode 100644 astroid-1.1.1.tar.gz create mode 100644 astroid-1.2.0.tar.gz diff --git a/astroid-1.1.1.tar.gz b/astroid-1.1.1.tar.gz deleted file mode 100644 index e297deb..0000000 --- a/astroid-1.1.1.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:780735cb451f5ae982bfa8a6b80866305e3eb9cbdd68e58d79afd94feb00e1f4 -size 119539 diff --git a/astroid-1.2.0.tar.gz b/astroid-1.2.0.tar.gz new file mode 100644 index 0000000..a1f7eb3 --- /dev/null +++ b/astroid-1.2.0.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:589e738d2e94bac938bd88e2b7331188c550c04b41ff516ca3ace5b143c71d75 +size 127194 diff --git a/python-astroid.changes b/python-astroid.changes index 28440bd..b4574fc 100644 --- a/python-astroid.changes +++ b/python-astroid.changes @@ -1,3 +1,30 @@ +------------------------------------------------------------------- +Tue Aug 12 09:24:19 UTC 2014 - mcihar@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. + ------------------------------------------------------------------- Thu Jul 10 13:12:12 UTC 2014 - toddrme2178@gmail.com diff --git a/python-astroid.spec b/python-astroid.spec index 452b104..f4ccc92 100644 --- a/python-astroid.spec +++ b/python-astroid.spec @@ -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