|
![](https://seccdn.libravatar.org/avatar/dcfe7af74d8d03d1a0ebd18962b3b8f18e13cfb21df46c214faa00e234336c40?s=16&d=retro) |
96ae727 |
# Remove when globs in setup.py work.
|
|
![](https://seccdn.libravatar.org/avatar/dcfe7af74d8d03d1a0ebd18962b3b8f18e13cfb21df46c214faa00e234336c40?s=16&d=retro) |
96ae727 |
%{?python_disable_dependency_generator}
|
|
![](https://seccdn.libravatar.org/avatar/dcfe7af74d8d03d1a0ebd18962b3b8f18e13cfb21df46c214faa00e234336c40?s=16&d=retro) |
96ae727 |
|
|
![](https://seccdn.libravatar.org/avatar/dcfe7af74d8d03d1a0ebd18962b3b8f18e13cfb21df46c214faa00e234336c40?s=16&d=retro) |
67693fb |
%global srcname astroid
|
|
![](https://seccdn.libravatar.org/avatar/8cab5fc45d9566e5b133cc0e4fe053af87c3acfb91fa86956de4462c37b28683?s=16&d=retro) |
40947a2 |
|
|
![](https://seccdn.libravatar.org/avatar/8cab5fc45d9566e5b133cc0e4fe053af87c3acfb91fa86956de4462c37b28683?s=16&d=retro) |
b286363 |
%global forgeurl https://github.com/PyCQA/astroid
|
|
![](https://seccdn.libravatar.org/avatar/dcfe7af74d8d03d1a0ebd18962b3b8f18e13cfb21df46c214faa00e234336c40?s=16&d=retro) |
2e2f4a7 |
Version: 2.15.1
|
|
![](https://seccdn.libravatar.org/avatar/8cab5fc45d9566e5b133cc0e4fe053af87c3acfb91fa86956de4462c37b28683?s=16&d=retro) |
b286363 |
%forgemeta
|
|
![](https://seccdn.libravatar.org/avatar/8cab5fc45d9566e5b133cc0e4fe053af87c3acfb91fa86956de4462c37b28683?s=16&d=retro) |
b286363 |
|
|
![](https://seccdn.libravatar.org/avatar/6a8de7c0af10e0293cc9b6b6c2729fedeeff9466e54e50ba18ee58bab1687209?s=16&d=retro) |
a8757eb |
Name: python-astroid
|
|
![](https://seccdn.libravatar.org/avatar/dcfe7af74d8d03d1a0ebd18962b3b8f18e13cfb21df46c214faa00e234336c40?s=16&d=retro) |
315f0e4 |
# Note: please check that this doesn't break pylint before committing and building! -GC
|
|
![](https://seccdn.libravatar.org/avatar/74d2a4e8b5849d63c6838ef3fb9772b27447d57f0ac32af5cd03096343616233?s=16&d=retro) |
8418893 |
Release: %autorelease
|
|
![](https://seccdn.libravatar.org/avatar/3c06a168eac5e10baa83f960445b9b006df35865b76dcf7a899f6215ea86b54f?s=16&d=retro) |
811e7a3 |
Summary: Common base representation of python source code for pylint and other projects
|
|
![](https://seccdn.libravatar.org/avatar/dcfe7af74d8d03d1a0ebd18962b3b8f18e13cfb21df46c214faa00e234336c40?s=16&d=retro) |
70b6455 |
License: LGPL-2.1-or-later
|
|
![](https://seccdn.libravatar.org/avatar/dcfe7af74d8d03d1a0ebd18962b3b8f18e13cfb21df46c214faa00e234336c40?s=16&d=retro) |
67693fb |
URL: https://pypi.org/project/astroid/
|
|
![](https://seccdn.libravatar.org/avatar/8cab5fc45d9566e5b133cc0e4fe053af87c3acfb91fa86956de4462c37b28683?s=16&d=retro) |
b286363 |
Source0: %{forgesource}
|
|
![](https://seccdn.libravatar.org/avatar/3c06a168eac5e10baa83f960445b9b006df35865b76dcf7a899f6215ea86b54f?s=16&d=retro) |
49343a8 |
|
|
![](https://seccdn.libravatar.org/avatar/6a8de7c0af10e0293cc9b6b6c2729fedeeff9466e54e50ba18ee58bab1687209?s=16&d=retro) |
a8757eb |
BuildArch: noarch
|
|
![](https://seccdn.libravatar.org/avatar/3c06a168eac5e10baa83f960445b9b006df35865b76dcf7a899f6215ea86b54f?s=16&d=retro) |
811e7a3 |
|
|
![](https://seccdn.libravatar.org/avatar/cb54de83acca208e6be9de226a2fdf64aa713c78d43f3efb75988e71cffd91d8?s=16&d=retro) |
ce95438 |
BuildRequires: pyproject-rpm-macros
|
|
![](https://seccdn.libravatar.org/avatar/3c06a168eac5e10baa83f960445b9b006df35865b76dcf7a899f6215ea86b54f?s=16&d=retro) |
811e7a3 |
BuildRequires: python3-devel
|
|
![](https://seccdn.libravatar.org/avatar/3c06a168eac5e10baa83f960445b9b006df35865b76dcf7a899f6215ea86b54f?s=16&d=retro) |
811e7a3 |
BuildRequires: python3-setuptools
|
|
![](https://seccdn.libravatar.org/avatar/dcfe7af74d8d03d1a0ebd18962b3b8f18e13cfb21df46c214faa00e234336c40?s=16&d=retro) |
67693fb |
BuildRequires: python3-setuptools_scm
|
|
![](https://seccdn.libravatar.org/avatar/dcfe7af74d8d03d1a0ebd18962b3b8f18e13cfb21df46c214faa00e234336c40?s=16&d=retro) |
f77900f |
BuildRequires: python3-wheel
|
|
![](https://seccdn.libravatar.org/avatar/dcfe7af74d8d03d1a0ebd18962b3b8f18e13cfb21df46c214faa00e234336c40?s=16&d=retro) |
f77900f |
BuildRequires: python3-pip
|
|
![](https://seccdn.libravatar.org/avatar/3c06a168eac5e10baa83f960445b9b006df35865b76dcf7a899f6215ea86b54f?s=16&d=retro) |
23d91a8 |
BuildRequires: python3-lazy-object-proxy
|
|
![](https://seccdn.libravatar.org/avatar/3c06a168eac5e10baa83f960445b9b006df35865b76dcf7a899f6215ea86b54f?s=16&d=retro) |
811e7a3 |
BuildRequires: python3-pytest
|
|
![](https://seccdn.libravatar.org/avatar/3c06a168eac5e10baa83f960445b9b006df35865b76dcf7a899f6215ea86b54f?s=16&d=retro) |
811e7a3 |
BuildRequires: python3-pytest-runner
|
|
![](https://seccdn.libravatar.org/avatar/3c06a168eac5e10baa83f960445b9b006df35865b76dcf7a899f6215ea86b54f?s=16&d=retro) |
23d91a8 |
BuildRequires: python3-six
|
|
![](https://seccdn.libravatar.org/avatar/3c06a168eac5e10baa83f960445b9b006df35865b76dcf7a899f6215ea86b54f?s=16&d=retro) |
23d91a8 |
BuildRequires: python3-typed_ast >= 1.3.0
|
|
![](https://seccdn.libravatar.org/avatar/3c06a168eac5e10baa83f960445b9b006df35865b76dcf7a899f6215ea86b54f?s=16&d=retro) |
23d91a8 |
BuildRequires: python3-wrapt
|
|
![](https://seccdn.libravatar.org/avatar/3c06a168eac5e10baa83f960445b9b006df35865b76dcf7a899f6215ea86b54f?s=16&d=retro) |
811e7a3 |
BuildRequires: git-core
|
|
![](https://seccdn.libravatar.org/avatar/6a8de7c0af10e0293cc9b6b6c2729fedeeff9466e54e50ba18ee58bab1687209?s=16&d=retro) |
092a359 |
|
|
![](https://seccdn.libravatar.org/avatar/74d2a4e8b5849d63c6838ef3fb9772b27447d57f0ac32af5cd03096343616233?s=16&d=retro) |
a2b808c |
%global _description %{expand:
|
|
![](https://seccdn.libravatar.org/avatar/3c06a168eac5e10baa83f960445b9b006df35865b76dcf7a899f6215ea86b54f?s=16&d=retro) |
811e7a3 |
The aim of this module is to provide a common base representation of python
|
|
![](https://seccdn.libravatar.org/avatar/3c06a168eac5e10baa83f960445b9b006df35865b76dcf7a899f6215ea86b54f?s=16&d=retro) |
811e7a3 |
source code for projects such as pychecker, pyreverse, pylint...
|
|
![](https://seccdn.libravatar.org/avatar/3c06a168eac5e10baa83f960445b9b006df35865b76dcf7a899f6215ea86b54f?s=16&d=retro) |
811e7a3 |
It provides a compatible representation which comes from the _ast module. It
|
|
![](https://seccdn.libravatar.org/avatar/3c06a168eac5e10baa83f960445b9b006df35865b76dcf7a899f6215ea86b54f?s=16&d=retro) |
811e7a3 |
rebuilds the tree generated by the builtin _ast module by recursively walking
|
|
![](https://seccdn.libravatar.org/avatar/3c06a168eac5e10baa83f960445b9b006df35865b76dcf7a899f6215ea86b54f?s=16&d=retro) |
811e7a3 |
down the AST and building an extended ast. The new node classes have additional
|
|
![](https://seccdn.libravatar.org/avatar/3c06a168eac5e10baa83f960445b9b006df35865b76dcf7a899f6215ea86b54f?s=16&d=retro) |
811e7a3 |
methods and attributes for different usages. They include some support for
|
|
![](https://seccdn.libravatar.org/avatar/3c06a168eac5e10baa83f960445b9b006df35865b76dcf7a899f6215ea86b54f?s=16&d=retro) |
811e7a3 |
static inference and local name scopes. Furthermore, astroid builds partial
|
|
![](https://seccdn.libravatar.org/avatar/74d2a4e8b5849d63c6838ef3fb9772b27447d57f0ac32af5cd03096343616233?s=16&d=retro) |
a2b808c |
trees by inspecting living objects.}
|
|
![](https://seccdn.libravatar.org/avatar/74d2a4e8b5849d63c6838ef3fb9772b27447d57f0ac32af5cd03096343616233?s=16&d=retro) |
a2b808c |
|
|
![](https://seccdn.libravatar.org/avatar/74d2a4e8b5849d63c6838ef3fb9772b27447d57f0ac32af5cd03096343616233?s=16&d=retro) |
a2b808c |
%description %_description
|
|
![](https://seccdn.libravatar.org/avatar/6a8de7c0af10e0293cc9b6b6c2729fedeeff9466e54e50ba18ee58bab1687209?s=16&d=retro) |
a8757eb |
|
|
![](https://seccdn.libravatar.org/avatar/dcfe7af74d8d03d1a0ebd18962b3b8f18e13cfb21df46c214faa00e234336c40?s=16&d=retro) |
67693fb |
%package -n python3-%{srcname}
|
|
![](https://seccdn.libravatar.org/avatar/3c06a168eac5e10baa83f960445b9b006df35865b76dcf7a899f6215ea86b54f?s=16&d=retro) |
811e7a3 |
Summary: %{summary}
|
|
![](https://seccdn.libravatar.org/avatar/dcfe7af74d8d03d1a0ebd18962b3b8f18e13cfb21df46c214faa00e234336c40?s=16&d=retro) |
67693fb |
%{?python_provide:%python_provide python3-%{srcname}}
|
|
![](https://seccdn.libravatar.org/avatar/dcfe7af74d8d03d1a0ebd18962b3b8f18e13cfb21df46c214faa00e234336c40?s=16&d=retro) |
2cc81a6 |
Requires: python3-lazy-object-proxy
|
|
![](https://seccdn.libravatar.org/avatar/dcfe7af74d8d03d1a0ebd18962b3b8f18e13cfb21df46c214faa00e234336c40?s=16&d=retro) |
2cc81a6 |
Requires: python3-wrapt
|
|
![](https://seccdn.libravatar.org/avatar/dcfe7af74d8d03d1a0ebd18962b3b8f18e13cfb21df46c214faa00e234336c40?s=16&d=retro) |
f524197 |
Requires: python3-typed_ast
|
|
![](https://seccdn.libravatar.org/avatar/dcfe7af74d8d03d1a0ebd18962b3b8f18e13cfb21df46c214faa00e234336c40?s=16&d=retro) |
fbe2ec4 |
Requires: python3-six
|
|
![](https://seccdn.libravatar.org/avatar/3c06a168eac5e10baa83f960445b9b006df35865b76dcf7a899f6215ea86b54f?s=16&d=retro) |
811e7a3 |
|
|
![](https://seccdn.libravatar.org/avatar/dcfe7af74d8d03d1a0ebd18962b3b8f18e13cfb21df46c214faa00e234336c40?s=16&d=retro) |
67693fb |
%description -n python3-%{srcname} %_description
|
|
![](https://seccdn.libravatar.org/avatar/8cab5fc45d9566e5b133cc0e4fe053af87c3acfb91fa86956de4462c37b28683?s=16&d=retro) |
40947a2 |
|
|
![](https://seccdn.libravatar.org/avatar/6a8de7c0af10e0293cc9b6b6c2729fedeeff9466e54e50ba18ee58bab1687209?s=16&d=retro) |
a8757eb |
%prep
|
|
![](https://seccdn.libravatar.org/avatar/dcfe7af74d8d03d1a0ebd18962b3b8f18e13cfb21df46c214faa00e234336c40?s=16&d=retro) |
67693fb |
%autosetup -n %{srcname}-%{version} -p0
|
|
![](https://seccdn.libravatar.org/avatar/dcfe7af74d8d03d1a0ebd18962b3b8f18e13cfb21df46c214faa00e234336c40?s=16&d=retro) |
fdc0aef |
sed -i /six/d astroid/__pkginfo__.py
|
|
![](https://seccdn.libravatar.org/avatar/6a8de7c0af10e0293cc9b6b6c2729fedeeff9466e54e50ba18ee58bab1687209?s=16&d=retro) |
a8757eb |
|
|
![](https://seccdn.libravatar.org/avatar/6a8de7c0af10e0293cc9b6b6c2729fedeeff9466e54e50ba18ee58bab1687209?s=16&d=retro) |
a8757eb |
%build
|
|
![](https://seccdn.libravatar.org/avatar/dcfe7af74d8d03d1a0ebd18962b3b8f18e13cfb21df46c214faa00e234336c40?s=16&d=retro) |
f77900f |
%pyproject_wheel
|
|
![](https://seccdn.libravatar.org/avatar/8cab5fc45d9566e5b133cc0e4fe053af87c3acfb91fa86956de4462c37b28683?s=16&d=retro) |
40947a2 |
|
|
![](https://seccdn.libravatar.org/avatar/6a8de7c0af10e0293cc9b6b6c2729fedeeff9466e54e50ba18ee58bab1687209?s=16&d=retro) |
a8757eb |
%install
|
|
![](https://seccdn.libravatar.org/avatar/dcfe7af74d8d03d1a0ebd18962b3b8f18e13cfb21df46c214faa00e234336c40?s=16&d=retro) |
f77900f |
%pyproject_install
|
|
![](https://seccdn.libravatar.org/avatar/dcfe7af74d8d03d1a0ebd18962b3b8f18e13cfb21df46c214faa00e234336c40?s=16&d=retro) |
ea0c5e3 |
rm -rf %{buildroot}%{python3_sitelib}/tests
|
|
![](https://seccdn.libravatar.org/avatar/8cab5fc45d9566e5b133cc0e4fe053af87c3acfb91fa86956de4462c37b28683?s=16&d=retro) |
40947a2 |
|
|
![](https://seccdn.libravatar.org/avatar/8cab5fc45d9566e5b133cc0e4fe053af87c3acfb91fa86956de4462c37b28683?s=16&d=retro) |
40947a2 |
|
|
![](https://seccdn.libravatar.org/avatar/74d2a4e8b5849d63c6838ef3fb9772b27447d57f0ac32af5cd03096343616233?s=16&d=retro) |
546e700 |
%check
|
|
![](https://seccdn.libravatar.org/avatar/74d2a4e8b5849d63c6838ef3fb9772b27447d57f0ac32af5cd03096343616233?s=16&d=retro) |
546e700 |
%{python3} -m pytest -v
|
|
![](https://seccdn.libravatar.org/avatar/e5d41ed16a4cbbc4a932fe0670e3bd9e4edf73294818a730a34e9b4f2e675648?s=16&d=retro) |
ddec428 |
|
|
![](https://seccdn.libravatar.org/avatar/8cab5fc45d9566e5b133cc0e4fe053af87c3acfb91fa86956de4462c37b28683?s=16&d=retro) |
40947a2 |
|
|
![](https://seccdn.libravatar.org/avatar/dcfe7af74d8d03d1a0ebd18962b3b8f18e13cfb21df46c214faa00e234336c40?s=16&d=retro) |
67693fb |
%files -n python3-%{srcname}
|
|
![](https://seccdn.libravatar.org/avatar/dcfe7af74d8d03d1a0ebd18962b3b8f18e13cfb21df46c214faa00e234336c40?s=16&d=retro) |
f63d7bb |
%license LICENSE
|
|
![](https://seccdn.libravatar.org/avatar/6a8de7c0af10e0293cc9b6b6c2729fedeeff9466e54e50ba18ee58bab1687209?s=16&d=retro) |
a8757eb |
%{python3_sitelib}/astroid
|
|
![](https://seccdn.libravatar.org/avatar/dcfe7af74d8d03d1a0ebd18962b3b8f18e13cfb21df46c214faa00e234336c40?s=16&d=retro) |
f77900f |
%{python3_sitelib}/astroid*.dist-info/
|
|
![](https://seccdn.libravatar.org/avatar/6a8de7c0af10e0293cc9b6b6c2729fedeeff9466e54e50ba18ee58bab1687209?s=16&d=retro) |
a8757eb |
|
|
![](https://seccdn.libravatar.org/avatar/6a8de7c0af10e0293cc9b6b6c2729fedeeff9466e54e50ba18ee58bab1687209?s=16&d=retro) |
a8757eb |
%changelog
|
|
![](https://seccdn.libravatar.org/avatar/74d2a4e8b5849d63c6838ef3fb9772b27447d57f0ac32af5cd03096343616233?s=16&d=retro) |
8418893 |
%autochangelog
|