# Remove when globs in setup.py work. %{?python_disable_dependency_generator} %global srcname astroid Name: python-astroid Version: 2.11.5 # Note: please check that this doesn't break pylint before committing and building! -GC Release: 2.ac%{?dist} Summary: Common base representation of python source code for pylint and other projects License: LGPLv2+ URL: https://pypi.org/project/astroid/ Source0: %{pypi_source} BuildArch: noarch BuildRequires: python3-devel BuildRequires: python3-setuptools BuildRequires: python3-setuptools_scm BuildRequires: python3-lazy-object-proxy BuildRequires: python3-pytest BuildRequires: python3-pytest-runner BuildRequires: python3-six BuildRequires: python3-typed_ast >= 1.3.0 BuildRequires: python3-wrapt BuildRequires: 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-%{srcname} Summary: %{summary} %{?python_provide:%python_provide python3-%{srcname}} Requires: python3-lazy-object-proxy Requires: python3-wrapt Requires: python3-typed_ast Requires: python3-six %description -n python3-%{srcname} %_description %prep %autosetup -n %{srcname}-%{version} -p0 #sed -i /six/d tox.ini sed -i /six/d astroid/__pkginfo__.py %build %py3_build %install %py3_install rm -rf %{buildroot}%{python3_sitelib}/tests %if 0 %check %{python3} -m pytest -v %endif %files -n python3-%{srcname} %license LICENSE %{python3_sitelib}/astroid %{python3_sitelib}/astroid*.egg-info %changelog %autochangelog