2013-11-28 15:49:38 +01:00
|
|
|
#
|
|
|
|
# spec file for package python-astroid
|
|
|
|
#
|
2018-01-24 11:13:11 +01:00
|
|
|
# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
|
2013-11-28 15:49:38 +01:00
|
|
|
#
|
|
|
|
# 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.
|
|
|
|
|
2018-09-14 17:38:03 +02:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2013-11-28 15:49:38 +01:00
|
|
|
#
|
|
|
|
|
|
|
|
|
2017-03-15 16:32:03 +01:00
|
|
|
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
2018-09-14 17:38:03 +02:00
|
|
|
%define skip_python2 1
|
2013-11-28 15:49:38 +01:00
|
|
|
Name: python-astroid
|
2018-09-14 17:38:03 +02:00
|
|
|
Version: 2.0.4
|
2013-11-28 15:49:38 +01:00
|
|
|
Release: 0
|
2013-11-28 15:55:58 +01:00
|
|
|
Summary: Rebuild a new abstract syntax tree from Python's ast
|
2018-07-16 14:10:18 +02:00
|
|
|
License: LGPL-2.1-or-later
|
2013-11-28 15:49:38 +01:00
|
|
|
Group: Development/Libraries/Python
|
2018-07-16 14:10:18 +02:00
|
|
|
URL: https://github.com/pycqa/astroid
|
2018-01-24 11:13:11 +01:00
|
|
|
Source: https://files.pythonhosted.org/packages/source/a/astroid/astroid-%{version}.tar.gz
|
2017-03-15 16:32:03 +01:00
|
|
|
Source1: pytest.ini
|
|
|
|
BuildRequires: %{python_module lazy-object-proxy}
|
2018-07-16 14:10:18 +02:00
|
|
|
BuildRequires: %{python_module pytest-runner}
|
2017-03-15 16:32:03 +01:00
|
|
|
BuildRequires: %{python_module pytest}
|
|
|
|
BuildRequires: %{python_module setuptools}
|
|
|
|
BuildRequires: %{python_module six}
|
|
|
|
BuildRequires: %{python_module wrapt}
|
|
|
|
BuildRequires: fdupes
|
|
|
|
BuildRequires: python-rpm-macros
|
|
|
|
Requires: python-lazy-object-proxy
|
2014-11-21 10:01:07 +01:00
|
|
|
Requires: python-six
|
2016-02-22 15:48:17 +01:00
|
|
|
Requires: python-wrapt
|
2018-01-24 11:13:11 +01:00
|
|
|
BuildArch: noarch
|
2017-03-15 16:32:03 +01:00
|
|
|
%python_subpackages
|
2013-11-28 15:49:38 +01:00
|
|
|
|
|
|
|
%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
|
2017-03-15 16:32:03 +01:00
|
|
|
%setup -q -n astroid-%{version}
|
2018-07-16 14:10:18 +02:00
|
|
|
# FIXME: with next release verify again
|
|
|
|
# The numpy checks are broken on py3 completely
|
|
|
|
rm -f astroid/tests/unittest_brain_numpy.py
|
2013-11-28 15:49:38 +01:00
|
|
|
|
|
|
|
%build
|
2017-03-15 16:32:03 +01:00
|
|
|
%python_build
|
2013-11-28 15:49:38 +01:00
|
|
|
|
|
|
|
%install
|
2017-03-15 16:32:03 +01:00
|
|
|
%python_install
|
2018-01-24 11:13:11 +01:00
|
|
|
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
2017-03-15 16:32:03 +01:00
|
|
|
|
|
|
|
%check
|
2018-01-24 11:13:11 +01:00
|
|
|
cp %{SOURCE1} .
|
2017-03-15 16:32:03 +01:00
|
|
|
%python_exec -m pytest -s
|
2013-11-28 15:49:38 +01:00
|
|
|
|
2017-03-15 16:32:03 +01:00
|
|
|
%files %{python_files}
|
2018-07-16 14:10:18 +02:00
|
|
|
%license COPYING COPYING.LESSER
|
|
|
|
%doc ChangeLog README.rst
|
2013-11-28 15:49:38 +01:00
|
|
|
%{python_sitelib}/astroid/
|
2017-03-15 16:32:03 +01:00
|
|
|
%{python_sitelib}/astroid-*.egg-info
|
2013-11-28 15:49:38 +01:00
|
|
|
|
|
|
|
%changelog
|