python-astroid/python-astroid.spec
Michal Čihař f3ba169db5 Accepting request 286631 from home:Nijel:branches:devel:languages:python
- 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.

OBS-URL: https://build.opensuse.org/request/show/286631
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-astroid?expand=0&rev=14
2015-02-18 13:51:04 +00:00

74 lines
2.5 KiB
RPMSpec

#
# spec file for package python-astroid
#
# 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
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# 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/
#
Name: python-astroid
Version: 1.3.4
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
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
BuildArch: noarch
%endif
%endif
%{!?python_sitelib: %global python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
%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.
It provides a compatible representation which comes from the _ast
module. It rebuilds the tree generated by the builtin _ast module by
recursively walking down the AST and building an extended ast. The new
node classes have additional methods and attributes for different
usages. They include some support for static inference and local name
scopes. Furthermore, astroid builds partial trees by inspecting living
objects.
%prep
%setup -n astroid-%{version}
%build
python setup.py build
%install
python setup.py install --prefix=%{_prefix} --root="%{buildroot}"
%files
%defattr(-,root,root,-)
%doc COPYING COPYING.LESSER ChangeLog README
%{python_sitelib}/astroid/
%{python_sitelib}/astroid-%{version}-py*.egg-info
%changelog