2013-11-28 15:49:38 +01:00
|
|
|
#
|
|
|
|
# spec file for package python-astroid
|
|
|
|
#
|
2022-01-15 17:45:59 +01:00
|
|
|
# Copyright (c) 2022 SUSE LLC
|
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
|
|
|
#
|
|
|
|
|
|
|
|
|
|
|
|
Name: python-astroid
|
2022-12-03 08:26:11 +01:00
|
|
|
Version: 2.12.13
|
2013-11-28 15:49:38 +01:00
|
|
|
Release: 0
|
2018-09-18 11:13:53 +02:00
|
|
|
Summary: Representation of Python source as an AST for pylint
|
2018-07-16 14:10:18 +02:00
|
|
|
License: LGPL-2.1-or-later
|
|
|
|
URL: https://github.com/pycqa/astroid
|
2021-05-07 17:25:28 +02:00
|
|
|
Source: https://github.com/PyCQA/astroid/archive/refs/tags/v%{version}.tar.gz#/astroid-%{version}-gh.tar.gz
|
2022-08-29 13:32:08 +02:00
|
|
|
BuildRequires: %{python_module base >= 3.7.2}
|
2019-10-04 10:27:26 +02:00
|
|
|
BuildRequires: %{python_module lazy-object-proxy >= 1.4}
|
2022-08-29 13:32:08 +02:00
|
|
|
BuildRequires: %{python_module pip}
|
2017-03-15 16:32:03 +01:00
|
|
|
BuildRequires: %{python_module pytest}
|
|
|
|
BuildRequires: %{python_module setuptools}
|
2021-03-22 23:15:02 +01:00
|
|
|
BuildRequires: %{python_module typed-ast >= 1.4 if %python-base < 3.8}
|
2022-08-29 13:32:08 +02:00
|
|
|
# typing-extensions for python310 required for tests only: gh#PyCQA/astroid#1585
|
|
|
|
BuildRequires: %{python_module typing-extensions >= 3.10}
|
|
|
|
BuildRequires: %{python_module wheel}
|
|
|
|
BuildRequires: %{python_module wrapt >= 1.11 if %python-base < 3.11}
|
|
|
|
BuildRequires: %{python_module wrapt >= 1.14 if %python-base >= 3.11}
|
2017-03-15 16:32:03 +01:00
|
|
|
BuildRequires: fdupes
|
|
|
|
BuildRequires: python-rpm-macros
|
2019-10-04 10:27:26 +02:00
|
|
|
Requires: python-lazy-object-proxy >= 1.4
|
2018-01-24 11:13:11 +01:00
|
|
|
BuildArch: noarch
|
2021-03-22 23:15:02 +01:00
|
|
|
%if 0%{?python_version_nodots} < 38
|
|
|
|
Requires: python-typed-ast >= 1.4
|
2021-10-04 09:07:59 +02:00
|
|
|
%endif
|
|
|
|
%if 0%{?python_version_nodots} < 310
|
2022-08-29 13:32:08 +02:00
|
|
|
Requires: python-typing-extensions >= 3.10
|
|
|
|
%endif
|
|
|
|
%if 0%{?python_version_nodots} < 311
|
|
|
|
Requires: python-wrapt >= 1.11
|
|
|
|
%else
|
|
|
|
Requires: python-wrapt >= 1.14
|
2018-12-06 15:40:55 +01:00
|
|
|
%endif
|
2017-03-15 16:32:03 +01:00
|
|
|
%python_subpackages
|
2013-11-28 15:49:38 +01:00
|
|
|
|
|
|
|
%description
|
2018-09-18 11:13:53 +02:00
|
|
|
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.
|
2013-11-28 15:49:38 +01:00
|
|
|
|
|
|
|
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}
|
2020-06-23 18:54:11 +02:00
|
|
|
%autopatch -p1
|
2013-11-28 15:49:38 +01:00
|
|
|
|
|
|
|
%build
|
2022-08-29 13:32:08 +02:00
|
|
|
%pyproject_wheel
|
2013-11-28 15:49:38 +01:00
|
|
|
|
|
|
|
%install
|
2022-08-29 13:32:08 +02:00
|
|
|
%pyproject_install
|
2018-01-24 11:13:11 +01:00
|
|
|
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
2017-03-15 16:32:03 +01:00
|
|
|
|
|
|
|
%check
|
2019-10-04 10:27:26 +02:00
|
|
|
%pytest
|
2013-11-28 15:49:38 +01:00
|
|
|
|
2017-03-15 16:32:03 +01:00
|
|
|
%files %{python_files}
|
2021-05-07 17:25:28 +02:00
|
|
|
%license LICENSE
|
2018-07-16 14:10:18 +02:00
|
|
|
%doc ChangeLog README.rst
|
2020-12-06 18:35:23 +01:00
|
|
|
%{python_sitelib}/astroid/
|
2021-03-22 23:15:02 +01:00
|
|
|
%{python_sitelib}/astroid-%{version}*-info
|
2013-11-28 15:49:38 +01:00
|
|
|
|
|
|
|
%changelog
|