3 %bcond_with tests # unit tests
6 Summary: An abstract syntax tree for Python 3 with inference support
7 Summary(pl.UTF-8): Abstrakcyjnego drzewa składniowe dla Pythona 3 z obsługą wywodu
8 Name: python3-%{module}
12 Group: Development/Languages/Python
13 #Source0Download: https://pypi.org/simple/astroid/
14 Source0: https://files.pythonhosted.org/packages/source/a/astroid/astroid-%{version}.tar.gz
15 # Source0-md5: 24818fd52a4f51bec86d3801f5f8eccc
16 Patch0: %{name}-deps.patch
17 URL: https://github.com/PyCQA/astroid
18 BuildRequires: python3-devel >= 1:3.5
19 BuildRequires: python3-modules >= 1:3.5
20 BuildRequires: python3-pytest-runner
21 BuildRequires: python3-setuptools >= 7.0
23 BuildRequires: python3-lazy-object-proxy >= 1.4
24 BuildRequires: python3-pytest
25 BuildRequires: python3-six >= 1.12
26 %if "%{py3_ver}" < "3.8"
27 BuildRequires: python3-typed_ast >= 1.4.0
28 BuildRequires: python3-typed_ast < 1.5
30 BuildRequires: python3-wrapt >= 1.11
32 BuildRequires: rpm-pythonprov
33 BuildRequires: rpmbuild(macros) >= 1.714
34 Requires: python3-modules >= 1:3.5
35 Obsoletes: python3-logilab-astng
37 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
40 The aim of this module is to provide a common base representation of
41 Python source code for projects such as pychecker, pyreverse,
42 pylint... Well, actually the development of this library is
43 essentially governed by pylint's needs. It used to be called
46 %description -l pl.UTF-8
47 Celem tego modułu jest dostarczenie wspólnej bazowej reprezentacji
48 kodu źródłowego Pythona dla projektów takich jak pychecker, pyreverse,
49 pylint... Właściwie tworzenie tej biblioteki jest istotnie kierowane
50 potrzebami pylinta. Dawniej nazywała się logilab-astng.
53 %setup -q -n %{module}-%{version}
60 %{__python3} -m pytest tests
64 rm -rf $RPM_BUILD_ROOT
69 rm -rf $RPM_BUILD_ROOT
72 %defattr(644,root,root,755)
73 %{py3_sitescriptdir}/astroid
74 %{py3_sitescriptdir}/astroid-%{version}-py*.egg-info