python-astroid/python-astroid.spec
2020-06-24 19:34:37 +08:00

56 lines
2.0 KiB
RPMSpec

%{?python_disable_dependency_generator}
Name: python-astroid
Version: 2.3.3
Release: 5
Summary: Common base representation of python source code for pylint and other projects
License: GPLv2+
URL: https://github.com/PyCQA/astroid
Source0: https://github.com/PyCQA/astroid/archive/ace7b2967ea762ec43fc7be8ab9c8007564d9be2/astroid-ace7b29.tar.gz
Patch0000: Resolve-Grammatical-issues.patch
BuildArch: noarch
BuildRequires: python3-devel python3-setuptools python3-lazy-object-proxy python3-pytest
BuildRequires: python3-pytest-runner python3-six python3-wrapt git-core
%global _description %{expand:
The aim of this module is to provide a common base representation of python
source code for projects such as pychecker, pyreverse, pylint...
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.}
%description %_description
%package -n python3-astroid
Summary: %{summary}
%{?python_provide:%python_provide python3-astroid}
Requires: python3-lazy-object-proxy python3-wrapt python3-six
%description -n python3-astroid %_description
%prep
%autosetup -n astroid-ace7b2967ea762ec43fc7be8ab9c8007564d9be2 -p1
%build
%py3_build
%install
%py3_install
rm -rf %{buildroot}%{python3_sitelib}/astroid/tests
%check
%{__python3} -m pytest -v
%files -n python3-astroid
%doc README.rst
%license COPYING
%{python3_sitelib}/astroid
%{python3_sitelib}/astroid*.egg-info
%changelog
* Wed Jun 24 2020 huanghaitao <huanghaitao8@huawei.com> - 2.3.3-5
- update to fix test errors with python3.8
* Mon Feb 24 2020 Senlin Xia<xiasenlin1@huawei.com> - 2.0.4-2
- Package init