]> git.pld-linux.org Git - packages/python3-astroid.git/blame - python3-astroid.spec
- updated to 2.9.3
[packages/python3-astroid.git] / python3-astroid.spec
CommitLineData
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
6Summary: An abstract syntax tree for Python 3 with inference support
7Summary(pl.UTF-8): Abstrakcyjnego drzewa składniowe dla Pythona 3 z obsługą wywodu
8Name: python3-%{module}
61a6a09b
JB
9# keep version compatible with pylint.spec (2.9.x for 2.12.x)
10Version: 2.9.3
3d05f467 11Release: 1
f33b8242 12License: LGPL v2.1+
f3ce12d1 13Group: Development/Languages/Python
c8eef9e6 14#Source0Download: https://pypi.org/simple/astroid/
00f52389 15Source0: https://files.pythonhosted.org/packages/source/a/astroid/astroid-%{version}.tar.gz
61a6a09b 16# Source0-md5: 5194ffb97eafaff6afbe1869606b7d4d
965510b3 17URL: https://github.com/PyCQA/astroid
61a6a09b
JB
18BuildRequires: python3-devel >= 1:3.6.2
19BuildRequires: python3-modules >= 1:3.6.2
aab70606 20BuildRequires: python3-pytest-runner
61a6a09b 21BuildRequires: python3-setuptools >= 1:20.0
c8eef9e6
JB
22%if %{with tests}
23BuildRequires: python3-lazy-object-proxy >= 1.4
24BuildRequires: python3-pytest
25BuildRequires: python3-six >= 1.12
26%if "%{py3_ver}" < "3.8"
27BuildRequires: python3-typed_ast >= 1.4.0
61a6a09b 28BuildRequires: python3-typed_ast < 2.0
c8eef9e6 29%endif
61a6a09b 30BuildRequires: python3-typing_extensions >= 3.10
c8eef9e6 31BuildRequires: python3-wrapt >= 1.11
61a6a09b 32BuildRequires: python3-wrapt < 1.14
797e8d54 33%endif
c8eef9e6
JB
34BuildRequires: rpm-pythonprov
35BuildRequires: rpmbuild(macros) >= 1.714
61a6a09b
JB
36Requires: python3-modules >= 1:3.6.2
37Obsoletes: python3-logilab-astng < 1
39879116
JB
38BuildArch: noarch
39BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
797e8d54 40
39879116 41%description
8dd567ae 42The aim of this module is to provide a common base representation of
86ae2efd 43Python source code for projects such as pychecker, pyreverse,
8dd567ae
AF
44pylint... Well, actually the development of this library is
45essentially governed by pylint's needs. It used to be called
46logilab-astng.
797e8d54 47
39879116 48%description -l pl.UTF-8
797e8d54
JK
49Celem tego modułu jest dostarczenie wspólnej bazowej reprezentacji
50kodu źródłowego Pythona dla projektów takich jak pychecker, pyreverse,
51pylint... Właściwie tworzenie tej biblioteki jest istotnie kierowane
86ae2efd 52potrzebami 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 61PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 \
3d05f467 62%{__python3} -m pytest tests
c8eef9e6 63%endif
f3ce12d1
KK
64
65%install
66rm -rf $RPM_BUILD_ROOT
67
cd33eed2 68%py3_install
f3ce12d1 69
f3ce12d1
KK
70%clean
71rm -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
This page took 0.197737 seconds and 4 git commands to generate.