Accepting request 999550 from home:bnavigator:branches:devel:languages:python

- Update to 2.12.4
  * Fixed a crash involving non-standard type comments such as
    `# type: # any comment`.
- Big changelog since 2.9.3, see file Changelog
  * mostly crash fixes
  * Python >= 3.7 is required

OBS-URL: https://build.opensuse.org/request/show/999550
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-astroid?expand=0&rev=69
This commit is contained in:
Markéta Machová 2022-08-29 11:32:08 +00:00 committed by Git OBS Bridge
parent 6dbe21c7b4
commit 55a699f6d9
4 changed files with 29 additions and 12 deletions

3
astroid-2.12.4-gh.tar.gz Normal file
View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:5b39565e9c0ba43436d7719858da996129141052eccf7f047129d17d75e8c3bd
size 432812

View File

@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:07234423c3722df6aa067c15f5fa60adf4f1d6ae659d2ab147acb40a8a1904f7
size 409069

View File

@ -1,3 +1,13 @@
-------------------------------------------------------------------
Sat Aug 27 10:10:36 UTC 2022 - Ben Greiner <code@bnavigator.de>
- Update to 2.12.4
* Fixed a crash involving non-standard type comments such as
`# type: # any comment`.
- Big changelog since 2.9.3, see file Changelog
* mostly crash fixes
* Python >= 3.7 is required
-------------------------------------------------------------------
Sat Jan 15 16:43:55 UTC 2022 - Dirk Müller <dmueller@suse.com>

View File

@ -16,31 +16,38 @@
#
%define skip_python2 1
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
Name: python-astroid
Version: 2.9.3
Version: 2.12.4
Release: 0
Summary: Representation of Python source as an AST for pylint
License: LGPL-2.1-or-later
URL: https://github.com/pycqa/astroid
Source: https://github.com/PyCQA/astroid/archive/refs/tags/v%{version}.tar.gz#/astroid-%{version}-gh.tar.gz
BuildRequires: %{python_module base >= 3.7.2}
BuildRequires: %{python_module lazy-object-proxy >= 1.4}
BuildRequires: %{python_module pip}
BuildRequires: %{python_module pytest}
BuildRequires: %{python_module setuptools}
BuildRequires: %{python_module typed-ast >= 1.4 if %python-base < 3.8}
BuildRequires: %{python_module typing_extensions >= 3.10 if %python-base < 3.10}
BuildRequires: %{python_module wrapt >= 1.11}
# typing-extensions for python310 required for tests only: gh#PyCQA/astroid#1585
BuildRequires: %{python_module typing-extensions >= 3.10}
BuildRequires: %{python_module wheel}
BuildRequires: %{python_module wrapt >= 1.11 if %python-base < 3.11}
BuildRequires: %{python_module wrapt >= 1.14 if %python-base >= 3.11}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
Requires: python-lazy-object-proxy >= 1.4
Requires: python-wrapt >= 1.11
BuildArch: noarch
%if 0%{?python_version_nodots} < 38
Requires: python-typed-ast >= 1.4
%endif
%if 0%{?python_version_nodots} < 310
Requires: python-typing_extensions >= 3.10
Requires: python-typing-extensions >= 3.10
%endif
%if 0%{?python_version_nodots} < 311
Requires: python-wrapt >= 1.11
%else
Requires: python-wrapt >= 1.14
%endif
%python_subpackages
@ -62,10 +69,10 @@ objects.
%autopatch -p1
%build
%python_build
%pyproject_wheel
%install
%python_install
%pyproject_install
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%check