]>
Commit | Line | Data |
---|---|---|
86ae2efd | 1 | # |
797e8d54 | 2 | # Conditional build: |
61a6a09b | 3 | %bcond_with tests # unit tests (not included in sdist) |
797e8d54 | 4 | |
935ded5d | 5 | %define module astroid |
39879116 JB |
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} | |
61a6a09b JB |
9 | # keep version compatible with pylint.spec (2.9.x for 2.12.x) |
10 | Version: 2.9.3 | |
3d05f467 | 11 | Release: 1 |
f33b8242 | 12 | License: LGPL v2.1+ |
f3ce12d1 | 13 | Group: Development/Languages/Python |
c8eef9e6 | 14 | #Source0Download: https://pypi.org/simple/astroid/ |
00f52389 | 15 | Source0: https://files.pythonhosted.org/packages/source/a/astroid/astroid-%{version}.tar.gz |
61a6a09b | 16 | # Source0-md5: 5194ffb97eafaff6afbe1869606b7d4d |
965510b3 | 17 | URL: https://github.com/PyCQA/astroid |
61a6a09b JB |
18 | BuildRequires: python3-devel >= 1:3.6.2 |
19 | BuildRequires: python3-modules >= 1:3.6.2 | |
aab70606 | 20 | BuildRequires: python3-pytest-runner |
61a6a09b | 21 | BuildRequires: python3-setuptools >= 1:20.0 |
c8eef9e6 JB |
22 | %if %{with tests} |
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 | |
61a6a09b | 28 | BuildRequires: python3-typed_ast < 2.0 |
c8eef9e6 | 29 | %endif |
61a6a09b | 30 | BuildRequires: python3-typing_extensions >= 3.10 |
c8eef9e6 | 31 | BuildRequires: python3-wrapt >= 1.11 |
61a6a09b | 32 | BuildRequires: python3-wrapt < 1.14 |
797e8d54 | 33 | %endif |
c8eef9e6 JB |
34 | BuildRequires: rpm-pythonprov |
35 | BuildRequires: rpmbuild(macros) >= 1.714 | |
61a6a09b JB |
36 | Requires: python3-modules >= 1:3.6.2 |
37 | Obsoletes: python3-logilab-astng < 1 | |
39879116 JB |
38 | BuildArch: noarch |
39 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
797e8d54 | 40 | |
39879116 | 41 | %description |
8dd567ae | 42 | The aim of this module is to provide a common base representation of |
86ae2efd | 43 | Python source code for projects such as pychecker, pyreverse, |
8dd567ae AF |
44 | pylint... Well, actually the development of this library is |
45 | essentially governed by pylint's needs. It used to be called | |
46 | logilab-astng. | |
797e8d54 | 47 | |
39879116 | 48 | %description -l pl.UTF-8 |
797e8d54 JK |
49 | Celem tego modułu jest dostarczenie wspólnej bazowej reprezentacji |
50 | kodu źródłowego Pythona dla projektów takich jak pychecker, pyreverse, | |
51 | pylint... Właściwie tworzenie tej biblioteki jest istotnie kierowane | |
86ae2efd | 52 | potrzebami pylinta. Dawniej nazywała się logilab-astng. |
797e8d54 | 53 | |
f3ce12d1 | 54 | %prep |
abbaad7a | 55 | %setup -q -n %{module}-%{version} |
60fa4681 | 56 | |
f3ce12d1 | 57 | %build |
c8eef9e6 JB |
58 | %py3_build |
59 | ||
60 | %if %{with tests} | |
61a6a09b | 61 | PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 \ |
3d05f467 | 62 | %{__python3} -m pytest tests |
c8eef9e6 | 63 | %endif |
f3ce12d1 KK |
64 | |
65 | %install | |
66 | rm -rf $RPM_BUILD_ROOT | |
67 | ||
cd33eed2 | 68 | %py3_install |
f3ce12d1 | 69 | |
f3ce12d1 KK |
70 | %clean |
71 | rm -rf $RPM_BUILD_ROOT | |
72 | ||
73 | %files | |
74 | %defattr(644,root,root,755) | |
935ded5d AF |
75 | %{py3_sitescriptdir}/astroid |
76 | %{py3_sitescriptdir}/astroid-%{version}-py*.egg-info |