]> git.pld-linux.org Git - packages/python3-astroid.git/blobdiff - python3-astroid.spec
up to 2.9.0
[packages/python3-astroid.git] / python3-astroid.spec
index 1a0e90207206b7b4ff808bf563513717d9e4f24d..6c22cd0b4a57d027a3c8b69b8231f7366139e700 100644 (file)
@@ -1,18 +1,18 @@
 #
 # Conditional build:
-%bcond_without tests   # unit tests
+%bcond_with    tests   # unit tests
 
 %define        module  astroid
 Summary:       An abstract syntax tree for Python 3 with inference support
 Summary(pl.UTF-8):     Abstrakcyjnego drzewa składniowe dla Pythona 3 z obsługą wywodu
 Name:          python3-%{module}
-Version:       2.3.2
+Version:       2.9.0
 Release:       1
 License:       LGPL v2.1+
 Group:         Development/Languages/Python
 #Source0Download: https://pypi.org/simple/astroid/
 Source0:       https://files.pythonhosted.org/packages/source/a/astroid/astroid-%{version}.tar.gz
-# Source0-md5: b2cd5c0383ff33c1410e737c2607aa7a
+# Source0-md5: 24818fd52a4f51bec86d3801f5f8eccc
 Patch0:                %{name}-deps.patch
 URL:           https://github.com/PyCQA/astroid
 BuildRequires: python3-devel >= 1:3.5
@@ -32,12 +32,6 @@ BuildRequires:       python3-wrapt >= 1.11
 BuildRequires: rpm-pythonprov
 BuildRequires: rpmbuild(macros) >= 1.714
 Requires:      python3-modules >= 1:3.5
-%if "%{py3_ver}" < "3.8"
-# not detected by rpm from rule:
-# [:implementation_name == "cpython" and python_version < "3.8"]
-Requires:      python3-typed_ast >= 1.4.0
-Requires:      python3-typed_ast < 1.5
-%endif
 Obsoletes:     python3-logilab-astng
 BuildArch:     noarch
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
@@ -59,16 +53,11 @@ potrzebami pylinta. Dawniej nazywała się logilab-astng.
 %setup -q -n %{module}-%{version}
 %patch0 -p1
 
-# non-deterministic (skipped if numpy not installed; unittest_brain_numpy_core_multiarray.py fails with numpy 1.16.5
-%{__rm} astroid/tests/unittest_brain_numpy_*
-# test_knownValues_get_builtin_module_part fails
-%{__rm} astroid/tests/unittest_modutils.py
-
 %build
 %py3_build
 
 %if %{with tests}
-%{__python3} -m pytest astroid/tests
+%{__python3} -m pytest tests
 %endif
 
 %install
@@ -81,6 +70,5 @@ rm -rf $RPM_BUILD_ROOT
 
 %files
 %defattr(644,root,root,755)
-%doc ChangeLog README.rst
 %{py3_sitescriptdir}/astroid
 %{py3_sitescriptdir}/astroid-%{version}-py*.egg-info
This page took 0.071126 seconds and 4 git commands to generate.