[packages/python3-astroid] up to 2.9.0
atler
atler at pld-linux.org
Wed Dec 8 10:21:11 CET 2021
commit 6e337006415d7fd78b807fa29e0038fc1c897288
Author: Jan Palus <atler at pld-linux.org>
Date: Wed Dec 8 10:20:14 2021 +0100
up to 2.9.0
- disabled tests (tests dir missing)
python3-astroid-deps.patch | 22 ++++++++++++----------
python3-astroid.spec | 12 +++---------
2 files changed, 15 insertions(+), 19 deletions(-)
---
diff --git a/python3-astroid.spec b/python3-astroid.spec
index 2131f0c..6c22cd0 100644
--- a/python3-astroid.spec
+++ b/python3-astroid.spec
@@ -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.5.1
+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: 52ad092c3066cdc64870dfa7f9000363
+# Source0-md5: 24818fd52a4f51bec86d3801f5f8eccc
Patch0: %{name}-deps.patch
URL: https://github.com/PyCQA/astroid
BuildRequires: python3-devel >= 1:3.5
@@ -53,11 +53,6 @@ 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} tests/unittest_brain_numpy_*
-# test_knownValues_get_builtin_module_part fails
-%{__rm} tests/unittest_modutils.py
-
%build
%py3_build
@@ -75,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
diff --git a/python3-astroid-deps.patch b/python3-astroid-deps.patch
index b2b35fb..43b08ce 100644
--- a/python3-astroid-deps.patch
+++ b/python3-astroid-deps.patch
@@ -1,11 +1,13 @@
---- astroid-2.3.3/astroid/__pkginfo__.py.orig 2019-11-16 17:17:15.331282360 +0100
-+++ astroid-2.3.3/astroid/__pkginfo__.py 2019-11-16 17:24:15.249007470 +0100
-@@ -22,7 +22,7 @@
- install_requires = [
- "lazy_object_proxy>=1.4.0",
- "wrapt>=1.11,<1.13",
-- 'typed-ast>=1.4.0,<1.5;implementation_name== "cpython" and python_version<"3.8"',
-+ "typed-ast>=1.4.0,<1.5",
- ]
+--- astroid-2.9.0/setup.cfg.orig 2021-11-21 18:16:40.395143700 +0100
++++ astroid-2.9.0/setup.cfg 2021-12-08 10:07:08.268285408 +0100
+@@ -39,8 +39,8 @@
+ lazy_object_proxy>=1.4.0
+ wrapt>=1.11,<1.14
+ setuptools>=20.0
+- typed-ast>=1.4.0,<2.0;implementation_name=="cpython" and python_version<"3.8"
+- typing-extensions>=3.10;python_version<"3.10"
++ typed-ast>=1.4.0,<2.0
++ typing-extensions>=3.10
+ python_requires = ~=3.6
- # pylint: disable=redefined-builtin; why license is a builtin anyway?
+ [options.packages.find]
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/python3-astroid.git/commitdiff/6e337006415d7fd78b807fa29e0038fc1c897288
More information about the pld-cvs-commit
mailing list